Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.10/net/ipv6/
Dsysctl_net_ipv6.c36 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.sysctl.idgen_delay,
98 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
105 .data = &init_net.ipv6.sysctl.ip_nonlocal_bind,
[all …]
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-$(CONFIG_SYN_COOKIES) += syncookies.o
[all …]
Dfib6_rules.c68 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.fib6_local_tbl, fl6, skb, flags); in fib6_rule_lookup()
117 if (rt != net->ipv6.ip6_null_entry && rt->dst.error != -EAGAIN) in fib6_rule_lookup()
121 net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup()
[all …]
Dip6_fib.c74 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.rt6_stats->fib_nodes++; in node_alloc()
195 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()
459 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
460 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
461 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
462 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
463 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register()
469 net->ipv6.sysctl.frags_hdr = hdr; in ip6_frags_ns_sysctl_register()
483 table = net->ipv6.sysctl.frags_hdr->ctl_table_arg; in ip6_frags_ns_sysctl_unregister()
484 unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr); in ip6_frags_ns_sysctl_unregister()
526 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net()
[all …]
Droute.c153 atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache); in rt6_uncached_list_del()
356 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
361 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
578 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
592 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
886 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
925 res->f6i = net->ipv6.fib6_null_entry; in rt6_select()
1178 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
1209 nrt = dev_net(dev)->ipv6.ip6_null_entry; in ip6_create_rt_rcu()
1232 res.f6i = net->ipv6.fib6_null_entry; in ip6_pol_route_lookup()
[all …]
Dicmp.c80 return this_cpu_read(*net->ipv6.icmp_sk); in icmpv6_sk()
179 if (!test_bit(type, net->ipv6.sysctl.icmpv6_ratemask)) in icmpv6_mask_allow()
222 int tmo = net->ipv6.sysctl.icmpv6_time; in icmpv6_xrlim_allow()
229 peer = inet_getpeer_v6(net->ipv6.peers, &fl6->daddr, 1); in icmpv6_xrlim_allow()
730 net->ipv6.sysctl.icmpv6_echo_ignore_multicast) in icmpv6_echo_reply()
736 if (acast && net->ipv6.sysctl.icmpv6_echo_ignore_anycast) in icmpv6_echo_reply()
740 !(net->ipv6.sysctl.anycast_src_echo_reply && acast)) in icmpv6_echo_reply()
747 if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES) in icmpv6_echo_reply()
911 if (!net->ipv6.sysctl.icmpv6_echo_ignore_all) in icmpv6_rcv()
1019 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv6.icmp_sk, i)); in icmpv6_sk_exit()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/progs/
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()
53 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog()
59 if (sk->src_ip6[0] != tuple.ipv6.daddr[0] || in connect_v6_prog()
[all …]
Dtest_cls_redirect.c95 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() argument
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()
625 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple() local
626 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.c34 set_ip(tuple->ipv6.saddr, &ip6h->daddr); in set_tuple()
35 set_ip(tuple->ipv6.daddr, &ip6h->saddr); in set_tuple()
36 tuple->ipv6.sport = tcph->dest; in set_tuple()
37 tuple->ipv6.dport = tcph->source; in set_tuple()
46 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg()
/Linux-v5.10/net/ipv6/netfilter/
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()
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()
Dip6table_nat.c35 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.ip6table_nat); in ip6table_nat_net_exit()
128 net->ipv6.ip6table_nat = NULL; in ip6table_nat_net_exit()
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()
Dip6table_mangle.c52 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.ip6table_mangle = NULL; in ip6table_mangle_net_exit()
/Linux-v5.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 …]
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-v5.10/drivers/infiniband/core/
Duverbs_std_types_flow_action.c130 const struct ib_uverbs_flow_ipv6_filter ipv6 = { in parse_esp_ip() local
142 struct ib_uverbs_flow_ipv6_filter ipv6; in parse_esp_ip() member
153 sizeof(ipv6.reserved) != sizeof(ipv6)); in parse_esp_ip()
171 if (len > sizeof(user_val.ipv6) && in parse_esp_ip()
172 !ib_is_buffer_cleared(val_ptr + sizeof(user_val.ipv6), in parse_esp_ip()
173 len - sizeof(user_val.ipv6))) in parse_esp_ip()
176 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip()
177 ret = copy_from_user(&user_val.ipv6, val_ptr, in parse_esp_ip()
182 user_pmask = &ipv6; in parse_esp_ip()
/Linux-v5.10/Documentation/security/
DSCTP.rst39 Passes one or more ipv4/ipv6 addresses to the security module for validation
47 @address - One or more ipv4 / ipv6 addresses.
49 ipv4 or ipv6 address using sizeof(struct sockaddr_in) or
56 | SCTP_SOCKOPT_BINDX_ADD | One or more ipv4 / ipv6 addresses |
57 | SCTP_PRIMARY_ADDR | Single ipv4 or ipv6 address |
58 | SCTP_SET_PEER_PRIMARY_ADDR | Single ipv4 or ipv6 address |
65 | SCTP_SOCKOPT_CONNECTX | One or more ipv4 / ipv6 addresses |
66 | SCTP_PARAM_ADD_IP | One or more ipv4 / ipv6 addresses |
67 | SCTP_SENDMSG_CONNECT | Single ipv4 or ipv6 address |
68 | SCTP_PARAM_SET_PRIMARY | Single ipv4 or ipv6 address |
[all …]
/Linux-v5.10/tools/testing/selftests/drivers/net/mlxsw/
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-v5.10/arch/um/drivers/
Dvector_transports.c34 bool ipv6; member
55 bool ipv6; member
137 if ((!td->udp) && (!td->ipv6)) in l2tpv3_verify_header()
172 if (!td->ipv6) in gre_verify_header()
264 td->ipv6 = false; in build_gre_transport_data()
267 td->ipv6 = true; in build_gre_transport_data()
297 if (!td->ipv6) in build_gre_transport_data()
328 td->ipv6 = false; in build_l2tpv3_transport_data()
331 td->ipv6 = true; in build_l2tpv3_transport_data()
394 if ((!td->ipv6) && (!td->udp)) in build_l2tpv3_transport_data()
/Linux-v5.10/tools/testing/selftests/net/forwarding/
Drouter_multicast.sh280 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 122 flower \
282 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 133 flower \
306 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 133 flower
307 tc filter del dev $h2 ingress protocol ipv6 pref 1 handle 122 flower
368 tc filter add dev $h1 ingress protocol ipv6 pref 1 handle 1 flower \
370 tc filter add dev $h2 ingress protocol ipv6 pref 1 handle 1 flower \
372 tc filter add dev $h3 ingress protocol ipv6 pref 1 handle 1 flower \
374 tc filter add dev $rp3 ingress protocol ipv6 pref 1 handle 1 flower \
401 tc filter del dev $rp3 ingress protocol ipv6 pref 1 handle 1 flower
402 tc filter del dev $h3 ingress protocol ipv6 pref 1 handle 1 flower
[all …]

1234567891011