Home
last modified time | relevance | path

Searched refs:ipv6 (Results 1 - 25 of 1359) sorted by relevance

12345678910>>...55

/kernel/linux/linux-6.6/net/ipv6/
H A Dsysctl_net_ipv6.c12 #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 DMakefile6 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 Dfib6_rules.c3 * 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 Dip6_fib.c30 #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 Dsysctl_net_ipv6.c12 #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 DMakefile6 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 Dfib6_rules.c3 * 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 Dip6_fib.c29 #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...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dconnect6_prog.c37 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 Dtest_cls_redirect.c15 #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 Dconnect6_prog.c35 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 Dxdp_synproxy_kern.c309 __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 Dtest_cls_redirect.c15 #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 Dtest_cls_redirect_dynptr.c15 #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...]
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dip6table_nat.c13 #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 Dip6table_mangle.c11 #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 Dip6table_security.c42 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 Dip6table_filter.c38 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 Dip6table_raw.c43 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c12 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 Dip_check_defrag.c41 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...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dcustom_multipath_hash.sh319 sysctl_set net.ipv6.fib_multipath_hash_policy 3
323 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
324 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
325 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024
327 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0001
331 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0002
335 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0008
339 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0010
343 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0020
347 sysctl_restore net.ipv6
[all...]
H A Dip6gre_custom_multipath_hash.sh387 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0040
391 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0080
395 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0400
399 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0800
414 sysctl_set net.ipv6.neigh.default.gc_thresh1 1024
415 sysctl_set net.ipv6.neigh.default.gc_thresh2 1024
416 sysctl_set net.ipv6.neigh.default.gc_thresh3 1024
418 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0040
422 sysctl_set net.ipv6.fib_multipath_hash_fields 0x0080
426 sysctl_set net.ipv6
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dip_defrag.c135 int offset, bool ipv6) in send_fragment()
140 uint8_t *frag_start = ipv6 ? ip_frame + IP6_HLEN + FRAG_HLEN : in send_fragment()
149 if (ipv6) in send_fragment()
156 if (ipv6) { in send_fragment()
204 socklen_t alen, bool ipv6) in send_udp_frags()
219 if (ipv6) { in send_udp_frags()
248 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
259 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
264 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
269 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
134 send_fragment(int fd_raw, struct sockaddr *addr, socklen_t alen, int offset, bool ipv6) send_fragment() argument
203 send_udp_frags(int fd_raw, struct sockaddr *addr, socklen_t alen, bool ipv6) send_udp_frags() argument
334 run_test(struct sockaddr *addr, socklen_t alen, bool ipv6) run_test() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dip_defrag.c135 int offset, bool ipv6) in send_fragment()
140 uint8_t *frag_start = ipv6 ? ip_frame + IP6_HLEN + FRAG_HLEN : in send_fragment()
149 if (ipv6) in send_fragment()
156 if (ipv6) { in send_fragment()
204 socklen_t alen, bool ipv6) in send_udp_frags()
219 if (ipv6) { in send_udp_frags()
248 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
259 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
264 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
269 send_fragment(fd_raw, addr, alen, offset, ipv6); in send_udp_frags()
134 send_fragment(int fd_raw, struct sockaddr *addr, socklen_t alen, int offset, bool ipv6) send_fragment() argument
203 send_udp_frags(int fd_raw, struct sockaddr *addr, socklen_t alen, bool ipv6) send_udp_frags() argument
334 run_test(struct sockaddr *addr, socklen_t alen, bool ipv6) run_test() argument
[all...]

Completed in 14 milliseconds

12345678910>>...55