Home
last modified time | relevance | path

Searched refs:ipv6 (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/linux-5.19.10/net/ipv6/
Dsysctl_net_ipv6.c40 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.sysctl.idgen_retries,
110 .data = &init_net.ipv6.sysctl.idgen_delay,
117 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
[all …]
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-$(CONFIG_NETLABEL) += calipso.o
[all …]
Dfib6_rules.c69 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.fib6_local_tbl, fl6, skb, flags); in fib6_rule_lookup()
118 if (rt != net->ipv6.ip6_null_entry && rt->dst.error != -EAGAIN) in fib6_rule_lookup()
122 net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup()
[all …]
Dip6_fib.c76 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()
97 old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum()
99 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum()
189 net->ipv6.rt6_stats->fib_nodes++; in node_alloc()
197 net->ipv6.rt6_stats->fib_nodes--; in node_free_immediate()
[all …]
Daddrlabel.c133 hlist_for_each_entry_rcu(p, &net->ipv6.ip6addrlbl_table.head, list) { in __ipv6_addr_label()
213 hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) { in __ip6addrlbl_add()
234 hlist_add_head_rcu(&newp->list, &net->ipv6.ip6addrlbl_table.head); in __ip6addrlbl_add()
237 net->ipv6.ip6addrlbl_table.seq++; in __ip6addrlbl_add()
256 spin_lock(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_add()
258 spin_unlock(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_add()
276 hlist_for_each_entry_safe(p, n, &net->ipv6.ip6addrlbl_table.head, list) { in __ip6addrlbl_del()
300 spin_lock(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_del()
302 spin_unlock(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_del()
316 spin_lock_init(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_net_init()
[all …]
Dreassembly.c99 q = inet_frag_find(net->ipv6.fqdir, &key); in fq_find()
462 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
463 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
464 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
465 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
466 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register()
472 net->ipv6.sysctl.frags_hdr = hdr; in ip6_frags_ns_sysctl_register()
486 table = net->ipv6.sysctl.frags_hdr->ctl_table_arg; in ip6_frags_ns_sysctl_unregister()
487 unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr); in ip6_frags_ns_sysctl_unregister()
529 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net()
[all …]
Droute.c344 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
349 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
565 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
579 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
874 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
913 res->f6i = net->ipv6.fib6_null_entry; in rt6_select()
1166 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
1197 nrt = dev_net(dev)->ipv6.ip6_null_entry; in ip6_create_rt_rcu()
1217 res.f6i = net->ipv6.fib6_null_entry; in ip6_pol_route_lookup()
1222 if (res.f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route_lookup()
[all …]
Daf_inet6.c216 np->repflow = net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ESTABLISHED; in inet6_create()
217 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create()
951 net->ipv6.sysctl.bindv6only = 0; in inet6_net_init()
952 net->ipv6.sysctl.icmpv6_time = 1*HZ; in inet6_net_init()
953 net->ipv6.sysctl.icmpv6_echo_ignore_all = 0; in inet6_net_init()
954 net->ipv6.sysctl.icmpv6_echo_ignore_multicast = 0; in inet6_net_init()
955 net->ipv6.sysctl.icmpv6_echo_ignore_anycast = 0; in inet6_net_init()
961 bitmap_set(net->ipv6.sysctl.icmpv6_ratemask, 0, ICMPV6_ERRMSG_MAX + 1); in inet6_net_init()
962 bitmap_clear(net->ipv6.sysctl.icmpv6_ratemask, ICMPV6_PKT_TOOBIG, 1); in inet6_net_init()
963 net->ipv6.sysctl.icmpv6_ratemask_ptr = net->ipv6.sysctl.icmpv6_ratemask; in inet6_net_init()
[all …]
/linux-5.19.10/tools/testing/selftests/bpf/progs/
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()
51 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
57 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog()
[all …]
Dtest_cls_redirect.c96 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() argument
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()
632 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple() local
633 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple()
[all …]
Dtest_tcp_check_syncookie_kern.c109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr)); in check_syncookie()
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr)); in check_syncookie()
111 tup.ipv6.sport = tcph->source; in check_syncookie()
112 tup.ipv6.dport = tcph->dest; in check_syncookie()
114 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv6), in check_syncookie()
Dcgroup_skb_sk_lookup_kern.c33 set_ip(tuple->ipv6.saddr, &ip6h->daddr); in set_tuple()
34 set_ip(tuple->ipv6.daddr, &ip6h->saddr); in set_tuple()
35 tuple->ipv6.sport = tcph->dest; in set_tuple()
36 tuple->ipv6.dport = tcph->source; in set_tuple()
45 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg()
/linux-5.19.10/drivers/net/ethernet/mediatek/
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()
114 ai.src_port = &entry->ipv6.src_port; in mtk_ppe_debugfs_foe_show()
115 ai.dest_port = &entry->ipv6.dest_port; in mtk_ppe_debugfs_foe_show()
119 ai.src = &entry->ipv6.src_ip; in mtk_ppe_debugfs_foe_show()
120 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show()
121 ai.ipv6 = true; in mtk_ppe_debugfs_foe_show()
[all …]
Dmtk_ppe.c105 hv1 = e->ipv6.src_ip[3] ^ e->ipv6.dest_ip[3]; in mtk_ppe_hash_entry()
106 hv1 ^= e->ipv6.ports; in mtk_ppe_hash_entry()
108 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry()
109 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry()
111 hv3 = e->ipv6.src_ip[1] ^ e->ipv6.dest_ip[1]; in mtk_ppe_hash_entry()
112 hv3 ^= e->ipv6.src_ip[0]; in mtk_ppe_hash_entry()
140 return &entry->ipv6.l2; in mtk_foe_entry_l2()
154 return &entry->ipv6.ib2; in mtk_foe_entry_ib2()
185 entry->ipv6.ports = ports_pad; in mtk_foe_entry_prepare()
193 entry->ipv6.ib2 = val; in mtk_foe_entry_prepare()
[all …]
/linux-5.19.10/tools/testing/selftests/net/
Dip_defrag.c135 int offset, bool ipv6) in send_fragment() argument
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() argument
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()
[all …]
Dioam6.sh311 ip netns exec ioam-node-alpha sysctl -wq net.ipv6.ioam6_id=${ALPHA[0]}
312 ip netns exec ioam-node-alpha sysctl -wq net.ipv6.ioam6_id_wide=${ALPHA[1]}
313 ip netns exec ioam-node-alpha sysctl -wq net.ipv6.conf.veth0.ioam6_id=${ALPHA[4]}
314 ip netns exec ioam-node-alpha sysctl -wq net.ipv6.conf.veth0.ioam6_id_wide=${ALPHA[5]}
319 ip netns exec ioam-node-beta sysctl -wq net.ipv6.conf.all.forwarding=1
320 ip netns exec ioam-node-beta sysctl -wq net.ipv6.ioam6_id=${BETA[0]}
321 ip netns exec ioam-node-beta sysctl -wq net.ipv6.ioam6_id_wide=${BETA[1]}
322 ip netns exec ioam-node-beta sysctl -wq net.ipv6.conf.veth0.ioam6_enabled=1
323 ip netns exec ioam-node-beta sysctl -wq net.ipv6.conf.veth0.ioam6_id=${BETA[2]}
324 ip netns exec ioam-node-beta sysctl -wq net.ipv6.conf.veth0.ioam6_id_wide=${BETA[3]}
[all …]
Dreuseaddr_conflict.c21 int open_port(int ipv6, int any) in open_port() argument
29 int family = ipv6 ? AF_INET6 : AF_INET; in open_port()
43 if (ipv6) { in open_port()
56 if (ipv6 && setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&v6only, in open_port()
Dip_defrag.sh21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1
22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1
23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
30 ip netns exec "${NETNS}" sysctl -w net.ipv6.route.max_size=65536 >/dev/null 2>&1
/linux-5.19.10/tools/testing/selftests/net/forwarding/
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.fib_multipath_hash_fields 0x0200
[all …]
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.neigh.default.gc_thresh3
[all …]
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dport_sel.c112 u8 *ipv6; in mlx5_lag_set_definer_inner() local
151 ipv6 = MLX5_ADDR_OF(match_definer_format_31, match_definer_mask, in mlx5_lag_set_definer_inner()
153 memset(ipv6, 0xff, 16); in mlx5_lag_set_definer_inner()
154 ipv6 = MLX5_ADDR_OF(match_definer_format_31, match_definer_mask, in mlx5_lag_set_definer_inner()
156 memset(ipv6, 0xff, 16); in mlx5_lag_set_definer_inner()
160 ipv6 = MLX5_ADDR_OF(match_definer_format_32, match_definer_mask, in mlx5_lag_set_definer_inner()
162 memset(ipv6, 0xff, 16); in mlx5_lag_set_definer_inner()
163 ipv6 = MLX5_ADDR_OF(match_definer_format_32, match_definer_mask, in mlx5_lag_set_definer_inner()
165 memset(ipv6, 0xff, 16); in mlx5_lag_set_definer_inner()
198 u8 *ipv6; in mlx5_lag_set_definer() local
[all …]
/linux-5.19.10/net/netfilter/
Dnf_conntrack_bpf.c81 case sizeof(bpf_tuple->ipv6): in __bpf_nf_ct_lookup()
83 memcpy(tuple.src.u3.ip6, bpf_tuple->ipv6.saddr, sizeof(bpf_tuple->ipv6.saddr)); in __bpf_nf_ct_lookup()
84 tuple.src.u.tcp.port = bpf_tuple->ipv6.sport; in __bpf_nf_ct_lookup()
85 memcpy(tuple.dst.u3.ip6, bpf_tuple->ipv6.daddr, sizeof(bpf_tuple->ipv6.daddr)); in __bpf_nf_ct_lookup()
86 tuple.dst.u.tcp.port = bpf_tuple->ipv6.dport; in __bpf_nf_ct_lookup()
/linux-5.19.10/tools/testing/selftests/drivers/net/mlxsw/
Drif_mac_profile_scale.sh56 sysctl_set net.ipv6.conf.$h1.disable_ipv6 1
57 sysctl_set net.ipv6.conf.$h2.disable_ipv6 1
70 sysctl_restore net.ipv6.conf.$h2.disable_ipv6
71 sysctl_restore net.ipv6.conf.$h1.disable_ipv6
Done_armed_router.sh177 tc filter add dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower \
181 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \
185 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \
213 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower
214 tc filter del dev $swp2 egress protocol ipv6 pref 1 handle 101 flower
215 tc filter del dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower
230 sysctl_set net.ipv6.conf.all.accept_redirects 0
245 sysctl_restore net.ipv6.conf.all.accept_redirects
/linux-5.19.10/Documentation/security/
DSCTP.rst36 Passes one or more ipv4/ipv6 addresses to the security module for validation
44 @address - One or more ipv4 / ipv6 addresses.
46 ipv4 or ipv6 address using sizeof(struct sockaddr_in) or
53 | SCTP_SOCKOPT_BINDX_ADD | One or more ipv4 / ipv6 addresses |
54 | SCTP_PRIMARY_ADDR | Single ipv4 or ipv6 address |
55 | SCTP_SET_PEER_PRIMARY_ADDR | Single ipv4 or ipv6 address |
62 | SCTP_SOCKOPT_CONNECTX | One or more ipv4 / ipv6 addresses |
63 | SCTP_PARAM_ADD_IP | One or more ipv4 / ipv6 addresses |
64 | SCTP_SENDMSG_CONNECT | Single ipv4 or ipv6 address |
65 | SCTP_PARAM_SET_PRIMARY | Single ipv4 or ipv6 address |
[all …]

12345678910>>...13