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 | 274 | drivers/net/slhc.c | th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); |
ihl | 275 | drivers/net/slhc.c | hlen = ip->ihl*4 + th->doff*4; |
ihl | 358 | drivers/net/slhc.c | || ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl |
ihl | 363 | drivers/net/slhc.c | || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) |
ihl | 483 | drivers/net/slhc.c | if (ip->ihl > 5) |
ihl | 484 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); |
ihl | 550 | drivers/net/slhc.c | hdrlen = ip->ihl * 4 + thp->doff * 4; |
ihl | 623 | drivers/net/slhc.c | if (ip->ihl > 5) { |
ihl | 624 | drivers/net/slhc.c | memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); |
ihl | 625 | drivers/net/slhc.c | cp += (ip->ihl - 5) * 4; |
ihl | 629 | drivers/net/slhc.c | stw_u(ip_fast_csum(icp, ip->ihl), &((struct iphdr *)icp)->check); |
ihl | 631 | drivers/net/slhc.c | ((struct iphdr *)icp)->check = ip_fast_csum(icp, ((struct iphdr*)icp)->ihl); |
ihl | 653 | drivers/net/slhc.c | unsigned ihl; |
ihl | 663 | drivers/net/slhc.c | ihl = icp[0] & 0xf; |
ihl | 664 | drivers/net/slhc.c | if(ihl < 20 / 4){ |
ihl | 672 | drivers/net/slhc.c | if (ip_fast_csum(icp, ihl)) { |
ihl | 686 | drivers/net/slhc.c | memcpy(&cs->cs_tcp,icp + ihl*4,20); |
ihl | 687 | drivers/net/slhc.c | if (ihl > 5) |
ihl | 688 | drivers/net/slhc.c | memcpy(cs->cs_ipopt, icp + sizeof(struct iphdr), (ihl - 5) * 4); |
ihl | 690 | drivers/net/slhc.c | memcpy(cs->cs_tcpopt, icp + ihl*4 + sizeof(struct tcphdr), (cs->cs_tcp.doff - 5) * 4); |
ihl | 691 | drivers/net/slhc.c | cs->cs_hsize = ihl*2 + cs->cs_tcp.doff*2; |
ihl | 108 | drivers/net/tunnel.c | printk("--- header len = %d\n", ip->ihl*4); |
ihl | 238 | drivers/net/tunnel.c | iph->ihl = 5; |
ihl | 245 | 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 | 92 | include/linux/ip.h | __u8 ihl:4, |
ihl | 96 | include/linux/ip.h | ihl:4; |
ihl | 301 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
ihl | 323 | net/ipv4/icmp.c | icmp_param.data_len=(iph->ihl<<2)+8; /* RFC says return header + 8 bytes */ |
ihl | 347 | net/ipv4/icmp.c | dp= ((unsigned char *)iph)+(iph->ihl<<2); |
ihl | 58 | net/ipv4/ip_forward.c | iph->ihl = 5; |
ihl | 198 | net/ipv4/ip_fragment.c | ihlen = iph->ihl * 4; |
ihl | 324 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
ihl | 344 | net/ipv4/ip_fragment.c | int i, ihl, end; |
ihl | 363 | net/ipv4/ip_fragment.c | ihl = iph->ihl * 4; |
ihl | 378 | net/ipv4/ip_fragment.c | qp->ihlen = ihl; |
ihl | 379 | net/ipv4/ip_fragment.c | memcpy(qp->iph, iph, ihl+8); |
ihl | 405 | net/ipv4/ip_fragment.c | end = offset + ntohs(iph->tot_len) - ihl; |
ihl | 411 | net/ipv4/ip_fragment.c | ptr = skb->data + ihl; |
ihl | 562 | net/ipv4/ip_fragment.c | hlen = iph->ihl * 4; |
ihl | 192 | net/ipv4/ip_fw.c | struct tcphdr *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 193 | net/ipv4/ip_fw.c | struct udphdr *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 194 | net/ipv4/ip_fw.c | struct icmphdr *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 245 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ihl | 252 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ihl | 582 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 737 | net/ipv4/ip_fw.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 794 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 859 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 898 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2)); |
ihl | 903 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); |
ihl | 1451 | net/ipv4/ip_fw.c | if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) |
ihl | 1454 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl, |
ihl | 241 | 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 | 257 | net/ipv4/ip_input.c | if (iph->ihl > 5) |
ihl | 435 | net/ipv4/ip_input.c | skb->h.raw += iph->ihl*4; |
ihl | 530 | 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 | 274 | net/ipv4/ip_output.c | iph->ihl = 5; |
ihl | 290 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 292 | net/ipv4/ip_output.c | return iph->ihl*4 + tmp; |
ihl | 303 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 705 | net/ipv4/ip_output.c | iph->ihl=5; |
ihl | 716 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 721 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 722 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
ihl | 883 | net/ipv4/ip_output.c | iph->ihl = 5; /* ugh */ |
ihl | 885 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 890 | net/ipv4/ip_output.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
ihl | 904 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 905 | net/ipv4/ip_output.c | data += iph->ihl*4; |
ihl | 78 | net/ipv4/ipip.c | skb_pull(skb, ((struct iphdr *)skb->data)->ihl<<2); |
ihl | 87 | net/ipv4/ipip.c | if (skb->ip_hdr->ihl > 5) |
ihl | 257 | net/ipv4/ipmr.c | int ihl=pkt->ip_hdr->ihl<<2; |
ihl | 268 | net/ipv4/ipmr.c | skb->ip_hdr=(struct iphdr *)skb_put(skb,ihl); |
ihl | 270 | net/ipv4/ipmr.c | memcpy(skb->data,pkt->data,ihl); |
ihl | 174 | net/ipv4/raw.c | iph->check=ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 667 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); |
ihl | 668 | net/ipv4/tcp.c | size = ntohs(iph->tot_len) - (iph->ihl<<2); |
ihl | 1045 | net/ipv4/tcp.c | header+=4*iph->ihl; |
ihl | 3343 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
ihl | 5237 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
ihl | 5244 | net/ipv4/tcp.c | (iph->ihl << 2) + |
ihl | 5297 | net/ipv4/tcp.c | (iph->ihl << 2) + th->doff * 4; |