Searched refs:ihl (Results 1 - 25 of 120) sorted by relevance

12345

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Dxfrm4_mode_transport.c27 int ihl = iph->ihl * 4; local
29 skb->transport_header = skb->network_header + ihl;
32 memmove(skb_network_header(skb), iph, ihl); local
46 int ihl = skb->data - skb_transport_header(skb); local
50 skb_network_header(skb), ihl); local
53 ip_hdr(skb)->tot_len = htons(skb->len + ihl);
H A Dah4.c20 int l = iph->ihl*4 - sizeof(struct iphdr);
75 if (top_iph->ihl != 5) {
77 memcpy(iph+1, top_iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
83 ah = (struct ip_auth_hdr *)((char *)top_iph+top_iph->ihl*4);
109 if (top_iph->ihl != 5) {
111 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
125 int ihl; local
157 ihl = skb->data - skb_network_header(skb);
158 memcpy(work_buf, iph, ihl);
164 if (ihl > sizeo
185 memcpy(skb_network_header(skb), work_buf, ihl); local
[all...]
H A Dxfrm4_mode_beet.c39 optlen = iph->ihl * 4 - sizeof(*iph);
62 top_iph->ihl = sizeof(struct iphdr) / 4;
104 iph->ihl = (sizeof(*iph) + optlen) / 4;
105 iph->tot_len = htons(skb->len + iph->ihl * 4);
111 iph->check = ip_fast_csum(skb_network_header(skb), iph->ihl);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-cris/
H A Dchecksum.h55 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
57 return csum_fold(csum_partial(iph, ihl * 4, 0));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/include/sysdep-x86_64/
H A Dchecksum.h101 * ihl: length of header / 4
103 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
127 : "=r" (sum), "=r" (iph), "=r" (ihl)
128 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-frv/
H A Dchecksum.h55 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
75 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (inc), "=&r"(tmp)
76 : "0" (sum), "1" (iph), "2" (ihl), "3" (4),
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-m68k/
H A Dchecksum.h42 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
57 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp)
58 : "0" (sum), "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-avr32/
H A Dchecksum.h62 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
88 : "=r"(sum), "=r"(iph), "=r"(ihl), "=r"(tmp)
89 : "1"(iph), "2"(ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-parisc/
H A Dchecksum.h41 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
66 : "=r" (sum), "=r" (iph), "=r" (ihl)
67 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-m32r/
H A Dchecksum.h79 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
106 /* Since the input registers which are loaded with iph and ihl
109 : "=&r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmpreg0), "=&r" (tmpreg1)
110 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-x86_64/
H A Dchecksum.h45 * ihl: length of header / 4
47 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
68 /* Since the input registers which are loaded with iph and ihl
71 : "=r" (sum), "=r" (iph), "=r" (ihl)
72 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/
H A Dchecksum.h60 ip_fast_csum(const void *iph, unsigned int ihl) argument
80 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1)
81 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm26/
H A Dchecksum.h47 ip_fast_csum(const void *iph, unsigned int ihl) argument
70 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1)
71 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/
H A Dxfrm6_mode_transport.c55 int ihl = skb->data - skb_transport_header(skb); local
59 skb_network_header(skb), ihl); local
62 ipv6_hdr(skb)->payload_len = htons(skb->len + ihl -
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/
H A Dipt_LOG.c78 && ih->ihl * 4 > sizeof(struct iphdr)) {
82 optsize = ih->ihl * 4 - sizeof(struct iphdr);
108 th = skb_header_pointer(skb, iphoff + ih->ihl * 4,
112 skb->len - iphoff - ih->ihl*4);
155 iphoff+ih->ihl*4+sizeof(_tcph),
184 uh = skb_header_pointer(skb, iphoff+ih->ihl*4,
188 skb->len - iphoff - ih->ihl*4);
225 ich = skb_header_pointer(skb, iphoff + ih->ihl * 4,
229 skb->len - iphoff - ih->ihl*4);
239 && skb->len-iphoff-ih->ihl*
[all...]
H A Dnf_nat_helper.c159 tcph = (void *)iph + iph->ihl*4;
161 oldlen = (*pskb)->len - iph->ihl*4;
162 mangle_contents(*pskb, iph->ihl*4 + tcph->doff*4,
165 datalen = (*pskb)->len - iph->ihl*4;
172 iph->ihl * 4;
216 if ((*pskb)->len < iph->ihl*4 + sizeof(*udph) +
229 udph = (void *)iph + iph->ihl*4;
231 oldlen = (*pskb)->len - iph->ihl*4;
232 mangle_contents(*pskb, iph->ihl*4 + sizeof(*udph),
236 datalen = (*pskb)->len - iph->ihl*
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/
H A Dslhc.c258 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
259 hlen = ip->ihl*4 + th->doff*4;
342 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
347 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
467 if (ip->ihl > 5)
468 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
534 hdrlen = ip->ihl * 4 + thp->doff * 4;
607 if (ip->ihl >
634 unsigned ihl; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/blackfin/lib/
H A Dchecksum.c75 unsigned short ip_fast_csum(unsigned char *iph, unsigned int ihl) argument
77 return ~do_csum(iph, ihl * 4);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/um/include/sysdep-i386/
H A Dchecksum.h68 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
93 : "=r" (sum), "=r" (iph), "=r" (ihl)
94 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh/
H A Dchecksum.h89 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
107 /* Since the input registers which are loaded with iph and ihl
110 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1)
111 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-i386/
H A Dchecksum.h63 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
85 /* Since the input registers which are loaded with iph and ihl
88 : "=r" (sum), "=r" (iph), "=r" (ihl)
89 : "1" (iph), "2" (ihl)
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-xtensa/
H A Dchecksum.h88 static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
112 /* Since the input registers which are loaded with iph and ihl
115 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp), "=&r" (endaddr)
116 : "1" (iph), "2" (ihl));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-h8300/
H A Dchecksum.h39 __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-v850/
H A Dchecksum.h53 __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-blackfin/
H A Dchecksum.h45 unsigned short ip_fast_csum(unsigned char *iph, unsigned int ihl);

Completed in 331 milliseconds

12345