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);
ihl274drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
ihl275drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
ihl358drivers/net/slhc.c|| ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
ihl363drivers/net/slhc.c|| (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
ihl483drivers/net/slhc.cif (ip->ihl > 5)
ihl484drivers/net/slhc.cmemcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
ihl550drivers/net/slhc.chdrlen = ip->ihl * 4 + thp->doff * 4;
ihl623drivers/net/slhc.cif (ip->ihl > 5) {
ihl624drivers/net/slhc.cmemcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4);
ihl625drivers/net/slhc.ccp += (ip->ihl - 5) * 4;
ihl629drivers/net/slhc.cstw_u(ip_fast_csum(icp, ip->ihl), &((struct iphdr *)icp)->check);
ihl631drivers/net/slhc.c((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl);
ihl653drivers/net/slhc.cunsigned ihl;
ihl663drivers/net/slhc.cihl = icp[0] & 0xf;
ihl664drivers/net/slhc.cif(ihl < 20 / 4){
ihl672drivers/net/slhc.cif (ip_fast_csum(icp, ihl)) {
ihl686drivers/net/slhc.cmemcpy(&cs->cs_tcp,icp + ihl*4,20);
ihl687drivers/net/slhc.cif (ihl > 5)
ihl688drivers/net/slhc.cmemcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
ihl690drivers/net/slhc.cmemcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4);
ihl691drivers/net/slhc.ccs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2;
ihl108drivers/net/tunnel.cprintk("--- header len = %d\n", ip->ihl*4);
ihl238drivers/net/tunnel.ciph->ihl = 5;
ihl245drivers/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));
ihl92include/linux/ip.h__u8  ihl:4,
ihl96include/linux/ip.hihl:4;
ihl300net/ipv4/icmp.cicmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2));
ihl322net/ipv4/icmp.cicmp_param.data_len=(iph->ihl<<2)+8;  /* RFC says return header + 8 bytes */
ihl346net/ipv4/icmp.cdp= ((unsigned char *)iph)+(iph->ihl<<2);
ihl377net/ipv4/ip.copt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr);
ihl754net/ipv4/ip.ciph->ihl      = 5;
ihl769net/ipv4/ip.ciph->ihl += opt->optlen>>2;
ihl771net/ipv4/ip.creturn iph->ihl*4 + tmp;
ihl782net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl956net/ipv4/ip.cihlen = iph->ihl * 4;
ihl1082net/ipv4/ip.ciph->tot_len = htons((iph->ihl * 4) + count);
ihl1102net/ipv4/ip.cint i, ihl, end;
ihl1121net/ipv4/ip.cihl = iph->ihl * 4;
ihl1136net/ipv4/ip.cqp->ihlen = ihl;
ihl1137net/ipv4/ip.cmemcpy(qp->iph, iph, ihl+8);
ihl1163net/ipv4/ip.cend = offset + ntohs(iph->tot_len) - ihl;
ihl1169net/ipv4/ip.cptr = skb->data + ihl;
ihl1320net/ipv4/ip.chlen = iph->ihl * 4;
ihl1497net/ipv4/ip.ciph->ihl  =  5;
ihl1934net/ipv4/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
ihl1950net/ipv4/ip.cif (iph->ihl > 5) {
ihl2124net/ipv4/ip.cskb->h.raw += iph->ihl*4;
ihl2219net/ipv4/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
ihl3235net/ipv4/ip.ciph->ihl=5;
ihl3245net/ipv4/ip.ciph->ihl += opt->optlen>>2;
ihl3250net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl3251net/ipv4/ip.cgetfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4);
ihl3409net/ipv4/ip.ciph->ihl = 5; /* ugh */
ihl3411net/ipv4/ip.ciph->ihl += opt->optlen>>2;
ihl3416net/ipv4/ip.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
ihl3430net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl3431net/ipv4/ip.cdata += iph->ihl*4;
ihl191net/ipv4/ip_fw.cstruct tcphdr    *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl);
ihl192net/ipv4/ip_fw.cstruct udphdr    *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl);
ihl193net/ipv4/ip_fw.cstruct icmphdr    *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl);
ihl244net/ipv4/ip_fw.cif(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len))
ihl251net/ipv4/ip_fw.celse if(ntohs(ip->tot_len)<8+(ip->ihl<<2))
ihl581net/ipv4/ip_fw.cstruct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
ihl736net/ipv4/ip_fw.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl793net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl858net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl897net/ipv4/ip_fw.cstruct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2));
ihl902net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl1450net/ipv4/ip_fw.cif ( ip->ihl != sizeof(struct iphdr) / sizeof(int))
ihl1453net/ipv4/ip_fw.cprintk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl,
ihl78net/ipv4/ipip.cskb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2);
ihl87net/ipv4/ipip.cif (skb->ip_hdr->ihl > 5) {
ihl257net/ipv4/ipmr.cint ihl=pkt->ip_hdr->ihl<<2;
ihl268net/ipv4/ipmr.cskb->ip_hdr=(struct iphdr *)skb_put(skb,ihl);
ihl270net/ipv4/ipmr.cmemcpy(skb->data,pkt->data,ihl);
ihl174net/ipv4/raw.ciph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl667net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
ihl668net/ipv4/tcp.csize = ntohs(iph->tot_len) - (iph->ihl<<2);
ihl1045net/ipv4/tcp.cheader+=4*iph->ihl;
ihl3291net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl5185net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl5192net/ipv4/tcp.c(iph->ihl << 2) +
ihl5245net/ipv4/tcp.c(iph->ihl << 2) + th->doff * 4;