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;
iph159net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph165net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph182net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph186net/inet/ip.cptr = (unsigned char *)(iph+1);
iph232net/inet/ip.cstruct iphdr *iph;
iph332net/inet/ip.ciph = (struct iphdr *)buff;
iph333net/inet/ip.ciph->version  = 4;
iph334net/inet/ip.ciph->tos      = tos;
iph335net/inet/ip.ciph->frag_off = 0;
iph336net/inet/ip.ciph->ttl      = ttl;
iph337net/inet/ip.ciph->daddr    = daddr;
iph338net/inet/ip.ciph->saddr    = saddr;
iph339net/inet/ip.ciph->protocol = type;
iph340net/inet/ip.ciph->ihl      = 5;
iph341net/inet/ip.cskb->ip_hdr   = iph;
iph345net/inet/ip.cbuild_options(iph, opt);
iph353net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph372net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph375net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph486net/inet/ip.cstrict_route(iph, opt);
iph492net/inet/ip.cloose_route(iph, opt);
iph552net/inet/ip.cvoid ip_send_check(struct iphdr *iph)
iph554net/inet/ip.ciph->check = 0;
iph555net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph600net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph609net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph610net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol)
iph670net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph713net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph735net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph748net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph749net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph750net/inet/ip.cif (qp->iph == NULL)
iph760net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph826net/inet/ip.cstruct iphdr *iph;
iph854net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph881net/inet/ip.ciph = skb->h.iph;
iph882net/inet/ip.ciph->frag_off = 0;
iph883net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph884net/inet/ip.cskb->ip_hdr = iph;
iph895net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph908net/inet/ip.cqp = ip_find(iph);
iph911net/inet/ip.coffset = ntohs(iph->frag_off);
iph942net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL)
iph955net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph956net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph1089net/inet/ip.cstruct iphdr *iph;
iph1102net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph1104net/inet/ip.cskb->ip_hdr = iph;
iph1110net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph1111net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph1120net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF)
iph1154net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1229net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1230net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1236net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1262net/inet/ip.cstruct iphdr *iph;  /* Our header */
iph1275net/inet/ip.cif((err=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0))!=1)
iph1293net/inet/ip.ciph = skb->h.iph;
iph1294net/inet/ip.ciph->ttl--;
iph1295net/inet/ip.cif (iph->ttl <= 0)
iph1308net/inet/ip.cip_send_check(iph);
iph1315net/inet/ip.crt = ip_rt_route(iph->daddr, NULL, NULL);
iph1356net/inet/ip.craddr = iph->daddr;
iph1373net/inet/ip.cif (dev == dev2 && (iph->saddr&dev->pa_mask) == (iph->daddr & dev->pa_mask))
iph1434net/inet/ip.cip_acct_cnt(iph,dev,ip_acct_chain);
iph1442net/inet/ip.cif(iph->tos & IPTOS_LOWDELAY)
iph1444net/inet/ip.celse if(iph->tos & IPTOS_THROUGHPUT)
iph1461net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1481net/inet/ip.cskb->ip_hdr = iph;
iph1492net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0)
iph1505net/inet/ip.cif ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))!=1)
iph1520net/inet/ip.cskb->len=ntohs(iph->tot_len);
iph1527net/inet/ip.cif (iph->ihl != 5)
iph1530net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1539net/inet/ip.cif(iph->frag_off)
iph1541net/inet/ip.cif (iph->frag_off & 0x0020)
iph1547net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1563net/inet/ip.cif ( iph->daddr != skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0)
iph1597net/inet/ip.cif(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
iph1610net/inet/ip.cif(ip_mc->multiaddr==iph->daddr)
iph1622net/inet/ip.cip_acct_cnt(iph,dev, ip_acct_chain);
iph1632net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1636net/inet/ip.ciph=skb->h.iph;
iph1645net/inet/ip.cskb->ip_hdr = iph;
iph1646net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1652net/inet/ip.chash = iph->protocol & (SOCK_ARRAY_SIZE-1);
iph1659net/inet/ip.craw_sk=get_sock_raw(raw_sk, hash,  iph->saddr, iph->daddr);
iph1665net/inet/ip.csknext=get_sock_raw(raw_sk->next, hash, iph->saddr, iph->daddr);
iph1671net/inet/ip.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
iph1684net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1689net/inet/ip.cif (ipprot->protocol != iph->protocol)
iph1714net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1715net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1716net/inet/ip.ciph->saddr, 0, ipprot);
iph1728net/inet/ip.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
iph1788net/inet/ip.cstruct iphdr *iph;
iph1818net/inet/ip.ciph = (struct iphdr *)ptr;
iph1819net/inet/ip.cskb->ip_hdr = iph;
iph1820net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1823net/inet/ip.cif(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1)
iph1833net/inet/ip.ciph->id      = htons(ip_id_count++);
iph1861net/inet/ip.cip_send_check(iph);
iph1925net/inet/ip.cip_acct_cnt(iph,dev, ip_acct_chain);
iph1934net/inet/ip.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
iph1938net/inet/ip.cif(iph->daddr==IGMP_ALL_HOSTS)
iph1945net/inet/ip.cif(imc->multiaddr==iph->daddr)
iph1963net/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;
iph417net/inet/tcp.cstruct iphdr *iph;
iph433net/inet/tcp.ciph = (struct iphdr *)(skb->data + dev->hard_header_len);
iph434net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
iph445net/inet/tcp.ciph->id = htons(ip_id_count++);
iph446net/inet/tcp.cip_send_check(iph);
iph758net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph760net/inet/tcp.cheader+=4*iph->ihl;
iph3066net/inet/tcp.cstruct iphdr *iph;
iph3075net/inet/tcp.ciph = (struct iphdr *)(skb->data +
iph3077net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));