taglinefilesource code
iph81drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph53include/linux/skbuff.hstruct iphdr  *iph;
iph109net/inet/icmp.cstruct iphdr *iph;
iph122net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
iph130net/inet/icmp.cif(iph->protocol==IPPROTO_ICMP)
iph194net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
iph220net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph242net/inet/icmp.cstruct iphdr *iph;
iph247net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph253net/inet/icmp.cin_ntoa(iph->daddr)));
iph257net/inet/icmp.cin_ntoa(iph->daddr)));
iph261net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph265net/inet/icmp.cin_ntoa(iph->daddr), -1 /* FIXME: ntohs(iph->port) */));
iph269net/inet/icmp.cin_ntoa(iph->daddr));
iph272net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph276net/inet/icmp.c(icmph->code & 7), in_ntoa(iph->daddr)));
iph284net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph300net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph303net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph320net/inet/icmp.cstruct iphdr *iph;
iph327net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph328net/inet/icmp.cip = iph->daddr;
iph182net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph188net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph211net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph215net/inet/ip.cptr = (unsigned char *)(iph+1);
iph260net/inet/ip.cstruct iphdr *iph;
iph363net/inet/ip.ciph = (struct iphdr *)buff;
iph364net/inet/ip.ciph->version  = 4;
iph365net/inet/ip.ciph->tos      = tos;
iph366net/inet/ip.ciph->frag_off = 0;
iph367net/inet/ip.ciph->ttl      = ttl;
iph368net/inet/ip.ciph->daddr    = daddr;
iph369net/inet/ip.ciph->saddr    = saddr;
iph370net/inet/ip.ciph->protocol = type;
iph371net/inet/ip.ciph->ihl      = 5;
iph372net/inet/ip.ciph->id       = htons(count++);
iph376net/inet/ip.cbuild_options(iph, opt);
iph384net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph403net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph406net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph517net/inet/ip.cstrict_route(iph, opt);
iph523net/inet/ip.cloose_route(iph, opt);
iph612net/inet/ip.cint ip_csum(struct iphdr *iph)
iph614net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph621net/inet/ip.cstatic void ip_send_check(struct iphdr *iph)
iph623net/inet/ip.ciph->check = 0;
iph624net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph669net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph678net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph679net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph739net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph784net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph806net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph819net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph820net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph821net/inet/ip.cif (qp->iph == NULL) 
iph831net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph897net/inet/ip.cstruct iphdr *iph;
iph925net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph952net/inet/ip.ciph = skb->h.iph;
iph953net/inet/ip.ciph->frag_off = 0;
iph954net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph955net/inet/ip.cskb->ip_hdr = iph;
iph966net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph979net/inet/ip.cqp = ip_find(iph);
iph982net/inet/ip.coffset = ntohs(iph->frag_off);
iph1013net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph1026net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph1027net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph1165net/inet/ip.cstruct iphdr *iph;
iph1177net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph1179net/inet/ip.cskb->ip_hdr = iph;
iph1185net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph1186net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph1193net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1194net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1200net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph1204net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1205net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1236net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1306net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1307net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1313net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1339net/inet/ip.cstruct iphdr *iph;  /* Our header */
iph1369net/inet/ip.ciph = skb->h.iph;
iph1370net/inet/ip.ciph->ttl--;
iph1371net/inet/ip.cif (iph->ttl <= 0) 
iph1374net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1375net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1388net/inet/ip.cip_send_check(iph);
iph1395net/inet/ip.crt = ip_rt_route(iph->daddr, NULL, NULL);
iph1440net/inet/ip.craddr = iph->daddr;
iph1463net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1519net/inet/ip.cif(iph->tos & IPTOS_LOWDELAY)
iph1521net/inet/ip.celse if(iph->tos & IPTOS_THROUGHPUT)
iph1538net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1557net/inet/ip.cskb->ip_hdr = iph;
iph1568net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) 
iph1572net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1573net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1583net/inet/ip.cskb->len=ntohs(iph->tot_len);
iph1590net/inet/ip.cif (iph->ihl != 5) 
iph1592net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1594net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1603net/inet/ip.cif (iph->frag_off & 0x0020)
iph1610net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1621net/inet/ip.cif ((brd = ip_chk_addr(iph->daddr)) == 0) 
iph1632net/inet/ip.ciph->saddr,iph->daddr);
iph1652net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1655net/inet/ip.ciph=skb->h.iph;
iph1658net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1659net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1670net/inet/ip.cskb->ip_hdr = iph;
iph1671net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1677net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1682net/inet/ip.cif (ipprot->protocol != iph->protocol) 
iph1730net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1731net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1732net/inet/ip.ciph->saddr, 0, ipprot);
iph1765net/inet/ip.cstruct iphdr *iph;
iph1801net/inet/ip.ciph = (struct iphdr *)ptr;
iph1802net/inet/ip.cskb->ip_hdr = iph;
iph1803net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1823net/inet/ip.cip_send_check(iph);
iph1828net/inet/ip.cip_print(iph);
iph54net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph267net/inet/raw.cstruct iphdr *iph;
iph272net/inet/raw.ciph = (struct iphdr *)buff;
iph273net/inet/raw.ciph->saddr = sk->saddr;
iph232net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph234net/inet/tcp.cheader+=4*iph->ihl;