/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_flow_table_ip.c | 21 struct sk_buff *skb, unsigned int thoff) in nf_flow_state_check() 28 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check() 37 static int nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument 42 if (skb_try_make_writable(skb, thoff + sizeof(*tcph))) in nf_flow_nat_ip_tcp() 45 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp() 51 static int nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument 56 if (skb_try_make_writable(skb, thoff + sizeof(*udph))) in nf_flow_nat_ip_udp() 59 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp() 71 unsigned int thoff, __be32 addr, in nf_flow_nat_ip_l4proto() 76 if (nf_flow_nat_ip_tcp(skb, thoff, add in nf_flow_nat_ip_l4proto() 20 nf_flow_state_check(struct flow_offload *flow, int proto, struct sk_buff *skb, unsigned int thoff) nf_flow_state_check() argument 70 nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, __be32 addr, __be32 new_addr) nf_flow_nat_ip_l4proto() argument 88 nf_flow_snat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_snat_ip() argument 113 nf_flow_dnat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_dnat_ip() argument 138 nf_flow_nat_ip(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_nat_ip() argument 157 ip_has_options(unsigned int thoff) ip_has_options() argument 165 unsigned int thoff, hdrsize; nf_flow_tuple_ip() local 252 unsigned int thoff; nf_flow_offload_ip_hook() local 314 nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) nf_flow_nat_ipv6_tcp() argument 330 nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) nf_flow_nat_ipv6_udp() argument 350 nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) nf_flow_nat_ipv6_l4proto() argument 368 nf_flow_snat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_snat_ipv6() argument 393 nf_flow_dnat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_dnat_ipv6() argument 423 unsigned int thoff = sizeof(*ip6h); nf_flow_nat_ipv6() local 442 unsigned int thoff, hdrsize; nf_flow_tuple_ipv6() local [all...] |
H A D | xt_l2tp.c | 79 static bool l2tp_udp_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_udp_mt() argument 83 int offs = thoff + uhlen; in l2tp_udp_mt() 139 static bool l2tp_ip_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_ip_mt() argument 147 lh = skb_header_pointer(skb, thoff, sizeof(lhbuf), &lhbuf); in l2tp_ip_mt() 155 lh = skb_header_pointer(skb, thoff + 8, sizeof(lhbuf), in l2tp_ip_mt() 178 return l2tp_udp_mt(skb, par, par->thoff); in l2tp_mt4() 180 return l2tp_ip_mt(skb, par, par->thoff); in l2tp_mt4() 189 unsigned int thoff = 0; in l2tp_mt6() local 193 ipproto = ipv6_find_hdr(skb, &thoff, -1, &fragoff, NULL); in l2tp_mt6() 200 return l2tp_udp_mt(skb, par, thoff); in l2tp_mt6() [all...] |
H A D | nf_flow_table_core.c | 392 static int nf_flow_nat_port_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port_tcp() argument 397 if (skb_try_make_writable(skb, thoff + sizeof(*tcph))) in nf_flow_nat_port_tcp() 400 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_tcp() 406 static int nf_flow_nat_port_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port_udp() argument 411 if (skb_try_make_writable(skb, thoff + sizeof(*udph))) in nf_flow_nat_port_udp() 414 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_udp() 425 static int nf_flow_nat_port(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port() argument 430 if (nf_flow_nat_port_tcp(skb, thoff, port, new_port) < 0) in nf_flow_nat_port() 434 if (nf_flow_nat_port_udp(skb, thoff, port, new_port) < 0) in nf_flow_nat_port() 443 struct sk_buff *skb, unsigned int thoff, in nf_flow_snat_port() 442 nf_flow_snat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) nf_flow_snat_port() argument 473 nf_flow_dnat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) nf_flow_dnat_port() argument [all...] |
H A D | xt_TPROXY.c | 121 int thoff = 0; in tproxy_tg6_v1() local 124 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in tproxy_tg6_v1() 130 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_tg6_v1() 140 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, tproto, in tproxy_tg6_v1() 152 sk = nf_tproxy_handle_time_wait6(skb, tproto, thoff, in tproxy_tg6_v1() 161 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, in tproxy_tg6_v1()
|
/kernel/linux/linux-6.6/include/net/netfilter/ |
H A D | nf_tables_ipv6.h | 12 int protohdr, thoff = 0; in nft_set_pktinfo_ipv6() local 15 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6() 16 if (protohdr < 0 || thoff > U16_MAX) { in nft_set_pktinfo_ipv6() 23 pkt->thoff = thoff; in nft_set_pktinfo_ipv6() 32 unsigned int thoff = 0; in __nft_set_pktinfo_ipv6_validate() local 49 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in __nft_set_pktinfo_ipv6_validate() 50 if (protohdr < 0 || thoff > U16_MAX) in __nft_set_pktinfo_ipv6_validate() 55 pkt->thoff = thoff; in __nft_set_pktinfo_ipv6_validate() 75 unsigned int thoff = 0; nft_set_pktinfo_ipv6_ingress() local [all...] |
H A D | nf_tables_ipv4.h | 15 pkt->thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4() 22 u32 len, thoff; in __nft_set_pktinfo_ipv4_validate() local 33 thoff = skb_network_offset(pkt->skb) + (iph->ihl * 4); in __nft_set_pktinfo_ipv4_validate() 36 else if (len < thoff) in __nft_set_pktinfo_ipv4_validate() 38 else if (thoff < sizeof(*iph)) in __nft_set_pktinfo_ipv4_validate() 43 pkt->thoff = thoff; in __nft_set_pktinfo_ipv4_validate() 58 u32 len, thoff; in nft_set_pktinfo_ipv4_ingress() local 68 thoff = iph->ihl * 4; in nft_set_pktinfo_ipv4_ingress() 72 } else if (len < thoff) { in nft_set_pktinfo_ipv4_ingress() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_flow_table_ip.c | 23 struct sk_buff *skb, unsigned int thoff) in nf_flow_state_check() 30 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check() 39 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument 44 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp() 48 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument 53 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp() 63 unsigned int thoff, __be32 addr, in nf_flow_nat_ip_l4proto() 68 nf_flow_nat_ip_tcp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto() 71 nf_flow_nat_ip_udp(skb, thoff, addr, new_addr); in nf_flow_nat_ip_l4proto() 78 unsigned int thoff, enu in nf_flow_snat_ip() 22 nf_flow_state_check(struct flow_offload *flow, int proto, struct sk_buff *skb, unsigned int thoff) nf_flow_state_check() argument 62 nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, __be32 addr, __be32 new_addr) nf_flow_nat_ip_l4proto() argument 76 nf_flow_snat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_snat_ip() argument 99 nf_flow_dnat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_dnat_ip() argument 122 nf_flow_nat_ip(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, enum flow_offload_tuple_dir dir, struct iphdr *iph) nf_flow_nat_ip() argument 136 ip_has_options(unsigned int thoff) ip_has_options() argument 177 unsigned int thoff; nf_flow_tuple_ip() local 368 unsigned int thoff, mtu; nf_flow_offload_forward() local 470 nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr, struct ipv6hdr *ip6h) nf_flow_nat_ipv6_tcp() argument 482 nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) nf_flow_nat_ipv6_udp() argument 497 nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) nf_flow_nat_ipv6_l4proto() argument 511 nf_flow_snat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_snat_ipv6() argument 534 nf_flow_dnat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) nf_flow_dnat_ipv6() argument 562 unsigned int thoff = sizeof(*ip6h); nf_flow_nat_ipv6() local 579 unsigned int thoff; nf_flow_tuple_ipv6() local 647 unsigned int thoff, mtu; nf_flow_offload_ipv6_forward() local [all...] |
H A D | xt_l2tp.c | 79 static bool l2tp_udp_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_udp_mt() argument 83 int offs = thoff + uhlen; in l2tp_udp_mt() 139 static bool l2tp_ip_mt(const struct sk_buff *skb, struct xt_action_param *par, u16 thoff) in l2tp_ip_mt() argument 147 lh = skb_header_pointer(skb, thoff, sizeof(lhbuf), &lhbuf); in l2tp_ip_mt() 155 lh = skb_header_pointer(skb, thoff + 8, sizeof(lhbuf), in l2tp_ip_mt() 178 return l2tp_udp_mt(skb, par, par->thoff); in l2tp_mt4() 180 return l2tp_ip_mt(skb, par, par->thoff); in l2tp_mt4() 189 unsigned int thoff = 0; in l2tp_mt6() local 193 ipproto = ipv6_find_hdr(skb, &thoff, -1, &fragoff, NULL); in l2tp_mt6() 200 return l2tp_udp_mt(skb, par, thoff); in l2tp_mt6() [all...] |
H A D | nft_inner.c | 56 u32 nhoff, thoff; in nft_inner_parse_l2l3() local 129 thoff = nhoff + (iph->ihl * 4); in nft_inner_parse_l2l3() 132 ctx->inner_thoff = thoff; in nft_inner_parse_l2l3() 153 thoff = nhoff; in nft_inner_parse_l2l3() 154 l4proto = ipv6_find_hdr(pkt->skb, &thoff, -1, &fragoff, &fh_flags); in nft_inner_parse_l2l3() 155 if (l4proto < 0 || thoff > U16_MAX) in nft_inner_parse_l2l3() 159 thoff = nhoff + sizeof(_ip6h); in nft_inner_parse_l2l3() 161 ctx->inner_thoff = thoff; in nft_inner_parse_l2l3() 178 ctx->inner_tunoff = pkt->thoff; in nft_inner_parse_tunhdr()
|
H A D | nf_flow_table_core.c | 457 static void nf_flow_nat_port_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port_tcp() argument 462 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_tcp() 466 static void nf_flow_nat_port_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port_udp() argument 471 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_port_udp() 480 static void nf_flow_nat_port(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_port() argument 485 nf_flow_nat_port_tcp(skb, thoff, port, new_port); in nf_flow_nat_port() 488 nf_flow_nat_port_udp(skb, thoff, port, new_port); in nf_flow_nat_port() 494 struct sk_buff *skb, unsigned int thoff, in nf_flow_snat_port() 500 hdr = (void *)(skb_network_header(skb) + thoff); in nf_flow_snat_port() 515 nf_flow_nat_port(skb, thoff, protoco in nf_flow_snat_port() 493 nf_flow_snat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) nf_flow_snat_port() argument 519 nf_flow_dnat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) nf_flow_dnat_port() argument [all...] |
H A D | xt_TPROXY.c | 113 int thoff = 0; in tproxy_tg6_v1() local 116 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in tproxy_tg6_v1() 120 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in tproxy_tg6_v1() 128 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, tproto, in tproxy_tg6_v1() 140 sk = nf_tproxy_handle_time_wait6(skb, tproto, thoff, in tproxy_tg6_v1() 149 sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, in tproxy_tg6_v1()
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
H A D | nf_tables_ipv4.h | 16 pkt->xt.thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4() 24 u32 len, thoff; in __nft_set_pktinfo_ipv4_validate() local 35 thoff = iph->ihl * 4; in __nft_set_pktinfo_ipv4_validate() 38 else if (len < thoff) in __nft_set_pktinfo_ipv4_validate() 43 pkt->xt.thoff = thoff; in __nft_set_pktinfo_ipv4_validate() 60 u32 len, thoff; in nft_set_pktinfo_ipv4_ingress() local 70 thoff = iph->ihl * 4; in nft_set_pktinfo_ipv4_ingress() 74 } else if (len < thoff) { in nft_set_pktinfo_ipv4_ingress() 80 pkt->xt.thoff in nft_set_pktinfo_ipv4_ingress() [all...] |
H A D | nf_tables_ipv6.h | 13 int protohdr, thoff = 0; in nft_set_pktinfo_ipv6() local 16 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6() 24 pkt->xt.thoff = thoff; in nft_set_pktinfo_ipv6() 34 unsigned int thoff = 0; in __nft_set_pktinfo_ipv6_validate() local 51 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in __nft_set_pktinfo_ipv6_validate() 57 pkt->xt.thoff = thoff; in __nft_set_pktinfo_ipv6_validate() 79 unsigned int thoff = 0; in nft_set_pktinfo_ipv6_ingress() local 99 protohdr = ipv6_find_hdr(pkt->skb, &thoff, in nft_set_pktinfo_ipv6_ingress() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 97 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header() local 101 if (thoff > (USHRT_MAX - hdr_size)) in bpf_flow_dissect_get_header() 104 hdr = data + thoff; in bpf_flow_dissect_get_header() 108 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size)) in bpf_flow_dissect_get_header() 188 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto() 190 keys->thoff += 4; /* Step over chksum and Padding */ in parse_ip_proto() 192 keys->thoff += 4; /* Step over key */ in parse_ip_proto() 194 keys->thoff += 4; /* Step over sequence number */ in parse_ip_proto() 206 keys->thoff in parse_ip_proto() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 98 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header() local 102 if (thoff > (USHRT_MAX - hdr_size)) in bpf_flow_dissect_get_header() 105 hdr = data + thoff; in bpf_flow_dissect_get_header() 109 if (bpf_skb_load_bytes(skb, thoff, buffer, hdr_size)) in bpf_flow_dissect_get_header() 202 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto() 204 keys->thoff += 4; /* Step over chksum and Padding */ in parse_ip_proto() 206 keys->thoff += 4; /* Step over key */ in parse_ip_proto() 208 keys->thoff += 4; /* Step over sequence number */ in parse_ip_proto() 220 keys->thoff in parse_ip_proto() [all...] |
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | nf_tproxy_ipv6.c | 39 nf_tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff, in nf_tproxy_handle_time_wait6() argument 48 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in nf_tproxy_handle_time_wait6() 59 sk2 = nf_tproxy_get_sock_v6(net, skb, thoff, tproto, in nf_tproxy_handle_time_wait6() 76 nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff, in nf_tproxy_get_sock_v6() argument 89 hp = skb_header_pointer(skb, thoff, in nf_tproxy_get_sock_v6() 97 thoff + __tcp_hdrlen(hp), in nf_tproxy_get_sock_v6()
|
H A D | nf_socket_ipv6.c | 105 int thoff = 0, tproto; in nf_sk_lookup_slow_v6() local 107 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in nf_sk_lookup_slow_v6() 117 hp = skb_header_pointer(skb, thoff, tproto == IPPROTO_UDP ? in nf_sk_lookup_slow_v6() 128 thoff + __tcp_hdrlen((struct tcphdr *)hp) : in nf_sk_lookup_slow_v6() 129 thoff + sizeof(*hp); in nf_sk_lookup_slow_v6() 132 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr, in nf_sk_lookup_slow_v6()
|
H A D | ip6t_SYNPROXY.c | 21 if (nf_ip6_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP)) in synproxy_tg6() 24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg6() 28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A D | nf_socket_ipv6.c | 105 int thoff = 0, tproto; in nf_sk_lookup_slow_v6() local 107 tproto = ipv6_find_hdr(skb, &thoff, -1, NULL, NULL); in nf_sk_lookup_slow_v6() 117 hp = skb_header_pointer(skb, thoff, tproto == IPPROTO_UDP ? in nf_sk_lookup_slow_v6() 128 thoff + __tcp_hdrlen((struct tcphdr *)hp) : in nf_sk_lookup_slow_v6() 129 thoff + sizeof(*hp); in nf_sk_lookup_slow_v6() 132 if (extract_icmp6_fields(skb, thoff, &tproto, &saddr, &daddr, in nf_sk_lookup_slow_v6()
|
H A D | nf_tproxy_ipv6.c | 39 nf_tproxy_handle_time_wait6(struct sk_buff *skb, int tproto, int thoff, in nf_tproxy_handle_time_wait6() argument 48 hp = skb_header_pointer(skb, thoff, sizeof(_hdr), &_hdr); in nf_tproxy_handle_time_wait6() 59 sk2 = nf_tproxy_get_sock_v6(net, skb, thoff, tproto, in nf_tproxy_handle_time_wait6() 76 nf_tproxy_get_sock_v6(struct net *net, struct sk_buff *skb, int thoff, in nf_tproxy_get_sock_v6() argument 90 hp = skb_header_pointer(skb, thoff, in nf_tproxy_get_sock_v6() 98 thoff + __tcp_hdrlen(hp), in nf_tproxy_get_sock_v6()
|
H A D | nf_reject_ipv6.c | 18 int thoff; in nf_reject_v6_csum_ok() local 30 thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); in nf_reject_v6_csum_ok() 31 if (thoff < 0 || thoff >= skb->len || (fo & htons(~0x7)) != 0) in nf_reject_v6_csum_ok() 34 if (!nf_reject_verify_csum(skb, thoff, proto)) in nf_reject_v6_csum_ok() 37 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in nf_reject_v6_csum_ok() 384 int thoff; in reject6_csum_ok() local 392 thoff = ipv6_skip_exthdr(skb, ((u8 *)(ip6h + 1) - skb->data), &proto, &fo); in reject6_csum_ok() 394 if (thoff < 0 || thoff > in reject6_csum_ok() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 22 "thoff=%u/%u " \ 33 got.thoff, expected.thoff, \ 125 .thoff = ETH_HLEN + sizeof(struct iphdr), 146 .thoff = ETH_HLEN + sizeof(struct ipv6hdr), 169 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), 192 .thoff = ETH_HLEN + VLAN_HLEN * 2 + 217 .thoff = ETH_HLEN + sizeof(struct iphdr), 243 .thoff = ETH_HLEN + sizeof(struct iphdr), 266 .thoff [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 19 "thoff=%u/%u " \ 30 got.thoff, expected.thoff, \ 121 .thoff = ETH_HLEN + sizeof(struct iphdr), 141 .thoff = ETH_HLEN + sizeof(struct ipv6hdr), 163 .thoff = ETH_HLEN + VLAN_HLEN + sizeof(struct iphdr), 185 .thoff = ETH_HLEN + VLAN_HLEN * 2 + 209 .thoff = ETH_HLEN + sizeof(struct iphdr), 234 .thoff = ETH_HLEN + sizeof(struct iphdr), 256 .thoff [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | ipt_SYNPROXY.c | 21 if (nf_ip_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP)) in synproxy_tg4() 24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4() 28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | ipt_SYNPROXY.c | 21 if (nf_ip_checksum(skb, xt_hooknum(par), par->thoff, IPPROTO_TCP)) in synproxy_tg4() 24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4() 28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
|