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);
iph132drivers/net/new_tunnel.cstruct iphdr  *iph;      /* Our new IP header */
iph166drivers/net/new_tunnel.ciph = (struct iphdr *) skb->data;
iph167drivers/net/new_tunnel.cif ((rt = ip_rt_route(iph->daddr, 0)) == NULL)
iph222drivers/net/new_tunnel.cprint_ip(iph);
iph235drivers/net/new_tunnel.cskb->h.iph = (struct iphdr *) skb_push(skb, tunnel_hlen);
iph266drivers/net/new_tunnel.cnew_skb->h.iph = (struct iphdr *) skb_push(new_skb, tunnel_hlen);
iph277drivers/net/new_tunnel.ciph       =  skb->h.iph;
iph278drivers/net/new_tunnel.ciph->version    =   4;
iph279drivers/net/new_tunnel.ciph->tos    =  skb->ip_hdr->tos;
iph280drivers/net/new_tunnel.ciph->ttl    =  skb->ip_hdr->ttl;
iph281drivers/net/new_tunnel.ciph->frag_off    =  0;
iph282drivers/net/new_tunnel.ciph->daddr    =  target;
iph283drivers/net/new_tunnel.ciph->saddr    =  tdev->pa_addr;
iph284drivers/net/new_tunnel.ciph->protocol    =  IPPROTO_IPIP;
iph285drivers/net/new_tunnel.ciph->ihl    =  5;
iph286drivers/net/new_tunnel.ciph->tot_len    =  htons(skb->len);
iph287drivers/net/new_tunnel.ciph->id      =  htons(ip_id_count++);  /* Race condition here? */
iph288drivers/net/new_tunnel.cip_send_check(iph);
iph289drivers/net/new_tunnel.cskb->ip_hdr     = skb->h.iph;
iph293drivers/net/new_tunnel.cprint_ip(iph);
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,
iph71include/asm-i386/checksum.h: "=r" (sum), "=r" (iph), "=r" (ihl)
iph72include/asm-i386/checksum.h: "1" (iph), "2" (ihl));
iph45include/asm-m68k/checksum.hip_fast_csum(unsigned char *iph, unsigned int ihl)
iph59include/asm-m68k/checksum.h: "=d" (sum), "=a" (iph), "=d" (ihl)
iph60include/asm-m68k/checksum.h: "0" (sum), "1" (iph), "2" (ihl)
iph49include/asm-mips/checksum.hstatic inline unsigned short ip_fast_csum(unsigned char * iph,
iph96include/asm-mips/checksum.h: "r" (iph), "r"(ihl)
iph9include/asm-ppc/checksum.hextern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl);
iph121include/asm-sparc/checksum.hextern inline unsigned short ip_fast_csum(const unsigned char *iph, unsigned int ihl)
iph151include/asm-sparc/checksum.h: "=&r" (sum), "=&r" (iph), "=&r" (ihl)
iph152include/asm-sparc/checksum.h: "1" (iph), "2" (ihl)
iph65include/linux/skbuff.hstruct iphdr  *iph;
iph71include/net/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph129include/net/ip.hstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev);
iph272net/ethernet/eth.cstruct iphdr *iph;
iph290net/ethernet/eth.ciph=(struct iphdr*)(src+ETH_HLEN);
iph291net/ethernet/eth.cip_length = ntohs(iph->tot_len) - sizeof(struct iphdr);
iph508net/ipv4/icmp.cstruct iphdr *iph;
iph518net/ipv4/icmp.ciph = skb_in->ip_hdr;
iph531net/ipv4/icmp.catype=ip_chk_addr(iph->daddr);
iph540net/ipv4/icmp.cif(iph->frag_off&htons(IP_OFFSET))
iph553net/ipv4/icmp.cif(iph->protocol==IPPROTO_ICMP)
iph555net/ipv4/icmp.cicmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2));
iph570net/ipv4/icmp.cif (!xrlim_allow(type, iph->saddr))
iph578net/ipv4/icmp.csaddr=iph->daddr;
iph585net/ipv4/icmp.cicmp_param.data_ptr=iph;
iph586net/ipv4/icmp.cicmp_param.data_len=(iph->ihl<<2)+8;  /* RFC says return header + 8 bytes */
iph592net/ipv4/icmp.cif (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0)
iph593net/ipv4/icmp.cicmp_build_xmit(&icmp_param, saddr, iph->saddr, ((iph->tos & 0x38) | 6));
iph603net/ipv4/icmp.cstruct iphdr *iph;
iph608net/ipv4/icmp.ciph = (struct iphdr *) (icmph + 1);
iph610net/ipv4/icmp.cdp= ((unsigned char *)iph)+(iph->ihl<<2);
iph629net/ipv4/icmp.cin_ntoa(iph->daddr));
iph633net/ipv4/icmp.cunsigned short old_mtu = ntohs(iph->tot_len);
iph679net/ipv4/icmp.ciph->id = htons(new_mtu);
iph684net/ipv4/icmp.cprintk(KERN_INFO "ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph705net/ipv4/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph727net/ipv4/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph730net/ipv4/icmp.ciph->daddr, iph->saddr, ipprot);
iph745net/ipv4/icmp.cstruct iphdr *iph;
iph752net/ipv4/icmp.ciph = (struct iphdr *) (icmph + 1);
iph753net/ipv4/icmp.cip = iph->daddr;
iph902net/ipv4/icmp.cicmp_build_xmit(&icmp_param, daddr, saddr, skb->iph->tos);
iph55net/ipv4/ip_forward.cstruct iphdr *iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr));
iph58net/ipv4/ip_forward.ciph->version  =   4;
iph59net/ipv4/ip_forward.ciph->tos  =  skb->ip_hdr->tos;
iph60net/ipv4/ip_forward.ciph->ttl  =  skb->ip_hdr->ttl;
iph61net/ipv4/ip_forward.ciph->frag_off  =  0;
iph62net/ipv4/ip_forward.ciph->daddr  =  daddr;
iph63net/ipv4/ip_forward.ciph->saddr  =  out->pa_addr;
iph64net/ipv4/ip_forward.ciph->protocol  =  IPPROTO_IPIP;
iph65net/ipv4/ip_forward.ciph->ihl  =  5;
iph66net/ipv4/ip_forward.ciph->tot_len  =  htons(skb->len);
iph67net/ipv4/ip_forward.ciph->id    =  htons(ip_id_count++);
iph68net/ipv4/ip_forward.cip_send_check(iph);
iph93net/ipv4/ip_forward.cstruct iphdr *iph;  /* Our header */
iph116net/ipv4/ip_forward.cfw_res=call_fw_firewall(PF_INET, dev, skb->h.iph);
iph141net/ipv4/ip_forward.ciph = skb->h.iph;
iph142net/ipv4/ip_forward.ciph->ttl--;
iph150net/ipv4/ip_forward.ciph->check = ntohs(iph->check) + 0x0100;
iph151net/ipv4/ip_forward.cif ((iph->check & 0xFF00) == 0)
iph152net/ipv4/ip_forward.ciph->check++;    /* carry overflow */
iph153net/ipv4/ip_forward.ciph->check = htons(iph->check);
iph155net/ipv4/ip_forward.cif (iph->ttl <= 0)
iph218net/ipv4/ip_forward.c!((iph->saddr^dev->pa_addr)&dev->pa_mask) &&
iph222net/ipv4/ip_forward.ciph->daddr != raddr/*ANK*/ && !opt->srr)
iph257net/ipv4/ip_forward.cif (skb->len+encap > dev2->mtu && (ntohs(iph->frag_off) & IP_DF)) 
iph317net/ipv4/ip_forward.ciph = skb2->ip_hdr = skb2->h.iph;
iph356net/ipv4/ip_forward.cif((fw_res = call_out_firewall(PF_INET, skb2->dev, iph)) < FW_ACCEPT)
iph374net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->rr;
iph382net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->srr;
iph398net/ipv4/ip_forward.ciph->daddr = target_addr;
iph406net/ipv4/ip_forward.coptptr = (unsigned char *)iph + opt->ts;
iph413net/ipv4/ip_forward.cip_send_check(iph);
iph439net/ipv4/ip_forward.cip_fw_chk(iph,dev2,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph447net/ipv4/ip_forward.cif(iph->tos & IPTOS_LOWDELAY)
iph449net/ipv4/ip_forward.celse if(iph->tos & IPTOS_THROUGHPUT)
iph117net/ipv4/ip_fragment.cstatic struct ipq *ip_find(struct iphdr *iph)
iph126net/ipv4/ip_fragment.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph127net/ipv4/ip_fragment.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol)
iph184net/ipv4/ip_fragment.cfrag_kfree_s(qp->iph, 64 + 8);
iph241net/ipv4/ip_fragment.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph258net/ipv4/ip_fragment.cihlen = iph->ihl * 4;
iph259net/ipv4/ip_fragment.cqp->iph = (struct iphdr *) frag_kmalloc(64 + 8, GFP_ATOMIC);
iph260net/ipv4/ip_fragment.cif (qp->iph == NULL)
iph267net/ipv4/ip_fragment.cmemcpy(qp->iph, iph, ihlen + 8);
iph331net/ipv4/ip_fragment.cstruct iphdr *iph;
iph356net/ipv4/ip_fragment.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph382net/ipv4/ip_fragment.ciph = skb->h.iph;
iph383net/ipv4/ip_fragment.ciph->frag_off = 0;
iph384net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
iph385net/ipv4/ip_fragment.cskb->ip_hdr = iph;
iph396net/ipv4/ip_fragment.cstruct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph418net/ipv4/ip_fragment.cqp = ip_find(iph);
iph421net/ipv4/ip_fragment.coffset = ntohs(iph->frag_off);
iph432net/ipv4/ip_fragment.cihl = iph->ihl * 4;
iph448net/ipv4/ip_fragment.cmemcpy(qp->iph, iph, ihl+8);
iph461net/ipv4/ip_fragment.cif ((qp = ip_create(skb, iph, dev)) == NULL)
iph474net/ipv4/ip_fragment.cend = offset + ntohs(iph->tot_len) - ihl;
iph607net/ipv4/ip_fragment.cstruct iphdr *iph;
iph620net/ipv4/ip_fragment.ciph = (struct iphdr *) (raw + dev->hard_header_len);  
iph621net/ipv4/ip_fragment.cskb->ip_hdr = iph;
iph623net/ipv4/ip_fragment.ciph = skb->ip_hdr;
iph630net/ipv4/ip_fragment.chlen = iph->ihl * 4;
iph631net/ipv4/ip_fragment.cleft = ntohs(iph->tot_len) - hlen;  /* Space per frame */
iph640net/ipv4/ip_fragment.cif (ntohs(iph->frag_off) & IP_DF)
iph671net/ipv4/ip_fragment.coffset = (ntohs(iph->frag_off) & IP_OFFSET) << 3;
iph743net/ipv4/ip_fragment.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph744net/ipv4/ip_fragment.ciph->frag_off = htons((offset >> 3));
iph745net/ipv4/ip_fragment.cskb2->ip_hdr = iph;
iph761net/ipv4/ip_fragment.ciph->frag_off |= htons(IP_MF);
iph774net/ipv4/ip_fw.cvoid ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f)
iph776net/ipv4/ip_fw.c(void) ip_fw_chk(iph, dev, f, 0, 1);
iph203net/ipv4/ip_input.cstruct iphdr *iph = skb->h.iph;
iph225net/ipv4/ip_input.cif(iph->version == 6)
iph235net/ipv4/ip_input.cskb->ip_hdr = iph;
iph250net/ipv4/ip_input.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
iph251net/ipv4/ip_input.c|| skb->len < ntohs(iph->tot_len))
iph264net/ipv4/ip_input.cskb_trim(skb,ntohs(iph->tot_len));
iph273net/ipv4/ip_input.cif (iph->daddr != skb->dev->pa_addr && net_alias_has(skb->dev)) 
iph274net/ipv4/ip_input.cskb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr);
iph277net/ipv4/ip_input.cif (iph->ihl > 5) 
iph298net/ipv4/ip_input.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph307net/ipv4/ip_input.cif ((err=call_in_firewall(PF_INET, skb->dev, iph))<FW_ACCEPT)
iph321net/ipv4/ip_input.cif(iph->frag_off)
iph323net/ipv4/ip_input.cif (iph->frag_off & htons(IP_MF))
iph329net/ipv4/ip_input.cif (iph->frag_off & htons(IP_OFFSET))
iph344net/ipv4/ip_input.cdaddr = iph->daddr;
iph345net/ipv4/ip_input.cif ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0)
iph351net/ipv4/ip_input.cunsigned char * optptr = ((unsigned char *)iph) + opt->srr;
iph404net/ipv4/ip_input.cif(!(dev->flags&IFF_ALLMULTI) && brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK))
iph417net/ipv4/ip_input.cif(ip_mc->multiaddr==iph->daddr)
iph431net/ipv4/ip_input.cstruct iphdr *iph=skb->h.iph;
iph432net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag|IPFWD_MASQUERADED, iph->daddr))
iph445net/ipv4/ip_input.cskb=ip_defrag(iph,skb,dev);
iph449net/ipv4/ip_input.ciph=skb->h.iph;
iph453net/ipv4/ip_input.cstruct iphdr *iph=skb->h.iph;
iph454net/ipv4/ip_input.cif (ip_forward(skb, dev, IPFWD_MASQUERADED, iph->daddr))
iph465net/ipv4/ip_input.cskb->ip_hdr = iph;
iph466net/ipv4/ip_input.cskb->h.raw += iph->ihl*4;
iph473net/ipv4/ip_input.cif(brd==IS_MULTICAST && (iph->daddr&htonl(0xFFFFFF00))!=htonl(0xE0000000))
iph483net/ipv4/ip_input.chash = iph->protocol & (SOCK_ARRAY_SIZE-1);
iph493net/ipv4/ip_input.craw_sk=get_sock_raw(raw_sk, iph->protocol,  iph->saddr, iph->daddr);
iph499net/ipv4/ip_input.csknext=get_sock_raw(raw_sk->next, iph->protocol, iph->saddr, iph->daddr);
iph505net/ipv4/ip_input.craw_rcv(raw_sk, skb1, dev, iph->saddr,daddr);
iph524net/ipv4/ip_input.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph529net/ipv4/ip_input.cif (ipprot->protocol != iph->protocol)
iph561net/ipv4/ip_input.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph562net/ipv4/ip_input.ciph->saddr, 0, ipprot);
iph597net/ipv4/ip_input.craw_rcv(raw_sk, skb, dev, iph->saddr, daddr);
iph633net/ipv4/ip_input.cif (ip_forward(skb, dev, is_frag, iph->daddr))
iph193net/ipv4/ip_masq.cip_masq_in_get(struct iphdr *iph)
iph202net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph203net/ipv4/ip_masq.cprotocol = iph->protocol;
iph204net/ipv4/ip_masq.cs_addr = iph->saddr;
iph206net/ipv4/ip_masq.cd_addr = iph->daddr;
iph226net/ipv4/ip_masq.cip_masq_out_get(struct iphdr *iph)
iph233net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph234net/ipv4/ip_masq.cprotocol = iph->protocol;
iph235net/ipv4/ip_masq.cs_addr = iph->saddr;
iph237net/ipv4/ip_masq.cd_addr = iph->daddr;
iph430net/ipv4/ip_masq.cstruct iphdr  *iph = skb->h.iph;
iph440net/ipv4/ip_masq.cif (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP)
iph447net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph450net/ipv4/ip_masq.cmasq_proto_name(iph->protocol),
iph451net/ipv4/ip_masq.cntohl(iph->saddr), ntohs(portptr[0]),
iph452net/ipv4/ip_masq.cntohl(iph->daddr), ntohs(portptr[1]));
iph455net/ipv4/ip_masq.cms = ip_masq_out_get(iph);
iph465net/ipv4/ip_masq.cms = ip_masq_new(dev, iph->protocol,
iph466net/ipv4/ip_masq.ciph->saddr, portptr[0],
iph467net/ipv4/ip_masq.ciph->daddr, portptr[1],
iph481net/ipv4/ip_masq.ciph->saddr = ms->maddr;
iph494net/ipv4/ip_masq.ciph = skb->h.iph;
iph495net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph503net/ipv4/ip_masq.cif (iph->protocol==IPPROTO_UDP)
iph506net/ipv4/ip_masq.crecalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size);
iph530net/ipv4/ip_masq.ctcp_send_check(th,iph->saddr,iph->daddr,size,skb);
iph533net/ipv4/ip_masq.cip_send_check(iph);
iph552net/ipv4/ip_masq.cstruct iphdr  *iph = skb->h.iph;
iph557net/ipv4/ip_masq.cif (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP)
iph564net/ipv4/ip_masq.cfrag = ntohs(iph->frag_off);
iph571net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph578net/ipv4/ip_masq.cmasq_proto_name(iph->protocol),
iph579net/ipv4/ip_masq.cntohl(iph->saddr), ntohs(portptr[0]),
iph580net/ipv4/ip_masq.cntohl(iph->daddr), ntohs(portptr[1]));
iph586net/ipv4/ip_masq.cms = ip_masq_in_get(iph);
iph606net/ipv4/ip_masq.cms->daddr = iph->saddr;
iph613net/ipv4/ip_masq.ciph->daddr = ms->saddr;
iph628net/ipv4/ip_masq.ciph = skb->h.iph;
iph629net/ipv4/ip_masq.cportptr = (__u16 *)&(((char *)iph)[iph->ihl*4]);
iph640net/ipv4/ip_masq.cif (iph->protocol==IPPROTO_UDP)
iph643net/ipv4/ip_masq.crecalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size);
iph652net/ipv4/ip_masq.ctcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb);
iph663net/ipv4/ip_masq.cip_send_check(iph);
iph665net/ipv4/ip_masq.cprintk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1]));
iph313net/ipv4/ip_masq_app.cstruct iphdr *iph;
iph328net/ipv4/ip_masq_app.ciph = (*skb_p)->h.iph;
iph329net/ipv4/ip_masq_app.cth = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
iph376net/ipv4/ip_masq_app.cstruct iphdr *iph;
iph391net/ipv4/ip_masq_app.ciph = (*skb_p)->h.iph;
iph392net/ipv4/ip_masq_app.cth = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
iph572net/ipv4/ip_masq_app.cstruct iphdr *iph;
iph579net/ipv4/ip_masq_app.ciph = n_skb->h.iph;
iph580net/ipv4/ip_masq_app.ciph->check = 0;
iph581net/ipv4/ip_masq_app.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph582net/ipv4/ip_masq_app.ciph->tot_len = htons(skb_len + diff);
iph54net/ipv4/ip_masq_ftp.cstruct iphdr *iph;
iph66net/ipv4/ip_masq_ftp.ciph = skb->h.iph;
iph67net/ipv4/ip_masq_ftp.cth = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
iph108net/ipv4/ip_masq_ftp.cprintk("protocol %d %lX:%X %X:%X\n", iph->protocol, htonl(from), htons(port), iph->daddr, 0);
iph111net/ipv4/ip_masq_ftp.cn_ms = ip_masq_out_get_2(iph->protocol,
iph113net/ipv4/ip_masq_ftp.ciph->daddr, 0);
iph121net/ipv4/ip_masq_ftp.ciph->daddr, 0,
iph55net/ipv4/ip_masq_irc.cstruct iphdr *iph;
iph68net/ipv4/ip_masq_irc.ciph = skb->h.iph;
iph69net/ipv4/ip_masq_irc.cth = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
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;
iph469net/ipv4/ip_options.cicmp_send(skb, ICMP_PARAMETERPROB, 0, pp_ptr-iph, skb->dev);
iph204net/ipv4/ip_output.cstruct iphdr *iph;
iph291net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen);
iph293net/ipv4/ip_output.ciph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr));
iph295net/ipv4/ip_output.ciph->version  = 4;
iph296net/ipv4/ip_output.ciph->ihl      = 5;
iph297net/ipv4/ip_output.ciph->tos      = tos;
iph298net/ipv4/ip_output.ciph->frag_off = 0;
iph299net/ipv4/ip_output.ciph->ttl      = ttl;
iph300net/ipv4/ip_output.ciph->daddr    = daddr;
iph301net/ipv4/ip_output.ciph->saddr    = saddr;
iph302net/ipv4/ip_output.ciph->protocol = type;
iph303net/ipv4/ip_output.cskb->ip_hdr   = iph;
iph307net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph309net/ipv4/ip_output.creturn iph->ihl*4 + tmp;
iph317net/ipv4/ip_output.cvoid ip_send_check(struct iphdr *iph)
iph319net/ipv4/ip_output.ciph->check = 0;
iph320net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph335net/ipv4/ip_output.cstruct iphdr *iph;
iph363net/ipv4/ip_output.ciph = skb->ip_hdr;
iph364net/ipv4/ip_output.ciph->tot_len = htons(skb->len-(((unsigned char *)iph)-skb->data));
iph371net/ipv4/ip_output.ciph->id      = htons(ip_id_count++);
iph382net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb->dev, iph) < FW_ACCEPT) {
iph398net/ipv4/ip_output.cif(ntohs(iph->tot_len)> dev->mtu)
iph410net/ipv4/ip_output.cip_send_check(iph);
iph474net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1);
iph483net/ipv4/ip_output.cif (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK))
iph487net/ipv4/ip_output.cif(iph->daddr==IGMP_ALL_HOSTS || (dev->flags&IFF_ALLMULTI))
iph496net/ipv4/ip_output.cif(imc->multiaddr==iph->daddr)
iph514net/ipv4/ip_output.cif((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK))
iph584net/ipv4/ip_output.cstruct iphdr *iph;
iph687net/ipv4/ip_output.cskb->ip_hdr=iph=(struct iphdr *)skb_put(skb,length);
iph691net/ipv4/ip_output.ciph->version=4;
iph692net/ipv4/ip_output.ciph->ihl=5;
iph693net/ipv4/ip_output.ciph->tos=sk->ip_tos;
iph694net/ipv4/ip_output.ciph->tot_len = htons(length);
iph695net/ipv4/ip_output.ciph->id=htons(ip_id_count++);
iph696net/ipv4/ip_output.ciph->frag_off = 0;
iph697net/ipv4/ip_output.ciph->ttl=sk->ip_ttl;
iph698net/ipv4/ip_output.ciph->protocol=type;
iph699net/ipv4/ip_output.ciph->saddr=saddr;
iph700net/ipv4/ip_output.ciph->daddr=daddr;
iph703net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph707net/ipv4/ip_output.ciph->check=0;
iph708net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph709net/ipv4/ip_output.cgetfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4);
iph712net/ipv4/ip_output.cgetfrag(frag,saddr,(void *)iph,0,length);
iph715net/ipv4/ip_output.cif(call_out_firewall(PF_INET, skb->dev, iph)< FW_ACCEPT)
iph722net/ipv4/ip_output.cip_fw_chk(iph,dev,ip_acct_chain, IP_FW_F_ACCEPT,1);
iph867net/ipv4/ip_output.cskb->ip_hdr = iph = (struct iphdr *)data;
iph876net/ipv4/ip_output.ciph->version = 4;
iph877net/ipv4/ip_output.ciph->ihl = 5; /* ugh */
iph879net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
iph883net/ipv4/ip_output.ciph->tos = sk->ip_tos;
iph884net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
iph885net/ipv4/ip_output.ciph->id = id;
iph886net/ipv4/ip_output.ciph->frag_off = htons(offset>>3);
iph887net/ipv4/ip_output.ciph->frag_off |= mf;
iph890net/ipv4/ip_output.ciph->ttl = sk->ip_mc_ttl;
iph893net/ipv4/ip_output.ciph->ttl = sk->ip_ttl;
iph894net/ipv4/ip_output.ciph->protocol = type;
iph895net/ipv4/ip_output.ciph->check = 0;
iph896net/ipv4/ip_output.ciph->saddr = saddr;
iph897net/ipv4/ip_output.ciph->daddr = daddr;
iph898net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph899net/ipv4/ip_output.cdata += iph->ihl*4;
iph919net/ipv4/ip_output.cif(!offset && call_out_firewall(PF_INET, skb->dev, iph) < FW_ACCEPT)
iph928net/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;
iph268net/ipv4/ipmr.cskb->h.iph=skb->ip_hdr;
iph714net/ipv4/ipmr.cskb->raddr=skb->h.iph->daddr;
iph197net/ipv4/raw.cstruct iphdr *iph=(struct iphdr *)to;
iph198net/ipv4/raw.cif(!iph->saddr)
iph199net/ipv4/raw.ciph->saddr=saddr;
iph200net/ipv4/raw.ciph->check=0;
iph201net/ipv4/raw.ciph->tot_len=htons(fraglen);  /* This is right as you cant frag
iph207net/ipv4/raw.ciph->id = htons(ip_id_count++);
iph208net/ipv4/raw.ciph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
iph510net/ipv4/tcp.cstruct iphdr *iph=(struct iphdr *)(header-sizeof(struct iphdr));
iph544net/ipv4/tcp.cunsigned short new_mtu = ntohs(iph->id);
iph270net/ipv4/tcp_output.cstruct iphdr *iph;
iph279net/ipv4/tcp_output.ciph = skb->ip_hdr;
iph280net/ipv4/tcp_output.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
iph285net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
iph286net/ipv4/tcp_output.cip_send_check(iph);
iph334net/ipv4/tcp_output.cstruct iphdr *iph;
iph369net/ipv4/tcp_output.ciph = (struct iphdr *)skb->data;
iph370net/ipv4/tcp_output.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
iph371net/ipv4/tcp_output.csize = ntohs(iph->tot_len) - (iph->ihl<<2);
iph386net/ipv4/tcp_output.crt = ip_check_route(&sk->ip_route_cache, opt->srr?opt->faddr:iph->daddr, skb->localroute);
iph389net/ipv4/tcp_output.ciph->id = htons(ip_id_count++);
iph391net/ipv4/tcp_output.cif (rt && ntohs(iph->tot_len) > rt->rt_mtu)
iph392net/ipv4/tcp_output.ciph->frag_off &= ~htons(IP_DF);
iph394net/ipv4/tcp_output.cip_send_check(iph);
iph417net/ipv4/tcp_output.cprintk("tcp_do_retransmit: hh miss %08x via %08x\n", iph->daddr, rt->rt_gateway);
iph916net/ipv4/tcp_output.cstruct iphdr *iph;
iph934net/ipv4/tcp_output.ciph = (struct iphdr *)skb->ip_hdr;
iph935net/ipv4/tcp_output.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
iph942net/ipv4/tcp_output.c(iph->ihl << 2) +