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);
ihl270drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
ihl271drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
ihl354drivers/net/slhc.c|| ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
ihl359drivers/net/slhc.c|| (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
ihl479drivers/net/slhc.cif (ip->ihl > 5)
ihl480drivers/net/slhc.cmemcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
ihl546drivers/net/slhc.chdrlen = ip->ihl * 4 + thp->doff * 4;
ihl619drivers/net/slhc.cif (ip->ihl > 5) {
ihl620drivers/net/slhc.cmemcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4);
ihl621drivers/net/slhc.ccp += (ip->ihl - 5) * 4;
ihl624drivers/net/slhc.c((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl);
ihl645drivers/net/slhc.cunsigned ihl;
ihl655drivers/net/slhc.cihl = icp[0] & 0xf;
ihl656drivers/net/slhc.cif(ihl < 20 / 4){
ihl664drivers/net/slhc.cif (ip_fast_csum(icp, ihl)) {
ihl678drivers/net/slhc.cmemcpy(&cs->cs_tcp,icp + ihl*4,20);
ihl679drivers/net/slhc.cif (ihl > 5)
ihl680drivers/net/slhc.cmemcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4);
ihl682drivers/net/slhc.cmemcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4);
ihl683drivers/net/slhc.ccs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2;
ihl102drivers/net/tunnel.cprintk("--- header len = %d\n", ip->ihl*4);
ihl231drivers/net/tunnel.ciph->ihl = 5;
ihl238drivers/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));
ihl76include/linux/ip.h__u8  ihl:4,
ihl80include/linux/ip.hihl:4;
ihl218net/ipv4/icmp.c4 * iph->ihl);
ihl347net/ipv4/ip.ciph->ihl      = 5;
ihl367net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl540net/ipv4/ip.cihlen = iph->ihl * 4;
ihl666net/ipv4/ip.ciph->tot_len = htons((iph->ihl * 4) + count);
ihl686net/ipv4/ip.cint i, ihl, end;
ihl738net/ipv4/ip.cihl = iph->ihl * 4;
ihl739net/ipv4/ip.cend = offset + ntohs(iph->tot_len) - ihl;
ihl745net/ipv4/ip.cptr = skb->data + ihl;
ihl898net/ipv4/ip.chlen = iph->ihl * 4;
ihl1360net/ipv4/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0
ihl1400net/ipv4/ip.cif (iph->ihl != 5)
ihl1412net/ipv4/ip.cint opt_space=4*(iph->ihl-5);
ihl1591net/ipv4/ip.cskb->h.raw += iph->ihl*4;
ihl1673net/ipv4/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
ihl2565net/ipv4/ip.ciph->ihl=5;
ihl2575net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl2722net/ipv4/ip.ciph->ihl = 5; /* ugh */
ihl2724net/ipv4/ip.ciph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4);
ihl2738net/ipv4/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl2739net/ipv4/ip.cdata += iph->ihl*4;
ihl190net/ipv4/ip_fw.cstruct tcphdr    *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl);
ihl191net/ipv4/ip_fw.cstruct udphdr    *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl);
ihl192net/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))
ihl582net/ipv4/ip_fw.cstruct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
ihl735net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl800net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl838net/ipv4/ip_fw.cstruct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2));
ihl843net/ipv4/ip_fw.cportptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]);
ihl1363net/ipv4/ip_fw.cif ( ip->ihl != sizeof(struct iphdr) / sizeof(int))
ihl1366net/ipv4/ip_fw.cprintk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl,
ihl79net/ipv4/ipip.cskb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2);
ihl161net/ipv4/raw.ciph->check=ip_fast_csum((unsigned char *)iph, iph->ihl);
ihl478net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
ihl479net/ipv4/tcp.csize = ntohs(iph->tot_len) - (iph->ihl<<2);
ihl854net/ipv4/tcp.cheader+=4*iph->ihl;
ihl3085net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl4967net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
ihl4974net/ipv4/tcp.c(iph->ihl << 2) +
ihl5027net/ipv4/tcp.c(iph->ihl << 2) + th->doff * 4;
ihl160net/ipv4/udp.cheader += 4*ip->ihl;