taglinefilesource code
iph1128drivers/net/ppp.cstruct iphdr *iph = (struct iphdr *) c;
iph1130drivers/net/ppp.ciph->saddr, iph->daddr, count))
iph1761drivers/net/ppp.cstruct iphdr *iph = (struct iphdr *) (skb + 1);
iph1763drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
iph1764drivers/net/ppp.c(int) iph->daddr, (int) iph->protocol))
iph81drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph53include/linux/skbuff.hstruct iphdr  *iph;
iph99net/inet/icmp.cstruct iphdr *iph;
iph111net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
iph124net/inet/icmp.catype=ip_chk_addr(iph->daddr);
iph125net/inet/icmp.cif(atype==IS_BROADCAST || IN_MULTICAST(iph->daddr))
iph132net/inet/icmp.cif(ntohs(iph->frag_off)&IP_OFFSET)
iph141net/inet/icmp.cif(iph->protocol==IPPROTO_ICMP)
iph207net/inet/icmp.cif (iph->daddr != our_addr && ip_chk_addr(iph->daddr) == IS_MYADDR)
iph208net/inet/icmp.cour_addr = iph->daddr;
iph209net/inet/icmp.coffset = ip_build_header(skb, our_addr, iph->saddr,
iph235net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph254net/inet/icmp.cstruct iphdr *iph;
iph259net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph269net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph275net/inet/icmp.cin_ntoa(iph->daddr));
iph278net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph288net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph304net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph307net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph324net/inet/icmp.cstruct iphdr *iph;
iph331net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph332net/inet/icmp.cip = iph->daddr;
iph123net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph129net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph146net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph150net/inet/ip.cptr = (unsigned char *)(iph+1);
iph196net/inet/ip.cstruct iphdr *iph;
iph292net/inet/ip.ciph = (struct iphdr *)buff;
iph293net/inet/ip.ciph->version  = 4;
iph294net/inet/ip.ciph->tos      = tos;
iph295net/inet/ip.ciph->frag_off = 0;
iph296net/inet/ip.ciph->ttl      = ttl;
iph297net/inet/ip.ciph->daddr    = daddr;
iph298net/inet/ip.ciph->saddr    = saddr;
iph299net/inet/ip.ciph->protocol = type;
iph300net/inet/ip.ciph->ihl      = 5;
iph304net/inet/ip.cbuild_options(iph, opt);
iph312net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph331net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph334net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph445net/inet/ip.cstrict_route(iph, opt);
iph451net/inet/ip.cloose_route(iph, opt);
iph540net/inet/ip.cint ip_csum(struct iphdr *iph)
iph542net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph549net/inet/ip.cstatic void ip_send_check(struct iphdr *iph)
iph551net/inet/ip.ciph->check = 0;
iph552net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph597net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph606net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph607net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol)
iph667net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph710net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph732net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph745net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph746net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph747net/inet/ip.cif (qp->iph == NULL)
iph757net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph823net/inet/ip.cstruct iphdr *iph;
iph851net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph878net/inet/ip.ciph = skb->h.iph;
iph879net/inet/ip.ciph->frag_off = 0;
iph880net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph881net/inet/ip.cskb->ip_hdr = iph;
iph892net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph905net/inet/ip.cqp = ip_find(iph);
iph908net/inet/ip.coffset = ntohs(iph->frag_off);
iph939net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
iph952net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph953net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph1086net/inet/ip.cstruct iphdr *iph;
iph1099net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph1101net/inet/ip.cskb->ip_hdr = iph;
iph1107net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph1108net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph1117net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF)
iph1148net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1223net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1224net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1230net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1256net/inet/ip.cstruct iphdr *iph;  /* Our header */
iph1273net/inet/ip.ciph = skb->h.iph;
iph1274net/inet/ip.ciph->ttl--;
iph1275net/inet/ip.cif (iph->ttl <= 0)
iph1288net/inet/ip.cip_send_check(iph);
iph1295net/inet/ip.crt = ip_rt_route(iph->daddr, NULL, NULL);
iph1336net/inet/ip.craddr = iph->daddr;
iph1411net/inet/ip.cif(iph->tos & IPTOS_LOWDELAY)
iph1413net/inet/ip.celse if(iph->tos & IPTOS_THROUGHPUT)
iph1430net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1447net/inet/ip.cskb->ip_hdr = iph;
iph1458net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0)
iph1470net/inet/ip.cskb->len=ntohs(iph->tot_len);
iph1477net/inet/ip.cif (iph->ihl != 5)
iph1480net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1489net/inet/ip.cif(iph->frag_off)
iph1491net/inet/ip.cif (iph->frag_off & 0x0020)
iph1497net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1513net/inet/ip.cif ( iph->daddr != skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0)
iph1552net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1555net/inet/ip.ciph=skb->h.iph;
iph1562net/inet/ip.cskb->ip_hdr = iph;
iph1563net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1569net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1574net/inet/ip.cif (ipprot->protocol != iph->protocol)
iph1603net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1604net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1605net/inet/ip.ciph->saddr, 0, ipprot);
iph1639net/inet/ip.cstruct iphdr *iph;
iph1669net/inet/ip.ciph = (struct iphdr *)ptr;
iph1670net/inet/ip.cskb->ip_hdr = iph;
iph1671net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1678net/inet/ip.ciph->id      = htons(ip_id_count++);
iph1706net/inet/ip.cip_send_check(iph);
iph1829net/inet/ip.cstruct iphdr *iph;
iph1832net/inet/ip.ciph = (struct iphdr *)(skb->data + dev->hard_header_len);
iph1833net/inet/ip.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
iph1836net/inet/ip.ciph->id = htons(ip_id_count++);
iph1837net/inet/ip.cip_send_check(iph);
iph54net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph217net/inet/raw.cstruct iphdr *iph;
iph222net/inet/raw.ciph = (struct iphdr *)buff;
iph223net/inet/raw.ciph->saddr = sk->saddr;
iph372net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph374net/inet/tcp.cheader+=4*iph->ihl;
iph2511net/inet/tcp.cstruct iphdr *iph;
iph2520net/inet/tcp.ciph = (struct iphdr *)(skb->data +
iph2522net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));