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 | 109 | drivers/net/new_tunnel.c | printk("--- header len = %d\n", ip->ihl*4); |
ihl | 285 | 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 | 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 | 65 | net/ipv4/ip_forward.c | iph->ihl = 5; |
ihl | 259 | net/ipv4/ip_fragment.c | ihlen = iph->ihl * 4; |
ihl | 385 | net/ipv4/ip_fragment.c | iph->tot_len = htons((iph->ihl * 4) + count); |
ihl | 405 | net/ipv4/ip_fragment.c | int i, ihl, end; |
ihl | 433 | net/ipv4/ip_fragment.c | ihl = iph->ihl * 4; |
ihl | 448 | net/ipv4/ip_fragment.c | qp->ihlen = ihl; |
ihl | 449 | net/ipv4/ip_fragment.c | memcpy(qp->iph, iph, ihl+8); |
ihl | 475 | net/ipv4/ip_fragment.c | end = offset + ntohs(iph->tot_len) - ihl; |
ihl | 481 | net/ipv4/ip_fragment.c | ptr = skb->data + ihl; |
ihl | 631 | net/ipv4/ip_fragment.c | hlen = iph->ihl * 4; |
ihl | 203 | net/ipv4/ip_fw.c | struct tcphdr *tcp=(struct tcphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 204 | net/ipv4/ip_fw.c | struct udphdr *udp=(struct udphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 205 | net/ipv4/ip_fw.c | struct icmphdr *icmp=(struct icmphdr *)((unsigned long *)ip+ip->ihl); |
ihl | 257 | net/ipv4/ip_fw.c | if(ip->protocol==IPPROTO_TCP && (ip->ihl<<2)+16 > ntohs(ip->tot_len)) |
ihl | 264 | net/ipv4/ip_fw.c | else if(ntohs(ip->tot_len)<8+(ip->ihl<<2)) |
ihl | 880 | net/ipv4/ip_fw.c | } else if ( ip->ihl != sizeof(struct iphdr) / sizeof(int)) { |
ihl | 882 | net/ipv4/ip_fw.c | printk("ip_fw_ctl: ip->ihl=%d, want %d\n",ip->ihl, |
ihl | 250 | 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 | 277 | net/ipv4/ip_input.c | if (iph->ihl > 5) |
ihl | 457 | net/ipv4/ip_input.c | skb->h.raw += iph->ihl*4; |
ihl | 552 | net/ipv4/ip_input.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
ihl | 188 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 221 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 417 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 465 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 523 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 581 | net/ipv4/ip_masq.c | portptr = (__u16 *)&(((char *)iph)[iph->ihl*4]); |
ihl | 329 | net/ipv4/ip_masq_app.c | th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 392 | net/ipv4/ip_masq_app.c | th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 566 | net/ipv4/ip_masq_app.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 67 | net/ipv4/ip_masq_ftp.c | th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 69 | net/ipv4/ip_masq_irc.c | th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
ihl | 247 | net/ipv4/ip_options.c | opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr); |
ihl | 291 | net/ipv4/ip_output.c | iph->ihl = 5; |
ihl | 302 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 304 | net/ipv4/ip_output.c | return iph->ihl*4 + tmp; |
ihl | 315 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 681 | net/ipv4/ip_output.c | iph->ihl=5; |
ihl | 692 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 697 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 698 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
ihl | 866 | net/ipv4/ip_output.c | iph->ihl = 5; /* ugh */ |
ihl | 868 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
ihl | 873 | net/ipv4/ip_output.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); |
ihl | 887 | net/ipv4/ip_output.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
ihl | 888 | 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 | 187 | 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 | 911 | net/ipv4/tcp_output.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
ihl | 918 | net/ipv4/tcp_output.c | (iph->ihl << 2) + |