taglinefilesource code
iph75drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph82net/inet/icmp.cstruct iphdr *iph;
iph105net/inet/icmp.ciph = (struct iphdr *) (skb_in + 1);
iph106net/inet/icmp.ciph = (struct iphdr *) ((unsigned char *) iph + dev->hard_header_len);
iph109net/inet/icmp.coffset = ip_build_header(skb, iph->daddr, iph->saddr,
iph124net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph142net/inet/icmp.cstruct iphdr *iph;
iph147net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph151net/inet/icmp.cin_ntoa(iph->daddr)));
iph155net/inet/icmp.cin_ntoa(iph->daddr)));
iph159net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph163net/inet/icmp.cin_ntoa(iph->daddr), -1 /* FIXME: ntohs(iph->port) */));
iph167net/inet/icmp.cin_ntoa(iph->daddr));
iph170net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph174net/inet/icmp.c(icmph->code & 7), in_ntoa(iph->daddr)));
iph179net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph189net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) {
iph191net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph205net/inet/icmp.cstruct iphdr *iph;
iph208net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph209net/inet/icmp.cip = iph->daddr;
iph128net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph134net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph157net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph161net/inet/ip.cptr = (unsigned char *)(iph+1);
iph202net/inet/ip.cstruct iphdr *iph;
iph255net/inet/ip.ciph = (struct iphdr *)buff;
iph256net/inet/ip.ciph->version  = 4;
iph257net/inet/ip.ciph->tos      = 0;
iph258net/inet/ip.ciph->frag_off = 0;
iph259net/inet/ip.ciph->ttl      = 32;
iph260net/inet/ip.ciph->daddr    = daddr;
iph261net/inet/ip.ciph->saddr    = saddr;
iph262net/inet/ip.ciph->protocol = type;
iph263net/inet/ip.ciph->ihl      = 5;
iph264net/inet/ip.ciph->id       = htons(count++);
iph268net/inet/ip.cbuild_options(iph, opt);
iph276net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph295net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph298net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph409net/inet/ip.cstrict_route(iph, opt);
iph415net/inet/ip.cloose_route(iph, opt);
iph492net/inet/ip.cip_csum(struct iphdr *iph)
iph494net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph499net/inet/ip.cip_send_check(struct iphdr *iph)
iph501net/inet/ip.ciph->check = 0;
iph502net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph536net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph545net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph546net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph606net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph626net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph627net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph645net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph660net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) (skb + 1));
iph670net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph671net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph672net/inet/ip.cif (qp->iph == NULL) 
iph682net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph738net/inet/ip.cstruct iphdr *iph;
iph763net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph791net/inet/ip.ciph = skb->h.iph;
iph792net/inet/ip.ciph->frag_off = 0;
iph793net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph799net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph810net/inet/ip.cqp = ip_find(iph);
iph813net/inet/ip.coffset = ntohs(iph->frag_off);
iph839net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph844net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph845net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph952net/inet/ip.cstruct iphdr *iph;
iph961net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph964net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph965net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph972net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph973net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph976net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph980net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph981net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph994net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1033net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1034net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1038net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1058net/inet/ip.cstruct iphdr *iph;
iph1080net/inet/ip.ciph = skb->h.iph;
iph1081net/inet/ip.ciph->ttl--;
iph1082net/inet/ip.cif (iph->ttl <= 0) {
iph1084net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1085net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1093net/inet/ip.cip_send_check(iph);
iph1099net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1126net/inet/ip.c} else raddr = iph->daddr;
iph1135net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1178net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1191net/inet/ip.cif (iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) {
iph1193net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1194net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1200net/inet/ip.cif (iph->ihl != 5) {    /* Fast path for the typical optionless IP packet. */
iph1201net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1203net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1208net/inet/ip.cif (iph->frag_off & 0x0020)
iph1210net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1214net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) {
iph1219net/inet/ip.ciph->saddr,iph->daddr);
iph1233net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1238net/inet/ip.ciph=skb->h.iph;
iph1241net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1242net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1262net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1263net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1270net/inet/ip.cif (ipprot->protocol != iph->protocol) continue;
iph1300net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1301net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1302net/inet/ip.ciph->saddr, 0, ipprot);
iph1334net/inet/ip.cstruct iphdr *iph;
iph1350net/inet/ip.ciph = (struct iphdr *)ptr;
iph1351net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1362net/inet/ip.cip_send_check(iph);
iph1363net/inet/ip.cip_print(iph);
iph50net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph232net/inet/raw.cstruct iphdr *iph;
iph236net/inet/raw.ciph = (struct iphdr *)buff;
iph237net/inet/raw.ciph->saddr = sk->saddr;
iph54net/inet/skbuff.hstruct iphdr  *iph;
iph200net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph202net/inet/tcp.cheader+=4*iph->ihl;