Home
last modified time | relevance | path

Searched refs:ihl (Results 1 – 25 of 198) sorted by relevance

12345678

/kernel/linux/linux-5.10/net/sched/
Dact_csum.c133 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer() argument
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() argument
169 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
174 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp()
182 static int tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv6_icmp() argument
[all …]
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 + sizeof(*icmph) + noff)) in tcf_nat_act()
204 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
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 != 5) { in ah_output()
[all …]
Dip_input.c276 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
382 if (iph->ihl > 5 && ip_rcv_options(skb, dev)) in ip_rcv_finish_core()
482 if (iph->ihl < 5 || iph->version != 4) in ip_rcv_core()
492 if (!pskb_may_pull(skb, iph->ihl*4)) in ip_rcv_core()
497 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in ip_rcv_core()
504 } else if (len < (iph->ihl*4)) in ip_rcv_core()
517 skb->transport_header = skb->network_header + iph->ihl*4; in ip_rcv_core()
/kernel/linux/linux-5.10/drivers/net/slip/
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 > 5) { in slhc_uncompress()
621 memcpy(cp, cs->cs_ipopt, (ip->ihl - 5) * 4); in slhc_uncompress()
622 cp += (ip->ihl - 5) * 4; in slhc_uncompress()
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
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*4, in dump_ipv4_packet()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
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-5.10/net/xfrm/
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()
Dxfrm_output.c67 int ihl = iph->ihl * 4; in xfrm4_transport_output() local
74 skb->transport_header = skb->network_header + ihl; in xfrm4_transport_output()
75 __skb_pull(skb, ihl); in xfrm4_transport_output()
76 memmove(skb_network_header(skb), iph, ihl); in xfrm4_transport_output()
160 (XFRM_MODE_SKB_CB(skb)->ihl - sizeof(*top_iph))); in xfrm4_beet_encap_add()
169 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdrlen); in xfrm4_beet_encap_add()
184 top_iph->ihl = sizeof(struct iphdr) / 4; in xfrm4_beet_encap_add()
212 top_iph->ihl = 5; in xfrm4_tunnel_encap_add()
294 ph = __skb_pull(skb, XFRM_MODE_SKB_CB(skb)->ihl - hdr_len); in xfrm6_beet_encap_add()
/kernel/linux/linux-5.10/include/net/netfilter/
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/x86/um/asm/
Dchecksum.h83 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/arch/powerpc/include/asm/
Dchecksum.h120 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-5.10/arch/m68k/include/asm/
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/
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/
Dchecksum_64.h46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
70 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
71 : "1" (iph), "2" (ihl) in ip_fast_csum()
Dchecksum_32.h65 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
89 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
90 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/arm/include/asm/
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/sh/include/asm/
Dchecksum_32.h85 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
106 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum()
107 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dchecksum.h88 static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
115 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (tmp), in ip_fast_csum()
117 : "1" (iph), "2" (ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/s390/include/asm/
Dchecksum.h58 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
67 ihl -= 4; in ip_fast_csum()
68 while (ihl--) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dchecksum.h38 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
59 : "r"(ihl) in ip_fast_csum()
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dchecksum.h23 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
27 int n = ihl; /* we want it signed */ in ip_fast_csum()
/kernel/linux/linux-5.10/samples/bpf/
Dparse_varlen.c62 ihl_len = iph->ihl * 4; in parse_ipv4()
68 ihl_len += iph->ihl * 4; in parse_ipv4()
95 ihl_len += iph->ihl * 4; in parse_ipv6()
/kernel/liteos_m/kal/libc/newlib/porting/include/netinet/
Dip.h57 unsigned int ihl:4; member
61 unsigned int ihl:4;
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c112 .iph.ihl = 5,
154 .iph.ihl = 5,
198 .iph.ihl = 5,
224 .iph.ihl = 5,
338 .iph.ihl = 5,
341 .iph_inner.ihl = 5,
366 .iph.ihl = 5,
369 .iph_inner.ihl = 5,

12345678