Home
last modified time | relevance | path

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

123456789

/openbmc/linux/net/sched/
H A Dact_csum.c134 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer() argument
138 int hl = ihl + jhl; in tcf_csum_skb_nextlayer()
166 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument
197 ipl - ihl, IPPROTO_ICMPV6, in tcf_csum_ipv6_icmp()
221 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
246 ipl - ihl, IPPROTO_TCP, in tcf_csum_ipv6_tcp()
290 if (ul != ipl - ihl) in tcf_csum_ipv4_udp()
346 if (ul != ipl - ihl) in tcf_csum_ipv6_udp()
378 skb_network_offset(skb) + ihl); in tcf_csum_sctp()
411 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
[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()
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()
200 udph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
213 if (!pskb_may_pull(skb, ihl + sizeof(*icmph) + noff)) in tcf_nat_act()
216 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
225 icmph = (void *)(skb_network_header(skb) + ihl); in tcf_nat_act()
235 if (skb_try_make_writable(skb, ihl + sizeof(*icmph) + in tcf_nat_act()
[all …]
/openbmc/linux/net/ipv4/
H A Dah4.c129 int ihl = ip_hdrlen(skb); in ah_output_done() local
138 if (top_iph->ihl != 5) { in ah_output_done()
151 int ihl; in ah_output() local
174 ihl = ip_hdrlen(skb); in ah_output()
198 if (top_iph->ihl != 5) { in ah_output()
254 if (top_iph->ihl != 5) { in ah_output()
274 int ihl = ip_hdrlen(skb); in ah_input_done() local
306 int ihl; in ah_input() local
361 ihl = ip_hdrlen(skb); in ah_input()
390 if (ihl > sizeof(*iph)) { in ah_input()
[all …]
H A Dip_input.c279 opt->optlen = iph->ihl*4 - sizeof(struct iphdr); in ip_rcv_options()
387 if (iph->ihl > 5 && ip_rcv_options(skb, dev)) in ip_rcv_finish_core()
496 if (iph->ihl < 5 || iph->version != 4) in ip_rcv_core()
506 if (!pskb_may_pull(skb, iph->ihl*4)) in ip_rcv_core()
511 if (unlikely(ip_fast_csum((u8 *)iph, iph->ihl))) in ip_rcv_core()
519 } else if (len < (iph->ihl*4)) in ip_rcv_core()
532 skb->transport_header = skb->network_header + iph->ihl*4; in ip_rcv_core()
/openbmc/linux/drivers/net/slip/
H A Dslhc.c263 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()
620 if (ip->ihl > 5) { in slhc_uncompress()
622 cp += (ip->ihl - 5) * 4; in slhc_uncompress()
647 unsigned ihl; in slhc_remember() local
657 ihl = icp[0] & 0xf; in slhc_remember()
658 if(ihl < 20 / 4){ in slhc_remember()
666 if (ip_fast_csum(icp, ihl)) { in slhc_remember()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/arch/x86/um/asm/
H A 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()
/openbmc/linux/arch/powerpc/include/asm/
H A Dchecksum.h127 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()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/arch/x86/include/asm/
H A Dchecksum_64.h45 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
69 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
70 : "1" (iph), "2" (ihl) in ip_fast_csum()
H A 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()
/openbmc/linux/arch/sh/include/asm/
H A Dchecksum_32.h86 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
108 : "=r" (sum), "=r" (iph), "=r" (ihl), "=&r" (__dummy0), "=&z" (__dummy1) in ip_fast_csum()
109 : "1" (iph), "2" (ihl) in ip_fast_csum()
/openbmc/linux/arch/arm/include/asm/
H A Dchecksum.h73 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
93 : "=r" (sum), "=r" (iph), "=r" (ihl), "=r" (tmp1) in ip_fast_csum()
94 : "1" (iph), "2" (ihl) in ip_fast_csum()
/openbmc/linux/arch/xtensa/include/asm/
H A 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()
/openbmc/linux/arch/arc/include/asm/
H A Dchecksum.h38 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
59 : "r"(ihl) in ip_fast_csum()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c116 .iph.ihl = 5,
160 .iph.ihl = 5,
206 .iph.ihl = 5,
233 .iph.ihl = 5,
376 .iph.ihl = 5,
379 .iph_inner.ihl = 5,
405 .iph.ihl = 5,
408 .iph_inner.ihl = 5,
433 .iph.ihl = 5,
437 .iph_inner.ihl = 5,
/openbmc/linux/arch/s390/include/asm/
H A Dchecksum.h61 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
70 ihl -= 4; in ip_fast_csum()
71 while (ihl--) in ip_fast_csum()
/openbmc/linux/arch/arm64/include/asm/
H A 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()
/openbmc/linux/arch/loongarch/include/asm/
H A Dchecksum.h40 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() argument
44 int n = ihl; /* we want it signed */ in ip_fast_csum()
/openbmc/linux/samples/bpf/
H A 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()
/openbmc/linux/net/netfilter/
H A Dnf_log_syslog.c342 ih->ihl * 4 > sizeof(struct iphdr)) { in dump_ipv4_packet()
347 optsize = ih->ihl * 4 - sizeof(struct iphdr); in dump_ipv4_packet()
366 iphoff + ih->ihl * 4, logflags)) in dump_ipv4_packet()
373 iphoff + ih->ihl * 4)) in dump_ipv4_packet()
403 skb->len - iphoff - ih->ihl * 4); in dump_ipv4_packet()
415 skb->len - iphoff - ih->ihl * 4); in dump_ipv4_packet()
444 iphoff + ih->ihl * 4 + sizeof(_icmph)); in dump_ipv4_packet()
469 ah = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet()
473 skb->len - iphoff - ih->ihl * 4); in dump_ipv4_packet()
492 eh = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet()
[all …]

123456789