taglinefilesource code
ihl113arch/alpha/lib/checksum.cunsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl)
ihl115arch/alpha/lib/checksum.creturn ~do_csum(iph,ihl*4);
ihl267drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
ihl268drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
ihl351drivers/net/slhc.c|| ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
ihl356drivers/net/slhc.c|| (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
ihl476drivers/net/slhc.cif (ip->ihl > 5)
ihl477drivers/net/slhc.cmemcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
ihl543drivers/net/slhc.chdrlen = ip->ihl * 4 + thp->doff * 4;
ihl616drivers/net/slhc.cif (ip->ihl > 5) {
ihl617drivers/net/slhc.cmemcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4);
ihl618drivers/net/slhc.ccp += (ip->ihl - 5) * 4;
ihl622drivers/net/slhc.cstw_u(ip_fast_csum(icp, ip->ihl), &((struct iphdr *)icp)->check);
ihl624drivers/net/slhc.c((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl);
ihl646drivers/net/slhc.cunsigned ihl;
ihl656drivers/net/slhc.cihl = icp[0] & 0xf;
ihl657drivers/net/slhc.cif(ihl < 20 / 4){
ihl665drivers/net/slhc.cif (ip_fast_csum(icp, ihl)) {
ihl679drivers/net/slhc.cmemcpy(&cs->cs_tcp,icp + ihl*4,20);
ihl680drivers/net/slhc.cif (ihl > 5)
ihl681drivers/net/slhc.cmemcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
ihl683drivers/net/slhc.cmemcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4);
ihl684drivers/net/slhc.ccs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2;
ihl103drivers/net/tunnel.cprintk("--- header len = %d\n", ip->ihl*4);
ihl233drivers/net/tunnel.ciph->ihl = 5;
ihl240drivers/net/tunnel.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl9include/asm-alpha/checksum.hextern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl);
ihl46include/asm-i386/checksum.hunsigned int ihl) {
ihl68include/asm-i386/checksum.h: "=&r" (sum), "=&r" (iph), "=&r" (ihl)
ihl69include/asm-i386/checksum.h: "1" (iph), "2" (ihl));
ihl75include/asm-sparc/checksum.hextern inline unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl)
ihl77include/asm-sparc/checksum.hreturn ~do_csum(iph,ihl*4);
ihl92include/linux/ip.h__u8  ihl:4,
ihl96include/linux/ip.hihl:4;
ihl302net/ipv4/icmp.cicmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2));
ihl324net/ipv4/icmp.cicmp_param.data_len=(iph->ihl<<2)+8;  /* RFC says return header + 8 bytes */
ihl348net/ipv4/icmp.cdp= ((unsigned char *)iph)+(iph->ihl<<2);
ihl59net/ipv4/ip_forward.ciph->ihl  =  5;
ihl271net/ipv4/ip_fragment.cihlen = iph->ihl * 4;
ihl397net/ipv4/ip_fragment.ciph->tot_len = htons((iph->ihl * 4) + count);
ihl417net/ipv4/ip_fragment.cint i, ihl, end;
ihl445net/ipv4/ip_fragment.cihl = iph->ihl * 4;
ihl460net/ipv4/ip_fragment.cqp->ihlen = ihl;
ihl461net/ipv4/ip_fragment.cmemcpy(qp->iph, iph, ihl+8);
ihl487net/ipv4/ip_fragment.cend = offset + ntohs(iph->tot_len) - ihl;
ihl493net/ipv4/ip_fragment.cptr = skb->data + ihl;
ihl644net/ipv4/ip_fragment.chlen = iph->ihl * 4;
ihl192net/ipv4/ip_fw.cstruct tcphdr    *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl);
ihl193net/ipv4/ip_fw.cstruct udphdr    *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl);
ihl194net/ipv4/ip_fw.cstruct icmphdr    *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl);
ihl245net/ipv4/ip_fw.cif(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len))
ihl252net/ipv4/ip_fw.celse if(ntohs(ip->tot_len)<8+(ip->ihl<<2))
ihl597net/ipv4/ip_fw.cstruct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
ihl752net/ipv4/ip_fw.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl809net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl874net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl913net/ipv4/ip_fw.cstruct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2));
ihl918net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl1469net/ipv4/ip_fw.cif ( ip->ihl != sizeof(struct iphdr) / sizeof(int))
ihl1472net/ipv4/ip_fw.cprintk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl,
ihl241net/ipv4/ip_input.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
ihl257net/ipv4/ip_input.cif (iph->ihl > 5) 
ihl435net/ipv4/ip_input.cskb->h.raw += iph->ihl*4;
ihl530net/ipv4/ip_input.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
ihl247net/ipv4/ip_options.copt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr);
ihl297net/ipv4/ip_output.ciph->ihl      = 5;
ihl308net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
ihl310net/ipv4/ip_output.creturn iph->ihl*4 + tmp;
ihl321net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl686net/ipv4/ip_output.ciph->ihl=5;
ihl697net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
ihl702net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl703net/ipv4/ip_output.cgetfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4);
ihl871net/ipv4/ip_output.ciph->ihl = 5; /* ugh */
ihl873net/ipv4/ip_output.ciph->ihl += opt->optlen>>2;
ihl878net/ipv4/ip_output.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
ihl892net/ipv4/ip_output.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl893net/ipv4/ip_output.cdata += iph->ihl*4;
ihl68net/ipv4/ipip.cskb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2);
ihl77net/ipv4/ipip.cif (skb->ip_hdr->ihl > 5) 
ihl255net/ipv4/ipmr.cint ihl=pkt->ip_hdr->ihl<<2;
ihl266net/ipv4/ipmr.cskb->ip_hdr=(struct iphdr *)skb_put(skb,ihl);
ihl268net/ipv4/ipmr.cmemcpy(skb->data,pkt->data,ihl);
ihl136net/ipv4/raw.cskb->ip_hdr->tot_len=ntohs(skb->ip_hdr->tot_len-4*skb->ip_hdr->ihl);
ihl186net/ipv4/raw.ciph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl669net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
ihl670net/ipv4/tcp.csize = ntohs(iph->tot_len) - (iph->ihl<<2);
ihl3349net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl5263net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl5270net/ipv4/tcp.c(iph->ihl << 2) +
ihl5323net/ipv4/tcp.c(iph->ihl << 2) + th->doff * 4;