tag | line | file | source code |
ihl | 113 | arch/alpha/lib/checksum.c | unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl) |
ihl | 115 | arch/alpha/lib/checksum.c | return ~do_csum(iph,ihl*4); |
ihl | 108 | drivers/net/new_tunnel.c | printk("--- header len = %d\n", ip->ihl*4); |
ihl | 274 | drivers/net/new_tunnel.c | iph->ihl = 5; |
ihl | 268 | drivers/net/slhc.c | th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); |
ihl | 269 | drivers/net/slhc.c | hlen = ip->ihl*4 + th->doff*4; |
ihl | 352 | drivers/net/slhc.c | || ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl |
ihl | 357 | drivers/net/slhc.c | || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) |
ihl | 477 | drivers/net/slhc.c | if (ip->ihl > 5) |
ihl | 478 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); |
ihl | 544 | drivers/net/slhc.c | hdrlen = ip->ihl * 4 + thp->doff * 4; |
ihl | 617 | drivers/net/slhc.c | if (ip->ihl > 5) { |
ihl | 618 | drivers/net/slhc.c | memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); |
ihl | 619 | drivers/net/slhc.c | cp += (ip->ihl - 5) * 4; |
ihl | 623 | drivers/net/slhc.c | stw_u(ip_fast_csum(icp, ip->ihl), &((struct iphdr *)icp)->check); |
ihl | 625 | drivers/net/slhc.c | ((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl); |
ihl | 647 | drivers/net/slhc.c | unsigned ihl; |
ihl | 657 | drivers/net/slhc.c | ihl = icp[0] & 0xf; |
ihl | 658 | drivers/net/slhc.c | if(ihl < 20 / 4){ |
ihl | 666 | drivers/net/slhc.c | if (ip_fast_csum(icp, ihl)) { |
ihl | 680 | drivers/net/slhc.c | memcpy(&cs->cs_tcp,icp + ihl*4,20); |
ihl | 681 | drivers/net/slhc.c | if (ihl > 5) |
ihl | 682 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); |
ihl | 684 | drivers/net/slhc.c | memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4); |
ihl | 685 | drivers/net/slhc.c | cs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2; |
ihl | 104 | drivers/net/tunnel.c | printk("--- header len = %d\n", ip->ihl*4); |
ihl | 234 | drivers/net/tunnel.c | iph->ihl = 5; |
ihl | 241 | drivers/net/tunnel.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 9 | include/asm-alpha/checksum.h | extern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl); |
ihl | 46 | include/asm-i386/checksum.h | unsigned int ihl) { |
ihl | 68 | include/asm-i386/checksum.h | : "=&r" (sum), "=&r" (iph), "=&r" (ihl) |
ihl | 69 | include/asm-i386/checksum.h | : "1" (iph), "2" (ihl)); |
ihl | 50 | include/asm-mips/checksum.h | unsigned int ihl) |
ihl | 96 | include/asm-mips/checksum.h | : "r" (iph), "r"(ihl) |
ihl | 9 | include/asm-ppc/checksum.h | extern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl); |
ihl | 75 | include/asm-sparc/checksum.h | extern inline unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl) |
ihl | 77 | include/asm-sparc/checksum.h | return ~do_csum(iph,ihl*4); |
ihl | 92 | include/linux/ip.h | __u8 ihl:4, |
ihl | 96 | include/linux/ip.h | ihl:4; |
ihl | 303 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
ihl | 325 | net/ipv4/icmp.c | icmp_param.data_len=(iph->ihl<<2)+8; /* RFC says return header + 8 bytes */ |
ihl | 349 | net/ipv4/icmp.c | dp= ((unsigned char *)iph)+(iph->ihl<<2); |
ihl | 62 | net/ipv4/ip_forward.c | iph->ihl = 5; |
ihl | 271 | net/ipv4/ip_fragment.c | ihlen = iph->ihl * 4; |
ihl | 397 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
ihl | 417 | net/ipv4/ip_fragment.c | int i, ihl, end; |
ihl | 445 | net/ipv4/ip_fragment.c | ihl = iph->ihl * 4; |
ihl | 460 | net/ipv4/ip_fragment.c | qp->ihlen = ihl; |
ihl | 461 | net/ipv4/ip_fragment.c | memcpy(qp->iph, iph, ihl+8); |
ihl | 487 | net/ipv4/ip_fragment.c | end = offset + ntohs(iph->tot_len) - ihl; |
ihl | 493 | net/ipv4/ip_fragment.c | ptr = skb->data + ihl; |
ihl | 644 | net/ipv4/ip_fragment.c | hlen = iph->ihl * 4; |
ihl | 206 | net/ipv4/ip_fw.c | struct tcphdr *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 207 | net/ipv4/ip_fw.c | struct udphdr *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 208 | net/ipv4/ip_fw.c | struct icmphdr *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 260 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ihl | 267 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ihl | 616 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 771 | net/ipv4/ip_fw.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 828 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 893 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 933 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)(skb->h.raw+(iph->ihl<<2)); |
ihl | 938 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 1387 | net/ipv4/ip_fw.c | } else if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) { |
ihl | 1389 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl, |
ihl | 247 | net/ipv4/ip_input.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 |
ihl | 263 | net/ipv4/ip_input.c | if (iph->ihl > 5) |
ihl | 454 | net/ipv4/ip_input.c | skb->h.raw += iph->ihl*4; |
ihl | 549 | net/ipv4/ip_input.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
ihl | 247 | net/ipv4/ip_options.c | opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr); |
ihl | 298 | net/ipv4/ip_output.c | iph->ihl = 5; |
ihl | 309 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 311 | net/ipv4/ip_output.c | return iph->ihl*4 + tmp; |
ihl | 322 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 688 | net/ipv4/ip_output.c | iph->ihl=5; |
ihl | 699 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 704 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 705 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
ihl | 873 | net/ipv4/ip_output.c | iph->ihl = 5; /* ugh */ |
ihl | 875 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 880 | net/ipv4/ip_output.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
ihl | 894 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 895 | net/ipv4/ip_output.c | data += iph->ihl*4; |
ihl | 68 | net/ipv4/ipip.c | skb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2); |
ihl | 77 | net/ipv4/ipip.c | if (skb->ip_hdr->ihl > 5) |
ihl | 256 | net/ipv4/ipmr.c | int ihl=pkt->ip_hdr->ihl<<2; |
ihl | 267 | net/ipv4/ipmr.c | skb->ip_hdr=(struct iphdr *)skb_put(skb,ihl); |
ihl | 269 | net/ipv4/ipmr.c | memcpy(skb->data,pkt->data,ihl); |
ihl | 137 | net/ipv4/raw.c | skb->ip_hdr->tot_len=ntohs(skb->ip_hdr->tot_len-4*skb->ip_hdr->ihl); |
ihl | 186 | net/ipv4/raw.c | iph->check=ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 271 | net/ipv4/tcp_output.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
ihl | 363 | net/ipv4/tcp_output.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); |
ihl | 364 | net/ipv4/tcp_output.c | size = ntohs(iph->tot_len) - (iph->ihl<<2); |
ihl | 910 | net/ipv4/tcp_output.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
ihl | 917 | net/ipv4/tcp_output.c | (iph->ihl << 2) + |