/kernel/linux/linux-6.6/net/ipv6/ |
H A D | sysctl_net_ipv6.c | 12 #include <linux/ipv6.h> 16 #include <net/ipv6.h> 40 ipv6.sysctl.multipath_hash_policy); in proc_rt6_multipath_hash_policy() 56 ipv6.sysctl.multipath_hash_fields); in proc_rt6_multipath_hash_fields() 67 .data = &init_net.ipv6.sysctl.bindv6only, 74 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply, 81 .data = &init_net.ipv6.sysctl.flowlabel_consistency, 88 .data = &init_net.ipv6.sysctl.auto_flowlabels, 96 .data = &init_net.ipv6.sysctl.fwmark_reflect, 103 .data = &init_net.ipv6 [all...] |
H A D | Makefile | 6 obj-$(CONFIG_IPV6) += ipv6.o 8 ipv6-y := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \ 15 ipv6-$(CONFIG_SYSCTL) += sysctl_net_ipv6.o 16 ipv6-$(CONFIG_IPV6_MROUTE) += ip6mr.o 18 ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ 20 ipv6-$(CONFIG_NETFILTER) += netfilter.o 21 ipv6-$(CONFIG_IPV6_MULTIPLE_TABLES) += fib6_rules.o 22 ipv6-$(CONFIG_PROC_FS) += proc.o 23 ipv6-$(CONFIG_SYN_COOKIES) += syncookies.o 24 ipv6 [all...] |
H A D | fib6_rules.c | 3 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules 20 #include <net/ipv6.h> 69 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup() 79 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup() 82 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup() 84 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() 85 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup() 96 if (net->ipv6.fib6_has_custom_rules) { in fib6_rule_lookup() 108 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup() 117 net, net->ipv6 in fib6_rule_lookup() [all...] |
H A D | ip6_fib.c | 30 #include <net/ipv6.h> 76 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh) 80 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() 81 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link() 82 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() 87 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink() 89 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink() 94 int new, old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum() 98 } while (!atomic_try_cmpxchg(&net->ipv6.fib6_sernum, &old, new)); in fib6_new_sernum() 188 net->ipv6 in node_alloc() [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | sysctl_net_ipv6.c | 12 #include <linux/ipv6.h> 16 #include <net/ipv6.h> 36 ipv6.sysctl.multipath_hash_policy); in proc_rt6_multipath_hash_policy() 47 .data = &init_net.ipv6.sysctl.bindv6only, 54 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply, 61 .data = &init_net.ipv6.sysctl.flowlabel_consistency, 68 .data = &init_net.ipv6.sysctl.auto_flowlabels, 77 .data = &init_net.ipv6.sysctl.fwmark_reflect, 84 .data = &init_net.ipv6.sysctl.idgen_retries, 91 .data = &init_net.ipv6 [all...] |
H A D | Makefile | 6 obj-$(CONFIG_IPV6) += ipv6.o 8 ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \ 15 ipv6-offload := ip6_offload.o tcpv6_offload.o exthdrs_offload.o 17 ipv6-$(CONFIG_SYSCTL) = sysctl_net_ipv6.o 18 ipv6-$(CONFIG_IPV6_MROUTE) += ip6mr.o 20 ipv6-$(CONFIG_XFRM) += xfrm6_policy.o xfrm6_state.o xfrm6_input.o \ 22 ipv6-$(CONFIG_NETFILTER) += netfilter.o 23 ipv6-$(CONFIG_IPV6_MULTIPLE_TABLES) += fib6_rules.o 24 ipv6-$(CONFIG_PROC_FS) += proc.o 25 ipv6 [all...] |
H A D | fib6_rules.c | 3 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules 19 #include <net/ipv6.h> 68 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup() 78 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup() 81 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup() 83 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() 84 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup() 95 if (net->ipv6.fib6_has_custom_rules) { in fib6_rule_lookup() 107 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup() 116 net, net->ipv6 in fib6_rule_lookup() [all...] |
H A D | ip6_fib.c | 29 #include <net/ipv6.h> 74 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh) 78 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() 79 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link() 80 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() 85 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink() 87 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink() 95 old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum() 97 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum() 187 net->ipv6 in node_alloc() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | ipv6_address_test.cpp | 42 * @tc.desc: Create(std::string ipv6) 49 std::string ipv6 = "1111:1111:1111:1111:%"; in HWTEST_F() local 50 EXPECT_TRUE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 51 ipv6 = "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"; in HWTEST_F() 52 EXPECT_TRUE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 53 ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111/8"; in HWTEST_F() 54 EXPECT_FALSE(Ipv6Address::Create(ipv6) == Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 114 * @tc.desc: Create(std::string ipv6, const size_t prefixLength) 121 std::string ipv6 = "1111:1111:1111:1111:%"; in HWTEST_F() local 123 EXPECT_TRUE(Ipv6Address::Create(ipv6, prefixLengt in HWTEST_F() 138 std::string ipv6 = "1111:1111:1111:1111:%"; HWTEST_F() local 153 std::string ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111"; HWTEST_F() local 166 std::string ipv6 = "1111:1111:1111:1111:1111:1111:1111:1111"; HWTEST_F() local 180 std::string ipv6 = "0101:0101:0101:0101:0101:0101:0101:0101"; HWTEST_F() local 181 EXPECT_EQ(Ipv6Address::GetPrefixByAddr(ipv6, prefixLength), ipv6); HWTEST_F() local [all...] |
H A D | dhcpd_interface_test.cpp | 50 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in StartDhcpServerTest() 51 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV4); in StartDhcpServerTest() 95 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 96 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV4); in HWTEST_F() 110 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 112 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, ipAddress, isIpV4); in HWTEST_F() 126 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 128 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, ipAddress, isIpV4); in HWTEST_F() 142 Ipv6Address ipv6(Ipv6Address::INVALID_INET6_ADDRESS); in HWTEST_F() 143 pDhcpdInterface->StartDhcpServerFromInterface(ifaceName, ipv4, ipv6, "", isIpV in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | connect6_prog.c | 37 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog() 38 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog() 40 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog() 41 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog() 42 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog() 43 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog() 45 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog() 50 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() [all...] |
H A D | test_cls_redirect.c | 15 #include <linux/ipv6.h> 95 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 96 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 279 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers() 292 .next = ipv6->nexthdr, in pkt_skip_ipv6_extension_headers() 350 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6() local 351 if (ipv6 == NULL) { in pkt_parse_ipv6() 355 if (!pkt_skip_ipv6_extension_headers(pkt, ipv6, proto, is_fragment)) { in pkt_parse_ipv6() 359 return ipv6; in pkt_parse_ipv6() 278 pkt_skip_ipv6_extension_headers(buf_t *pkt, const struct ipv6hdr *ipv6, uint8_t *upper_proto, bool *is_fragment) pkt_skip_ipv6_extension_headers() argument 625 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; fill_tuple() local 781 const struct ipv6hdr *ipv6 = process_icmpv6() local 891 struct ipv6hdr *ipv6 = process_ipv6() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | connect6_prog.c | 35 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog() 36 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog() 38 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog() 39 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog() 40 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog() 41 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog() 43 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog() 48 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() [all...] |
H A D | xdp_synproxy_kern.c | 309 __u8 *ttl, bool ipv6) in values_get_tcpipopts() 316 if (ipv6) in values_get_tcpipopts() 325 *mss = ipv6 ? DEFAULT_MSS6 : DEFAULT_MSS4; in values_get_tcpipopts() 368 struct ipv6hdr *ipv6; member 382 hdr->ipv6 = NULL; in tcp_dissect() 400 hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth); in tcp_dissect() 401 if (hdr->ipv6 + 1 > data_end) in tcp_dissect() 403 if (hdr->ipv6->version != 6) in tcp_dissect() 409 if (hdr->ipv6->nexthdr != NEXTHDR_TCP) in tcp_dissect() 412 hdr->tcp = (void *)hdr->ipv6 in tcp_dissect() 308 values_get_tcpipopts(__u16 *mss, __u8 *wscale, __u8 *ttl, bool ipv6) values_get_tcpipopts() argument [all...] |
H A D | test_cls_redirect.c | 15 #include <linux/ipv6.h> 96 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 97 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 280 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers() 293 .next = ipv6->nexthdr, in pkt_skip_ipv6_extension_headers() 351 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6() local 352 if (ipv6 == NULL) { in pkt_parse_ipv6() 356 if (!pkt_skip_ipv6_extension_headers(pkt, ipv6, proto, is_fragment)) { in pkt_parse_ipv6() 360 return ipv6; in pkt_parse_ipv6() 279 pkt_skip_ipv6_extension_headers(buf_t *pkt, const struct ipv6hdr *ipv6, uint8_t *upper_proto, bool *is_fragment) pkt_skip_ipv6_extension_headers() argument 632 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; fill_tuple() local 788 const struct ipv6hdr *ipv6 = process_icmpv6() local 898 struct ipv6hdr *ipv6 = process_ipv6() local [all...] |
H A D | test_cls_redirect_dynptr.c | 15 #include <linux/ipv6.h> 91 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 92 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 186 const struct ipv6hdr *ipv6, uint8_t *upper_proto, in pkt_skip_ipv6_extension_headers() 198 .next = ipv6->nexthdr, in pkt_skip_ipv6_extension_headers() 242 static int pkt_parse_ipv6(struct bpf_dynptr *dynptr, __u64 *offset, struct ipv6hdr *ipv6, in pkt_parse_ipv6() argument 245 if (bpf_dynptr_read(ipv6, sizeof(*ipv6), dynptr, *offset, 0)) in pkt_parse_ipv6() 248 *offset += sizeof(*ipv6); in pkt_parse_ipv6() 250 if (!pkt_skip_ipv6_extension_headers(dynptr, offset, ipv6, prot in pkt_parse_ipv6() 185 pkt_skip_ipv6_extension_headers(struct bpf_dynptr *dynptr, __u64 *offset, const struct ipv6hdr *ipv6, uint8_t *upper_proto, bool *is_fragment) pkt_skip_ipv6_extension_headers() argument 523 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; fill_tuple() local 656 struct ipv6hdr ipv6; process_icmpv6() local 791 struct ipv6hdr ipv6; process_ipv6() local [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/ |
H A D | ipv6_address.cpp | 40 bool Ipv6Address::IsValidIPv6(const std::string &ipv6) in IsValidIPv6() argument 43 if (inet_pton(AF_INET6, ipv6.c_str(), &ipv6Addr) != 1 || in IsValidIPv6() 44 ipv6 == INVALID_INET6_ADDRESS.GetAddressWithString()) { in IsValidIPv6() 56 Ipv6Address Ipv6Address::Create(std::string ipv6) in Create() argument 58 std::transform(ipv6.begin(), ipv6.end(), ipv6.begin(), ::tolower); in Create() 59 std::size_t index = ipv6.find("/"); in Create() 64 ip = ipv6; in Create() 67 ip = std::string(ipv6 in Create() 89 struct in6_addr ipv6 = GetIpv6Prefix(ipv6Buf, prefixLength); Create() local 120 Create(std::string ipv6, const size_t prefixLength) Create() argument 129 Create(std::string ipv6, const std::string &mask) Create() argument 161 Ipv6Address(const std::string &ipv6, const size_t prefixLength) Ipv6Address() argument [all...] |
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A D | ip6table_nat.c | 13 #include <linux/ipv6.h> 14 #include <net/ipv6.h> 35 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat); in ip6table_nat_do_chain() 95 if (net->ipv6.ip6table_nat) in ip6table_nat_table_init() 102 NULL, &net->ipv6.ip6table_nat); in ip6table_nat_table_init() 110 ip6t_unregister_table(net, net->ipv6.ip6table_nat, NULL); in ip6table_nat_table_init() 111 net->ipv6.ip6table_nat = NULL; in ip6table_nat_table_init() 119 if (net->ipv6.ip6table_nat) in ip6table_nat_net_pre_exit() 125 if (!net->ipv6.ip6table_nat) in ip6table_nat_net_exit() 127 ip6t_unregister_table_exit(net, net->ipv6 in ip6table_nat_net_exit() [all...] |
H A D | ip6table_mangle.c | 11 #include <net/ipv6.h> 52 ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6t_mangle_out() 75 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook() 84 if (net->ipv6.ip6table_mangle) in ip6table_mangle_table_init() 91 &net->ipv6.ip6table_mangle); in ip6table_mangle_table_init() 98 if (net->ipv6.ip6table_mangle) in ip6table_mangle_net_pre_exit() 99 ip6t_unregister_table_pre_exit(net, net->ipv6.ip6table_mangle, in ip6table_mangle_net_pre_exit() 105 if (!net->ipv6.ip6table_mangle) in ip6table_mangle_net_exit() 108 ip6t_unregister_table_exit(net, net->ipv6.ip6table_mangle); in ip6table_mangle_net_exit() 109 net->ipv6 in ip6table_mangle_net_exit() [all...] |
H A D | ip6table_security.c | 42 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_security); in ip6table_security_hook() 52 if (net->ipv6.ip6table_security) in ip6table_security_table_init() 59 &net->ipv6.ip6table_security); in ip6table_security_table_init() 66 if (net->ipv6.ip6table_security) in ip6table_security_net_pre_exit() 67 ip6t_unregister_table_pre_exit(net, net->ipv6.ip6table_security, in ip6table_security_net_pre_exit() 73 if (!net->ipv6.ip6table_security) in ip6table_security_net_exit() 75 ip6t_unregister_table_exit(net, net->ipv6.ip6table_security); in ip6table_security_net_exit() 76 net->ipv6.ip6table_security = NULL; in ip6table_security_net_exit()
|
H A D | ip6table_filter.c | 38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter); in ip6table_filter_hook() 52 if (net->ipv6.ip6table_filter) in ip6table_filter_table_init() 63 &net->ipv6.ip6table_filter); in ip6table_filter_table_init() 78 if (net->ipv6.ip6table_filter) in ip6table_filter_net_pre_exit() 79 ip6t_unregister_table_pre_exit(net, net->ipv6.ip6table_filter, in ip6table_filter_net_pre_exit() 85 if (!net->ipv6.ip6table_filter) in ip6table_filter_net_exit() 87 ip6t_unregister_table_exit(net, net->ipv6.ip6table_filter); in ip6table_filter_net_exit() 88 net->ipv6.ip6table_filter = NULL; in ip6table_filter_net_exit()
|
H A D | ip6table_raw.c | 43 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw); in ip6table_raw_hook() 57 if (net->ipv6.ip6table_raw) in ip6table_raw_table_init() 64 &net->ipv6.ip6table_raw); in ip6table_raw_table_init() 71 if (net->ipv6.ip6table_raw) in ip6table_raw_net_pre_exit() 72 ip6t_unregister_table_pre_exit(net, net->ipv6.ip6table_raw, in ip6table_raw_net_pre_exit() 78 if (!net->ipv6.ip6table_raw) in ip6table_raw_net_exit() 80 ip6t_unregister_table_exit(net, net->ipv6.ip6table_raw); in ip6table_raw_net_exit() 81 net->ipv6.ip6table_raw = NULL; in ip6table_raw_net_exit()
|
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/ |
H A D | net_address.cpp | 46 in6_addr ipv6{}; in SetIpAddress() 47 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetIpAddress() 64 in6_addr ipv6{}; in SetIpAddress() 65 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetIpAddress() 90 in6_addr ipv6{}; in SetIpAddressInner() 91 if (inet_pton(AF_INET6, subAddr.c_str(), &ipv6) > 0) { in SetIpAddressInner() 112 struct in6_addr ipv6; in SetAddress() local 113 if (inet_pton(AF_INET6, address.c_str(), &ipv6) > 0) { in SetAddress() 138 struct sockaddr_in6 *ipv6 = reinterpret_cast<struct sockaddr_in6 *>(res->ai_addr); in SetAddress() local 139 addr = &(ipv6 in SetAddress() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 12 bool ipv6; member 48 mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6) in mtk_print_addr() argument 53 if (!ipv6) { in mtk_print_addr() 66 mtk_print_addr(m, ai->src, ai->ipv6); in mtk_print_addr_info() 70 mtk_print_addr(m, ai->dest, ai->ipv6); in mtk_print_addr_info() 117 ai.src_port = &entry->ipv6.src_port; in mtk_ppe_debugfs_foe_show() 118 ai.dest_port = &entry->ipv6.dest_port; in mtk_ppe_debugfs_foe_show() 122 ai.src = &entry->ipv6.src_ip; in mtk_ppe_debugfs_foe_show() 123 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show() 124 ai.ipv6 in mtk_ppe_debugfs_foe_show() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | ip_check_defrag.c | 41 static int setup_topology(bool ipv6) in setup_topology() argument 49 if (ipv6) { in setup_topology() 61 if (ipv6) in setup_topology() 81 static int attach(struct ip_check_defrag *skel, bool ipv6) in attach() argument 84 .pf = ipv6 ? NFPROTO_IPV6 : NFPROTO_IPV4, in attach() 137 /* Port needs to be set to 0 for raw ipv6 socket for some reason */ in send_frags6() 157 void test_bpf_ip_check_defrag_ok(bool ipv6) in test_bpf_ip_check_defrag_ok() argument 183 if (!ASSERT_OK(setup_topology(ipv6), "setup_topology")) in test_bpf_ip_check_defrag_ok() 186 if (!ASSERT_OK(attach(skel, ipv6), "attach")) in test_bpf_ip_check_defrag_ok() 193 srv_fd = start_server(ipv6 in test_bpf_ip_check_defrag_ok() [all...] |