taglinefilesource code
iph1140drivers/net/ppp.cstruct iphdr *iph = (struct iphdr *) c;
iph1142drivers/net/ppp.ciph->saddr, iph->daddr, count))
iph1772drivers/net/ppp.cstruct iphdr *iph = (struct iphdr *) (skb + 1);
iph1774drivers/net/ppp.cdev->name, (int) proto, (int) len, (int) iph->saddr,
iph1775drivers/net/ppp.c(int) iph->daddr, (int) iph->protocol))
iph54include/linux/skbuff.hstruct iphdr  *iph;
iph102net/inet/icmp.cstruct iphdr *iph;
iph114net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
iph127net/inet/icmp.catype=ip_chk_addr(iph->daddr);
iph128net/inet/icmp.cif(atype==IS_BROADCAST || IN_MULTICAST(iph->daddr))
iph135net/inet/icmp.cif(ntohs(iph->frag_off)&IP_OFFSET)
iph149net/inet/icmp.cif(iph->protocol==IPPROTO_ICMP)
iph151net/inet/icmp.cicmph = (struct icmphdr *) ((char *) iph +
iph152net/inet/icmp.c4 * iph->ihl);
iph228net/inet/icmp.cif (iph->daddr != our_addr && ip_chk_addr(iph->daddr) == IS_MYADDR)
iph229net/inet/icmp.cour_addr = iph->daddr;
iph230net/inet/icmp.coffset = ip_build_header(skb, our_addr, iph->saddr,
iph258net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph277net/inet/icmp.cstruct iphdr *iph;
iph282net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph292net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph298net/inet/icmp.cin_ntoa(iph->daddr));
iph301net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph311net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph327net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph330net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph347net/inet/icmp.cstruct iphdr *iph;
iph354net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph355net/inet/icmp.cip = iph->daddr;
iph158net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph164net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph181net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph185net/inet/ip.cptr = (unsigned char *)(iph+1);
iph231net/inet/ip.cstruct iphdr *iph;
iph331net/inet/ip.ciph = (struct iphdr *)buff;
iph332net/inet/ip.ciph->version  = 4;
iph333net/inet/ip.ciph->tos      = tos;
iph334net/inet/ip.ciph->frag_off = 0;
iph335net/inet/ip.ciph->ttl      = ttl;
iph336net/inet/ip.ciph->daddr    = daddr;
iph337net/inet/ip.ciph->saddr    = saddr;
iph338net/inet/ip.ciph->protocol = type;
iph339net/inet/ip.ciph->ihl      = 5;
iph340net/inet/ip.cskb->ip_hdr   = iph;
iph344net/inet/ip.cbuild_options(iph, opt);
iph352net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph371net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph374net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph485net/inet/ip.cstrict_route(iph, opt);
iph491net/inet/ip.cloose_route(iph, opt);
iph551net/inet/ip.cvoid ip_send_check(struct iphdr *iph)
iph553net/inet/ip.ciph->check = 0;
iph554net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph599net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph608net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph609net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol)
iph669net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph712net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph734net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph747net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph748net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph749net/inet/ip.cif (qp->iph == NULL)
iph759net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph825net/inet/ip.cstruct iphdr *iph;
iph853net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph880net/inet/ip.ciph = skb->h.iph;
iph881net/inet/ip.ciph->frag_off = 0;
iph882net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph883net/inet/ip.cskb->ip_hdr = iph;
iph894net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph907net/inet/ip.cqp = ip_find(iph);
iph910net/inet/ip.coffset = ntohs(iph->frag_off);
iph941net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
iph954net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph955net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph1088net/inet/ip.cstruct iphdr *iph;
iph1101net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph1103net/inet/ip.cskb->ip_hdr = iph;
iph1109net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph1110net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph1119net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF)
iph1153net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1228net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1229net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1235net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1261net/inet/ip.cstruct iphdr *iph;  /* Our header */
iph1274net/inet/ip.cif((err=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0))!=1)
iph1292net/inet/ip.ciph = skb->h.iph;
iph1293net/inet/ip.ciph->ttl--;
iph1294net/inet/ip.cif (iph->ttl <= 0)
iph1307net/inet/ip.cip_send_check(iph);
iph1314net/inet/ip.crt = ip_rt_route(iph->daddr, NULL, NULL);
iph1355net/inet/ip.craddr = iph->daddr;
iph1433net/inet/ip.cip_acct_cnt(iph,dev,ip_acct_chain);
iph1441net/inet/ip.cif(iph->tos & IPTOS_LOWDELAY)
iph1443net/inet/ip.celse if(iph->tos & IPTOS_THROUGHPUT)
iph1460net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1480net/inet/ip.cskb->ip_hdr = iph;
iph1491net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0)
iph1504net/inet/ip.cif ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))!=1)
iph1519net/inet/ip.cskb->len=ntohs(iph->tot_len);
iph1526net/inet/ip.cif (iph->ihl != 5)
iph1529net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1538net/inet/ip.cif(iph->frag_off)
iph1540net/inet/ip.cif (iph->frag_off & 0x0020)
iph1546net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1562net/inet/ip.cif ( iph->daddr != skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0)
iph1596net/inet/ip.cif(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
iph1609net/inet/ip.cif(ip_mc->multiaddr==iph->daddr)
iph1621net/inet/ip.cip_acct_cnt(iph,dev, ip_acct_chain);
iph1631net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1635net/inet/ip.ciph=skb->h.iph;
iph1644net/inet/ip.cskb->ip_hdr = iph;
iph1645net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1651net/inet/ip.chash = iph->protocol & (SOCK_ARRAY_SIZE-1);
iph1658net/inet/ip.craw_sk=get_sock_raw(raw_sk, hash,  iph->saddr, iph->daddr);
iph1664net/inet/ip.csknext=get_sock_raw(raw_sk->next, hash, iph->saddr, iph->daddr);
iph1670net/inet/ip.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
iph1683net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1688net/inet/ip.cif (ipprot->protocol != iph->protocol)
iph1713net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1714net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1715net/inet/ip.ciph->saddr, 0, ipprot);
iph1727net/inet/ip.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
iph1787net/inet/ip.cstruct iphdr *iph;
iph1817net/inet/ip.ciph = (struct iphdr *)ptr;
iph1818net/inet/ip.cskb->ip_hdr = iph;
iph1819net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1822net/inet/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1)
iph1832net/inet/ip.ciph->id      = htons(ip_id_count++);
iph1860net/inet/ip.cip_send_check(iph);
iph1924net/inet/ip.cip_acct_cnt(iph,dev, ip_acct_chain);
iph1933net/inet/ip.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
iph1937net/inet/ip.cif(iph->daddr==IGMP_ALL_HOSTS)
iph1944net/inet/ip.cif(imc->multiaddr==iph->daddr)
iph1962net/inet/ip.cif((dev->flags&IFF_BROADCAST) && iph->daddr==dev->pa_brdaddr && !(dev->flags&IFF_LOOPBACK))
iph62net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph743net/inet/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
iph745net/inet/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
iph201net/inet/raw.cstruct iphdr *iph;
iph206net/inet/raw.ciph = (struct iphdr *)buff;
iph207net/inet/raw.ciph->saddr = sk->saddr;
iph414net/inet/tcp.cstruct iphdr *iph;
iph430net/inet/tcp.ciph = (struct iphdr *)(skb->data + dev->hard_header_len);
iph431net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
iph442net/inet/tcp.ciph->id = htons(ip_id_count++);
iph443net/inet/tcp.cip_send_check(iph);
iph755net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph757net/inet/tcp.cheader+=4*iph->ihl;
iph3063net/inet/tcp.cstruct iphdr *iph;
iph3072net/inet/tcp.ciph = (struct iphdr *)(skb->data +
iph3074net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));