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

123456789

/linux-master/net/sched/
H A Dact_csum.c126 * @ihl: previous summed headers length
134 unsigned int ihl, unsigned int ipl,
138 int hl = ihl + jhl;
144 return (void *)(skb_network_header(skb) + ihl);
147 static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, argument
152 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph));
157 skb->csum = csum_partial(icmph, ipl - ihl, 0);
166 unsigned int ihl, unsigned int ipl)
170 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph));
175 skb->csum = csum_partial(igmph, ipl - ihl,
133 tcf_csum_skb_nextlayer(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, unsigned int jhl) argument
165 tcf_csum_ipv4_igmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument
183 tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument
205 tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument
229 tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument
254 tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) argument
310 tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) argument
365 tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument
[all...]
H A Dact_nat.c127 int ihl; local
175 ihl = iph->ihl * 4;
183 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) ||
184 skb_try_make_writable(skb, ihl + sizeof(*tcph) + noff))
187 tcph = (void *)(skb_network_header(skb) + ihl);
196 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) ||
197 skb_try_make_writable(skb, ihl + sizeof(*udph) + noff))
200 udph = (void *)(skb_network_header(skb) + ihl);
213 if (!pskb_may_pull(skb, ihl
[all...]
/linux-master/arch/arm64/include/asm/
H A Dchecksum.h23 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
27 int n = ihl; /* we want it signed */
/linux-master/arch/arc/include/asm/
H A Dchecksum.h38 ip_fast_csum(const void *iph, unsigned int ihl) argument
59 : "r"(ihl)
/linux-master/arch/loongarch/include/asm/
H A Dchecksum.h37 * which always checksum on 4 octet boundaries. ihl is the number
40 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
44 int n = ihl; /* we want it signed */
/linux-master/arch/riscv/include/asm/
H A Dchecksum.h31 * always be in multiples of 32-bits, and have an ihl of at least 5.
33 * @ihl: the number of 32 bit segments and must be greater than or equal to 5.
37 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
46 } while (++pos < ihl);
/linux-master/net/xfrm/
H A Dxfrm_inout.h13 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph);
18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph);
28 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph);
59 iph->ihl = 5;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dverifier_netfilter_ctx.c100 uint8_t ihl; local
112 ihl = iph->ihl << 2;
114 th = bpf_dynptr_slice(&ptr, ihl, buffer_th, sizeof(buffer_th));
H A Dtest_tc_edt.c84 uint32_t ihl; local
92 ihl = iph->ihl * 4;
93 if (((void *)iph) + ihl > data_end)
97 return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl));
/linux-master/include/net/netfilter/
H A Dnf_tables_ipv4.h29 if (iph->ihl < 5 || iph->version != 4)
33 thoff = skb_network_offset(pkt->skb) + (iph->ihl * 4);
64 if (iph->ihl < 5 || iph->version != 4)
68 thoff = iph->ihl * 4;
/linux-master/arch/x86/um/asm/
H A Dchecksum.h81 * ihl: length of header / 4
83 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
107 : "=r" (sum), "=r" (iph), "=r" (ihl)
108 : "1" (iph), "2" (ihl)
/linux-master/arch/parisc/include/asm/
H A Dchecksum.h27 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
53 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (t0), "=r" (t1), "=r" (t2)
54 : "1" (iph), "2" (ihl)
/linux-master/net/ipv4/
H A Dah4.c80 int l = iph->ihl*4 - sizeof(struct iphdr);
126 int ihl = ip_hdrlen(skb); local
129 icv = ah_tmp_icv(iph, ihl);
135 if (top_iph->ihl != 5) {
137 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr));
148 int ihl; local
171 ihl = ip_hdrlen(skb);
178 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len);
181 seqhi = (__be32 *)((char *)iph + ihl);
195 if (top_iph->ihl !
271 int ihl = ip_hdrlen(skb); local
288 memcpy(skb_network_header(skb), work_iph, ihl); local
303 int ihl; local
424 memcpy(skb_network_header(skb), work_iph, ihl); local
[all...]
/linux-master/arch/m68k/include/asm/
H A Dchecksum.h46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
61 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp)
62 : "0" (sum), "1" (iph), "2" (ihl)
/linux-master/arch/x86/include/asm/
H A Dchecksum_64.h43 * ihl: length of header / 4
45 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
66 /* Since the input registers which are loaded with iph and ihl
69 : "=r" (sum), "=r" (iph), "=r" (ihl)
70 : "1" (iph), "2" (ihl)
H A Dchecksum_32.h65 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
86 /* Since the input registers which are loaded with iph and ihl
89 : "=r" (sum), "=r" (iph), "=r" (ihl)
90 : "1" (iph), "2" (ihl)
/linux-master/arch/arm/include/asm/
H A Dchecksum.h73 ip_fast_csum(const void *iph, unsigned int ihl) argument
93 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1)
94 : "1" (iph), "2" (ihl)
/linux-master/drivers/net/slip/
H A Dslhc.c251 if (ip->version != 4 || ip->ihl < 5)
263 nlen = ip->ihl * 4;
353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl
358 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0)
478 if (ip->ihl > 5)
479 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4);
547 hdrlen = ip->ihl * 4 + thp->doff * 4;
620 if (ip->ihl >
647 unsigned ihl; local
[all...]
/linux-master/arch/xtensa/include/asm/
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),
117 : "1" (iph), "2" (ihl)
/linux-master/arch/sh/include/asm/
H A Dchecksum_32.h86 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
105 /* Since the input registers which are loaded with iph and ihl
108 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1)
109 : "1" (iph), "2" (ihl)
/linux-master/arch/s390/include/asm/
H A Dchecksum.h54 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
63 ihl -= 4;
64 while (ihl--)
/linux-master/samples/bpf/
H A Dparse_simple.c41 if (iph->protocol != IPPROTO_UDP || iph->ihl != 5)
/linux-master/arch/nios2/include/asm/
H A Dchecksum.h15 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-master/include/asm-generic/
H A Dchecksum.h26 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
/linux-master/arch/powerpc/include/asm/
H A Dchecksum.h124 * which always checksum on 4 octet boundaries. ihl is the number
127 static inline __wsum ip_fast_csum_nofold(const void *iph, unsigned int ihl) argument
134 for (i = 0; i < ihl - 1; i++, ptr++)
147 : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr)
154 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) argument
156 return csum_fold(ip_fast_csum_nofold(iph, ihl));

Completed in 262 milliseconds

123456789