Home
last modified time | relevance | path

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

12345678910>>...17

/kernel/linux/linux-5.10/net/sched/
H A Dact_csum.c125 * @ihl: previous summed headers length
133 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer()
137 int hl = ihl + jhl; in tcf_csum_skb_nextlayer()
143 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer()
146 static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv4_icmp() argument
151 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp()
156 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp()
165 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp()
169 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
174 skb->csum = csum_partial(igmph, ipl - ihl, in tcf_csum_ipv4_igmp()
132 tcf_csum_skb_nextlayer(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, unsigned int jhl) tcf_csum_skb_nextlayer() argument
164 tcf_csum_ipv4_igmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv4_igmp() argument
182 tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv6_icmp() argument
204 tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv4_tcp() argument
228 tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv6_tcp() argument
253 tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) tcf_csum_ipv4_udp() argument
309 tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) tcf_csum_ipv6_udp() argument
364 tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_sctp() argument
[all...]
H A Dact_nat.c113 int ihl; in tcf_nat_act() local
163 ihl = iph->ihl * 4; in tcf_nat_act()
171 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat_act()
172 skb_try_make_writable(skb, ihl + sizeof(*tcph) + noff)) in tcf_nat_act()
175 tcph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
184 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat_act()
185 skb_try_make_writable(skb, ihl + sizeof(*udph) + noff)) in tcf_nat_act()
188 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
201 if (!pskb_may_pull(skb, ihl in tcf_nat_act()
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dact_csum.c126 * @ihl: previous summed headers length
134 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer()
138 int hl = ihl + jhl; in tcf_csum_skb_nextlayer()
144 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer()
147 static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv4_icmp() argument
152 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp()
157 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp()
166 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp()
170 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
175 skb->csum = csum_partial(igmph, ipl - ihl, in tcf_csum_ipv4_igmp()
133 tcf_csum_skb_nextlayer(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, unsigned int jhl) tcf_csum_skb_nextlayer() argument
165 tcf_csum_ipv4_igmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv4_igmp() argument
183 tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv6_icmp() argument
205 tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv4_tcp() argument
229 tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_ipv6_tcp() argument
254 tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) tcf_csum_ipv4_udp() argument
310 tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) tcf_csum_ipv6_udp() argument
365 tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) tcf_csum_sctp() argument
[all...]
H A Dact_nat.c127 int ihl; in tcf_nat_act() local
175 ihl = iph->ihl * 4; in tcf_nat_act()
183 if (!pskb_may_pull(skb, ihl + sizeof(*tcph) + noff) || in tcf_nat_act()
184 skb_try_make_writable(skb, ihl + sizeof(*tcph) + noff)) in tcf_nat_act()
187 tcph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
196 if (!pskb_may_pull(skb, ihl + sizeof(*udph) + noff) || in tcf_nat_act()
197 skb_try_make_writable(skb, ihl + sizeof(*udph) + noff)) in tcf_nat_act()
200 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
213 if (!pskb_may_pull(skb, ihl in tcf_nat_act()
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dah4.c83 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
129 int ihl = ip_hdrlen(skb); in ah_output_done() local
132 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
138 if (top_iph->ihl != 5) { in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
151 int ihl; in ah_output() local
174 ihl = ip_hdrlen(skb); in ah_output()
181 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
184 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
198 if (top_iph->ihl ! in ah_output()
274 int ihl = ip_hdrlen(skb); ah_input_done() local
291 memcpy(skb_network_header(skb), work_iph, ihl); ah_input_done() local
306 int ihl; ah_input() local
427 memcpy(skb_network_header(skb), work_iph, ihl); ah_input() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dah4.c83 int l = iph->ihl*4 - sizeof(struct iphdr); in ip_clear_mutable_options()
129 int ihl = ip_hdrlen(skb); in ah_output_done() local
132 icv = ah_tmp_icv(ahp->ahash, iph, ihl); in ah_output_done()
138 if (top_iph->ihl != 5) { in ah_output_done()
140 memcpy(top_iph+1, iph+1, top_iph->ihl*4 - sizeof(struct iphdr)); in ah_output_done()
151 int ihl; in ah_output() local
174 ihl = ip_hdrlen(skb); in ah_output()
181 iph = ah_alloc_tmp(ahash, nfrags + sglists, ihl + seqhi_len); in ah_output()
184 seqhi = (__be32 *)((char *)iph + ihl); in ah_output()
198 if (top_iph->ihl ! in ah_output()
274 int ihl = ip_hdrlen(skb); ah_input_done() local
291 memcpy(skb_network_header(skb), work_iph, ihl); ah_input_done() local
306 int ihl; ah_input() local
427 memcpy(skb_network_header(skb), work_iph, ihl); ah_input() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_log_ipv4.c77 ih->ihl * 4 > sizeof(struct iphdr)) { in dump_ipv4_packet()
82 optsize = ih->ihl * 4 - sizeof(struct iphdr); in dump_ipv4_packet()
101 iphoff+ih->ihl*4, logflags)) in dump_ipv4_packet()
108 iphoff+ih->ihl*4)) in dump_ipv4_packet()
139 ich = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet()
143 skb->len - iphoff - ih->ihl*4); in dump_ipv4_packet()
153 skb->len-iphoff-ih->ihl*4 < required_len[ich->type]) { in dump_ipv4_packet()
155 skb->len - iphoff - ih->ihl*4); in dump_ipv4_packet()
184 iphoff + ih->ihl*4+sizeof(_icmph)); in dump_ipv4_packet()
209 ah = skb_header_pointer(skb, iphoff+ih->ihl* in dump_ipv4_packet()
[all...]
/kernel/linux/linux-5.10/drivers/net/slip/
H A Dslhc.c251 if (ip->version != 4 || ip->ihl < 5) in slhc_compress()
263 nlen = ip->ihl * 4; in slhc_compress()
353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
358 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) in slhc_compress()
478 if (ip->ihl > 5) in slhc_compress()
479 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); in slhc_compress()
547 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress()
620 if (ip->ihl > in slhc_uncompress()
647 unsigned ihl; slhc_remember() local
[all...]
/kernel/linux/linux-6.6/drivers/net/slip/
H A Dslhc.c251 if (ip->version != 4 || ip->ihl < 5) in slhc_compress()
263 nlen = ip->ihl * 4; in slhc_compress()
353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
358 || (ip->ihl > 5 && memcmp(ip+1,cs->cs_ipopt,((ip->ihl)-5)*4) != 0) in slhc_compress()
478 if (ip->ihl > 5) in slhc_compress()
479 memcpy(cs->cs_ipopt, ip+1, ((ip->ihl) - 5) * 4); in slhc_compress()
547 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress()
620 if (ip->ihl > in slhc_uncompress()
647 unsigned ihl; slhc_remember() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_tc_edt.c84 uint32_t ihl; in handle_ipv4() local
92 ihl = iph->ihl * 4; in handle_ipv4()
93 if (((void *)iph) + ihl > data_end) in handle_ipv4()
97 return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl)); in handle_ipv4()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_tc_edt.c84 uint32_t ihl; in handle_ipv4() local
92 ihl = iph->ihl * 4; in handle_ipv4()
93 if (((void *)iph) + ihl > data_end) in handle_ipv4()
97 return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl)); in handle_ipv4()
H A Dverifier_netfilter_ctx.c100 uint8_t ihl; in with_valid_ctx_access_test6() local
112 ihl = iph->ihl << 2; in with_valid_ctx_access_test6()
114 th = bpf_dynptr_slice(&ptr, ihl, buffer_th, sizeof(buffer_th)); in with_valid_ctx_access_test6()
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_tables_ipv4.h31 if (iph->ihl < 5 || iph->version != 4) in __nft_set_pktinfo_ipv4_validate()
35 thoff = iph->ihl * 4; in __nft_set_pktinfo_ipv4_validate()
66 if (iph->ihl < 5 || iph->version != 4) in nft_set_pktinfo_ipv4_ingress()
70 thoff = iph->ihl * 4; in nft_set_pktinfo_ipv4_ingress()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dchecksum.h117 * which always checksum on 4 octet boundaries. ihl is the number
120 static inline __wsum ip_fast_csum_nofold(const void *iph, unsigned int ihl) in ip_fast_csum_nofold() argument
127 for (i = 0; i < ihl - 1; i++, ptr++) in ip_fast_csum_nofold()
140 : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr) in ip_fast_csum_nofold()
147 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
149 return csum_fold(ip_fast_csum_nofold(iph, ihl)); in ip_fast_csum()
/kernel/linux/linux-6.6/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) in ip_fast_csum_nofold() argument
134 for (i = 0; i < ihl - 1; i++, ptr++) in ip_fast_csum_nofold()
147 : "r" (ihl - 2), "r" (*(const u32 *)iph), "r" (*ptr) in ip_fast_csum_nofold()
154 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
156 return csum_fold(ip_fast_csum_nofold(iph, ihl)); in ip_fast_csum()
/kernel/linux/linux-5.10/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) in ip_fast_csum() argument
107 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
108 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-6.6/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) in ip_fast_csum() argument
107 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
108 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/net/xfrm/
H A Dxfrm_inout.h13 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm4_extract_header()
18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header()
28 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm6_extract_header()
59 iph->ihl = 5; in xfrm4_beet_make_header()
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_tables_ipv4.h29 if (iph->ihl < 5 || iph->version != 4) in __nft_set_pktinfo_ipv4_validate()
33 thoff = skb_network_offset(pkt->skb) + (iph->ihl * 4); in __nft_set_pktinfo_ipv4_validate()
64 if (iph->ihl < 5 || iph->version != 4) in nft_set_pktinfo_ipv4_ingress()
68 thoff = iph->ihl * 4; in nft_set_pktinfo_ipv4_ingress()
/kernel/linux/linux-6.6/net/xfrm/
H A Dxfrm_inout.h13 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm4_extract_header()
18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header()
28 XFRM_MODE_SKB_CB(skb)->ihl = sizeof(*iph); in xfrm6_extract_header()
59 iph->ihl = 5; in xfrm4_beet_make_header()
/kernel/linux/linux-5.10/arch/arm/include/asm/
H A Dchecksum.h72 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
92 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum()
93 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
H A Dchecksum.h46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
61 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum()
62 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/parisc/include/asm/
H A Dchecksum.h27 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
53 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (t0), "=r" (t1), "=r" (t2) in ip_fast_csum()
54 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dchecksum_64.h44 * ihl: length of header / 4
46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
67 /* Since the input registers which are loaded with iph and ihl in ip_fast_csum()
70 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
71 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-6.6/arch/m68k/include/asm/
H A Dchecksum.h46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
61 : "=d" (sum), "=&a" (iph), "=&d" (ihl), "=&d" (tmp) in ip_fast_csum()
62 : "0" (sum), "1" (iph), "2" (ihl) in ip_fast_csum()

Completed in 12 milliseconds

12345678910>>...17