taglinefilesource code
iph113arch/alpha/lib/checksum.cunsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl)
iph115arch/alpha/lib/checksum.creturn ~do_csum(iph,ihl*4);
iph127drivers/net/tunnel.cstruct iphdr *iph;    /* Our new IP header */
iph163drivers/net/tunnel.ciph=(struct iphdr *)skb->data;
iph164drivers/net/tunnel.cif ( iph->version != 4 ) 
iph169drivers/net/tunnel.cprintk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version);
iph180drivers/net/tunnel.cif ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) 
iph191drivers/net/tunnel.cif ( iph->daddr == dev->pa_addr ) 
iph201drivers/net/tunnel.cprint_ip(iph);
iph221drivers/net/tunnel.ciph=skb2->h.iph=(struct iphdr *)skb2->data;
iph222drivers/net/tunnel.cskb2->ip_hdr=iph;
iph223drivers/net/tunnel.cmemcpy(skb2->h.iph, skb->data, ip_header_len );
iph229drivers/net/tunnel.c++iph->ttl;  /* Note: ip_forward() decrements ttl, so compensate */
iph230drivers/net/tunnel.ciph->saddr = dev->pa_addr;
iph231drivers/net/tunnel.ciph->daddr = dev->pa_dstaddr;
iph232drivers/net/tunnel.ciph->protocol = IPPROTO_IPIP;
iph233drivers/net/tunnel.ciph->ihl = 5;
iph234drivers/net/tunnel.ciph->tot_len = htons(skb2->len);
iph235drivers/net/tunnel.ciph->frag_off = 0;
iph239drivers/net/tunnel.ciph->check = 0;
iph240drivers/net/tunnel.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph244drivers/net/tunnel.cprint_ip(iph);
iph250drivers/net/tunnel.cif(ip_forward(skb2, dev, 0, iph->daddr))
iph9include/asm-alpha/checksum.hextern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl);
iph45include/asm-i386/checksum.hstatic inline unsigned short ip_fast_csum(unsigned char * iph,
iph68include/asm-i386/checksum.h: "=&r" (sum), "=&r" (iph), "=&r" (ihl)
iph69include/asm-i386/checksum.h: "1" (iph), "2" (ihl));
iph54include/linux/skbuff.hstruct iphdr  *iph;
iph70include/net/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph128include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
iph268net/ethernet/eth.cstruct iphdr *iph;
iph286net/ethernet/eth.ciph=(struct iphdr*)(src+ETH_HLEN);
iph287net/ethernet/eth.cip_length = ntohs(iph->tot_len) - sizeof(struct iphdr);
iph255net/ipv4/icmp.cstruct iphdr *iph;
iph265net/ipv4/icmp.ciph = skb_in->ip_hdr;
iph278net/ipv4/icmp.catype=ip_chk_addr(iph->daddr);
iph287net/ipv4/icmp.cif(iph->frag_off&htons(IP_OFFSET))
iph300net/ipv4/icmp.cif(iph->protocol==IPPROTO_ICMP)
iph302net/ipv4/icmp.cicmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2));
iph316net/ipv4/icmp.csaddr=iph->daddr;
iph323net/ipv4/icmp.cicmp_param.data_ptr=iph;
iph324net/ipv4/icmp.cicmp_param.data_len=(iph->ihl<<2)+8;  /* RFC says return header + 8 bytes */
iph330net/ipv4/icmp.cif (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0)
iph331net/ipv4/icmp.cicmp_build_xmit(&icmp_param, saddr, iph->saddr);
iph341net/ipv4/icmp.cstruct iphdr *iph;
iph346net/ipv4/icmp.ciph = (struct iphdr *) (icmph + 1);
iph348net/ipv4/icmp.cdp= ((unsigned char *)iph)+(iph->ihl<<2);
iph360net/ipv4/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph367net/ipv4/icmp.cin_ntoa(iph->daddr));
iph371net/ipv4/icmp.cunsigned short old_mtu = ntohs(iph->tot_len);
iph406net/ipv4/icmp.ciph->id = htons(new_mtu);
iph411net/ipv4/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph432net/ipv4/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph454net/ipv4/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph457net/ipv4/icmp.ciph->daddr, iph->saddr, ipprot);
iph472net/ipv4/icmp.cstruct iphdr *iph;
iph479net/ipv4/icmp.ciph = (struct iphdr *) (icmph + 1);
iph480net/ipv4/icmp.cip = iph->daddr;
iph49net/ipv4/ip_forward.cstruct iphdr *iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr));
iph52net/ipv4/ip_forward.ciph->version  =   4;
iph53net/ipv4/ip_forward.ciph->tos  =  skb->ip_hdr->tos;
iph54net/ipv4/ip_forward.ciph->ttl  =  skb->ip_hdr->ttl;
iph55net/ipv4/ip_forward.ciph->frag_off  =  0;
iph56net/ipv4/ip_forward.ciph->daddr  =  daddr;
iph57net/ipv4/ip_forward.ciph->saddr  =  out->pa_addr;
iph58net/ipv4/ip_forward.ciph->protocol  =  IPPROTO_IPIP;
iph59net/ipv4/ip_forward.ciph->ihl  =  5;
iph60net/ipv4/ip_forward.ciph->tot_len  =  htons(skb->len);
iph61net/ipv4/ip_forward.ciph->id    =  htons(ip_id_count++);
iph62net/ipv4/ip_forward.cip_send_check(iph);
iph87net/ipv4/ip_forward.cstruct iphdr *iph;  /* Our header */
iph109net/ipv4/ip_forward.cfw_res=call_fw_firewall(PF_INET, skb, skb->h.iph);
iph133net/ipv4/ip_forward.ciph = skb->h.iph;
iph134net/ipv4/ip_forward.ciph->ttl--;
iph142net/ipv4/ip_forward.ciph->check = ntohs(iph->check) + 0x0100;
iph143net/ipv4/ip_forward.cif ((iph->check & 0xFF00) == 0)
iph144net/ipv4/ip_forward.ciph->check++;    /* carry overflow */
iph145net/ipv4/ip_forward.ciph->check = htons(iph->check);
iph147net/ipv4/ip_forward.cif (iph->ttl <= 0)
iph208net/ipv4/ip_forward.cif (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) &&
iph245net/ipv4/ip_forward.cif (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) {
iph301net/ipv4/ip_forward.ciph = skb2->ip_hdr = skb2->h.iph;
iph346net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->rr;
iph354net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->srr;
iph370net/ipv4/ip_forward.ciph->daddr = target_addr;
iph378net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->ts;
iph385net/ipv4/ip_forward.cip_send_check(iph);
iph411net/ipv4/ip_forward.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph419net/ipv4/ip_forward.cif(iph->tos & IPTOS_LOWDELAY)
iph421net/ipv4/ip_forward.celse if(iph->tos & IPTOS_THROUGHPUT)
iph129net/ipv4/ip_fragment.cstatic struct ipq *ip_find(struct iphdr *iph)
iph138net/ipv4/ip_fragment.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph139net/ipv4/ip_fragment.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol)
iph196net/ipv4/ip_fragment.cfrag_kfree_s(qp->iph, 64 + 8);
iph253net/ipv4/ip_fragment.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph271net/ipv4/ip_fragment.cihlen = iph->ihl * 4;
iph272net/ipv4/ip_fragment.cqp->iph = (struct iphdr *) frag_kmalloc(64 + 8, GFP_ATOMIC);
iph273net/ipv4/ip_fragment.cif (qp->iph == NULL)
iph280net/ipv4/ip_fragment.cmemcpy(qp->iph, iph, ihlen + 8);
iph344net/ipv4/ip_fragment.cstruct iphdr *iph;
iph369net/ipv4/ip_fragment.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph395net/ipv4/ip_fragment.ciph = skb->h.iph;
iph396net/ipv4/ip_fragment.ciph->frag_off = 0;
iph397net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
iph398net/ipv4/ip_fragment.cskb->ip_hdr = iph;
iph409net/ipv4/ip_fragment.cstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph431net/ipv4/ip_fragment.cqp = ip_find(iph);
iph434net/ipv4/ip_fragment.coffset = ntohs(iph->frag_off);
iph445net/ipv4/ip_fragment.cihl = iph->ihl * 4;
iph461net/ipv4/ip_fragment.cmemcpy(qp->iph, iph, ihl+8);
iph474net/ipv4/ip_fragment.cif ((qp = ip_create(skb, iph, dev)) == NULL)
iph487net/ipv4/ip_fragment.cend = offset + ntohs(iph->tot_len) - ihl;
iph620net/ipv4/ip_fragment.cstruct iphdr *iph;
iph634net/ipv4/ip_fragment.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
iph635net/ipv4/ip_fragment.cskb->ip_hdr = iph;
iph637net/ipv4/ip_fragment.ciph = skb->ip_hdr;
iph644net/ipv4/ip_fragment.chlen = iph->ihl * 4;
iph645net/ipv4/ip_fragment.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph654net/ipv4/ip_fragment.cif (ntohs(iph->frag_off) & IP_DF)
iph685net/ipv4/ip_fragment.coffset = (ntohs(iph->frag_off) & IP_OFFSET) << 3;
iph760net/ipv4/ip_fragment.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph761net/ipv4/ip_fragment.ciph->frag_off = htons((offset >> 3));
iph762net/ipv4/ip_fragment.cskb2->ip_hdr = iph;
iph778net/ipv4/ip_fragment.ciph->frag_off |= htons(IP_MF);
iph596net/ipv4/ip_fw.cstruct iphdr *iph = skb->h.iph;
iph597net/ipv4/ip_fw.cstruct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
iph676net/ipv4/ip_fw.cms->dst      = iph->daddr;
iph746net/ipv4/ip_fw.ciph=skb2->h.iph;
iph750net/ipv4/ip_fw.ciph->tot_len = htons(diff+ntohs(iph->tot_len));
iph751net/ipv4/ip_fw.ciph->check = 0;
iph752net/ipv4/ip_fw.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph767net/ipv4/ip_fw.ciph->tot_len = htons(skb->len + diff);
iph793net/ipv4/ip_fw.cstruct iphdr  *iph = skb->h.iph;
iph802net/ipv4/ip_fw.cif (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP)
iph809net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
iph814net/ipv4/ip_fw.cstrProt[iph->protocol==IPPROTO_TCP],
iph815net/ipv4/ip_fw.cntohl(iph->saddr), ntohs(portptr[0]),
iph816net/ipv4/ip_fw.cntohl(iph->daddr), ntohs(portptr[1]));
iph820net/ipv4/ip_fw.cif (iph->protocol == ms->protocol &&
iph821net/ipv4/ip_fw.ciph->saddr == ms->src   && iph->daddr == ms->dst &&
iph842net/ipv4/ip_fw.cms->protocol = iph->protocol;
iph843net/ipv4/ip_fw.cms->src      = iph->saddr;
iph844net/ipv4/ip_fw.cms->dst      = iph->daddr;
iph854net/ipv4/ip_fw.ciph->saddr = dev->pa_addr; /* my own address */
iph861net/ipv4/ip_fw.cif (iph->protocol==IPPROTO_UDP) 
iph864net/ipv4/ip_fw.crecalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size);
iph873net/ipv4/ip_fw.ciph = skb->h.iph;
iph874net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
iph889net/ipv4/ip_fw.ctcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk);
iph892net/ipv4/ip_fw.cip_send_check(iph);
iph910net/ipv4/ip_fw.cstruct iphdr  *iph = skb_ptr->h.iph;
iph913net/ipv4/ip_fw.cstruct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2));
iph915net/ipv4/ip_fw.cif (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP)
iph918net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
iph925net/ipv4/ip_fw.cstrProt[iph->protocol==IPPROTO_TCP],
iph926net/ipv4/ip_fw.cntohl(iph->saddr), ntohs(portptr[0]),
iph927net/ipv4/ip_fw.cntohl(iph->daddr), ntohs(portptr[1]));
iph942net/ipv4/ip_fw.cif (iph->protocol==ms->protocol &&
iph943net/ipv4/ip_fw.c(iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && 
iph949net/ipv4/ip_fw.ciph->daddr = ms->src;
iph963net/ipv4/ip_fw.cif (iph->protocol==IPPROTO_UDP)
iph964net/ipv4/ip_fw.crecalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size);
iph994net/ipv4/ip_fw.ctcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk);
iph996net/ipv4/ip_fw.cip_send_check(iph);
iph998net/ipv4/ip_fw.cprintk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1]));
iph1360net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
iph1362net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
iph196net/ipv4/ip_input.cstruct iphdr *iph = skb->h.iph;
iph216net/ipv4/ip_input.cif(iph->version == 6)
iph226net/ipv4/ip_input.cskb->ip_hdr = iph;
iph241net/ipv4/ip_input.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
iph242net/ipv4/ip_input.c|| skb->len < ntohs(iph->tot_len))
iph255net/ipv4/ip_input.cskb_trim(skb,ntohs(iph->tot_len));
iph257net/ipv4/ip_input.cif (iph->ihl > 5) 
iph278net/ipv4/ip_input.cif ((err=call_in_firewall(PF_INET, skb, iph))<FW_ACCEPT)
iph292net/ipv4/ip_input.cif(iph->frag_off)
iph294net/ipv4/ip_input.cif (iph->frag_off & htons(IP_MF))
iph300net/ipv4/ip_input.cif (iph->frag_off & htons(IP_OFFSET))
iph316net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
iph322net/ipv4/ip_input.cunsigned char * optptr = ((unsigned char *)iph) + opt->srr;
iph374net/ipv4/ip_input.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
iph387net/ipv4/ip_input.cif(ip_mc->multiaddr==iph->daddr)
iph401net/ipv4/ip_input.cstruct iphdr *iph=skb->h.iph;
iph402net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|4, iph->daddr))
iph413net/ipv4/ip_input.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph423net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
iph427net/ipv4/ip_input.ciph=skb->h.iph;
iph434net/ipv4/ip_input.cskb->ip_hdr = iph;
iph435net/ipv4/ip_input.cskb->h.raw += iph->ihl*4;
iph442net/ipv4/ip_input.cif(brd==IS_MULTICAST && (iph->daddr&htonl(0xFFFFFF00))!=htonl(0xE0000000))
iph452net/ipv4/ip_input.chash = iph->protocol & (SOCK_ARRAY_SIZE-1);
iph462net/ipv4/ip_input.craw_sk=get_sock_raw(raw_sk, iph->protocol,  iph->saddr, iph->daddr);
iph468net/ipv4/ip_input.csknext=get_sock_raw(raw_sk->next, iph->protocol, iph->saddr, iph->daddr);
iph474net/ipv4/ip_input.craw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr);
iph493net/ipv4/ip_input.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph498net/ipv4/ip_input.cif (ipprot->protocol != iph->protocol)
iph529net/ipv4/ip_input.cipprot->handler(skb2, dev, opt, iph->daddr,
iph530net/ipv4/ip_input.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph531net/ipv4/ip_input.ciph->saddr, 0, ipprot);
iph566net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr);
iph602net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, iph->daddr))
iph33net/ipv4/ip_options.cunsigned char * iph = (unsigned char*)skb->ip_hdr;
iph36net/ipv4/ip_options.cmemcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen);
iph41net/ipv4/ip_options.cmemcpy(iph+opt->srr+iph[opt->srr+1]-4, &daddr, 4);
iph46net/ipv4/ip_options.cmemcpy(iph+opt->rr+iph[opt->rr+2]-5, &saddr, 4);
iph48net/ipv4/ip_options.cmemcpy(iph+opt->ts+iph[opt->ts+2]-9, &saddr, 4);
iph55net/ipv4/ip_options.cmemcpy(iph+opt->ts+iph[opt->ts+2]-5, &midtime, 4);
iph61net/ipv4/ip_options.cmemset(iph+opt->rr, IPOPT_NOP, iph[opt->rr+1]);
iph67net/ipv4/ip_options.cmemset(iph+opt->ts, IPOPT_NOP, iph[opt->ts+1]);
iph237net/ipv4/ip_options.cunsigned char * iph;
iph246net/ipv4/ip_options.ciph = (unsigned char*)skb->ip_hdr;
iph247net/ipv4/ip_options.copt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr);
iph248net/ipv4/ip_options.coptptr = iph + sizeof(struct iphdr);
iph254net/ipv4/ip_options.ciph = optptr - sizeof(struct iphdr);
iph314net/ipv4/ip_options.copt->srr = optptr - iph;
iph347net/ipv4/ip_options.copt->rr = optptr - iph;
iph377net/ipv4/ip_options.copt->ts = optptr - iph;
iph389net/ipv4/ip_options.copt->ts = optptr - iph;
iph405net/ipv4/ip_options.copt->ts = optptr - iph;
iph440net/ipv4/ip_options.copt->ts = optptr - iph;
iph468net/ipv4/ip_options.cicmp_send(skb, ICMP_PARAMETERPROB, 0, pp_ptr-iph, skb->dev);
iph196net/ipv4/ip_output.cstruct iphdr *iph;
iph290net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen);
iph292net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr));
iph294net/ipv4/ip_output.ciph->version  = 4;
iph295net/ipv4/ip_output.ciph->ihl      = 5;
iph296net/ipv4/ip_output.ciph->tos      = tos;
iph297net/ipv4/ip_output.ciph->frag_off = 0;
iph298net/ipv4/ip_output.ciph->ttl      = ttl;
iph299net/ipv4/ip_output.ciph->daddr    = daddr;
iph300net/ipv4/ip_output.ciph->saddr    = saddr;
iph301net/ipv4/ip_output.ciph->protocol = type;
iph302net/ipv4/ip_output.cskb->ip_hdr   = iph;
iph306net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph308net/ipv4/ip_output.creturn iph->ihl*4 + tmp;
iph316net/ipv4/ip_output.cvoid ip_send_check(struct iphdr *iph)
iph318net/ipv4/ip_output.ciph->check = 0;
iph319net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph334net/ipv4/ip_output.cstruct iphdr *iph;
iph362net/ipv4/ip_output.ciph = skb->ip_hdr;
iph363net/ipv4/ip_output.ciph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data));
iph366net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb, iph) < FW_ACCEPT)
iph376net/ipv4/ip_output.ciph->id      = htons(ip_id_count++);
iph392net/ipv4/ip_output.cif(ntohs(iph->tot_len)> dev->mtu)
iph404net/ipv4/ip_output.cip_send_check(iph);
iph468net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph477net/ipv4/ip_output.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
iph481net/ipv4/ip_output.cif(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
iph490net/ipv4/ip_output.cif(imc->multiaddr==iph->daddr)
iph508net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
iph578net/ipv4/ip_output.cstruct iphdr *iph;
iph679net/ipv4/ip_output.cskb->ip_hdr=iph=(struct iphdr *)skb_put(skb,length);
iph683net/ipv4/ip_output.ciph->version=4;
iph684net/ipv4/ip_output.ciph->ihl=5;
iph685net/ipv4/ip_output.ciph->tos=sk->ip_tos;
iph686net/ipv4/ip_output.ciph->tot_len = htons(length);
iph687net/ipv4/ip_output.ciph->id=htons(ip_id_count++);
iph688net/ipv4/ip_output.ciph->frag_off = 0;
iph689net/ipv4/ip_output.ciph->ttl=sk->ip_ttl;
iph690net/ipv4/ip_output.ciph->protocol=type;
iph691net/ipv4/ip_output.ciph->saddr=saddr;
iph692net/ipv4/ip_output.ciph->daddr=daddr;
iph695net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph699net/ipv4/ip_output.ciph->check=0;
iph700net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph701net/ipv4/ip_output.cgetfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4);
iph704net/ipv4/ip_output.cgetfrag(frag,saddr,(void *)iph,0,length-20);
iph707net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb, iph)< FW_ACCEPT)
iph859net/ipv4/ip_output.cskb->ip_hdr = iph = (struct iphdr *)data;
iph868net/ipv4/ip_output.ciph->version = 4;
iph869net/ipv4/ip_output.ciph->ihl = 5; /* ugh */
iph871net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph875net/ipv4/ip_output.ciph->tos = sk->ip_tos;
iph876net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
iph877net/ipv4/ip_output.ciph->id = id;
iph878net/ipv4/ip_output.ciph->frag_off = htons(offset>>3);
iph879net/ipv4/ip_output.ciph->frag_off |= mf;
iph882net/ipv4/ip_output.ciph->ttl = sk->ip_mc_ttl;
iph885net/ipv4/ip_output.ciph->ttl = sk->ip_ttl;
iph886net/ipv4/ip_output.ciph->protocol = type;
iph887net/ipv4/ip_output.ciph->check = 0;
iph888net/ipv4/ip_output.ciph->saddr = saddr;
iph889net/ipv4/ip_output.ciph->daddr = daddr;
iph890net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph891net/ipv4/ip_output.cdata += iph->ihl*4;
iph911net/ipv4/ip_output.cif(!offset && call_out_firewall(PF_INET, skb, iph) < FW_ACCEPT)
iph920net/ipv4/ip_output.cip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1);
iph74net/ipv4/ipip.cskb->h.iph=(struct iphdr *)skb->data;
iph267net/ipv4/ipmr.cskb->h.iph=skb->ip_hdr;
iph712net/ipv4/ipmr.cskb->raddr=skb->h.iph->daddr;
iph166net/ipv4/raw.cstruct iphdr *iph=(struct iphdr *)to;
iph167net/ipv4/raw.ciph->saddr=saddr;
iph168net/ipv4/raw.ciph->check=0;
iph169net/ipv4/raw.ciph->tot_len=htons(fraglen);  /* This is right as you cant frag
iph175net/ipv4/raw.ciph->id = htons(ip_id_count++);
iph176net/ipv4/raw.ciph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
iph646net/ipv4/tcp.cstruct iphdr *iph;
iph668net/ipv4/tcp.ciph = (struct iphdr *)skb->data;
iph669net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
iph670net/ipv4/tcp.csize = ntohs(iph->tot_len) - (iph->ihl<<2);
iph685net/ipv4/tcp.crt = ip_check_route(&sk->ip_route_cache, opt->srr?opt->faddr:iph->daddr, skb->localroute);
iph688net/ipv4/tcp.ciph->id = htons(ip_id_count++);
iph690net/ipv4/tcp.cif (rt && ntohs(iph->tot_len) > rt->rt_mtu)
iph691net/ipv4/tcp.ciph->frag_off &= ~htons(IP_DF);
iph693net/ipv4/tcp.cip_send_check(iph);
iph716net/ipv4/tcp.cprintk("tcp_do_retransmit: hh miss %08x via %08x\n", iph->daddr, rt->rt_gateway);
iph1064net/ipv4/tcp.cstruct iphdr *iph=(struct iphdr *)(header-sizeof(struct iphdr));
iph1098net/ipv4/tcp.cunsigned short new_mtu = ntohs(iph->id);
iph3336net/ipv4/tcp.cstruct iphdr *iph;
iph3345net/ipv4/tcp.ciph = skb->ip_hdr;
iph3346net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
iph3351net/ipv4/tcp.ciph->frag_off &= ~htons(IP_DF);
iph3352net/ipv4/tcp.cip_send_check(iph);
iph5242net/ipv4/tcp.cstruct iphdr *iph;
iph5261net/ipv4/tcp.ciph = (struct iphdr *)skb->ip_hdr;
iph5262net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
iph5269net/ipv4/tcp.c(iph->ihl << 2) +
iph5322net/ipv4/tcp.c(iph->ihl << 2) + th->doff * 4;