Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/net/ipv6/
Dsysctl_net_ipv6.c37 ipv6.sysctl.multipath_hash_policy); in proc_rt6_multipath_hash_policy()
48 .data = &init_net.ipv6.sysctl.bindv6only,
55 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply,
62 .data = &init_net.ipv6.sysctl.flowlabel_consistency,
69 .data = &init_net.ipv6.sysctl.auto_flowlabels,
78 .data = &init_net.ipv6.sysctl.fwmark_reflect,
85 .data = &init_net.ipv6.sysctl.idgen_retries,
92 .data = &init_net.ipv6.sysctl.idgen_delay,
99 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
106 .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.c70 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup()
79 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup()
84 f6i = arg.result ? : net->ipv6.fib6_null_entry; in fib6_lookup()
86 f6i = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, in fib6_lookup()
88 if (!f6i || f6i == net->ipv6.fib6_null_entry) in fib6_lookup()
89 f6i = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup()
100 if (net->ipv6.fib6_has_custom_rules) { in fib6_rule_lookup()
110 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup()
118 rt = lookup(net, net->ipv6.fib6_local_tbl, fl6, skb, flags); in fib6_rule_lookup()
119 if (rt != net->ipv6.ip6_null_entry && rt->dst.error != -EAGAIN) 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()
222 net->ipv6.rt6_stats->fib_nodes++; in node_alloc()
230 net->ipv6.rt6_stats->fib_nodes--; in node_free_immediate()
[all …]
Dreassembly.c82 net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_expire()
103 q = inet_frag_find(&net->ipv6.frags, &key); in fq_find()
282 struct net *net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_reasm()
506 .data = &init_net.ipv6.frags.high_thresh,
510 .extra1 = &init_net.ipv6.frags.low_thresh
514 .data = &init_net.ipv6.frags.low_thresh,
518 .extra2 = &init_net.ipv6.frags.high_thresh
522 .data = &init_net.ipv6.frags.timeout,
554 table[0].data = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
555 table[0].extra1 = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
[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()
314 spin_lock_init(&net->ipv6.ip6addrlbl_table.lock); in ip6addrlbl_net_init()
[all …]
Droute.c154 atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache); in rt6_uncached_list_del()
353 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
358 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
497 return net->ipv6.fib6_null_entry; in rt6_device_match()
499 return rt->fib6_nh.nh_flags & RTNH_F_DEAD ? net->ipv6.fib6_null_entry : rt; in rt6_device_match()
744 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
745 return net->ipv6.fib6_null_entry; in rt6_select()
762 return net->ipv6.fib6_null_entry; in rt6_select()
783 return match ? match : net->ipv6.fib6_null_entry; in rt6_select()
1032 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
[all …]
Daf_inet6.c213 np->repflow = net->ipv6.sysctl.flowlabel_reflect; in inet6_create()
214 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create()
833 net->ipv6.sysctl.bindv6only = 0; in inet6_net_init()
834 net->ipv6.sysctl.icmpv6_time = 1*HZ; in inet6_net_init()
835 net->ipv6.sysctl.icmpv6_echo_ignore_all = 0; in inet6_net_init()
836 net->ipv6.sysctl.flowlabel_consistency = 1; in inet6_net_init()
837 net->ipv6.sysctl.auto_flowlabels = IP6_DEFAULT_AUTO_FLOW_LABELS; in inet6_net_init()
838 net->ipv6.sysctl.idgen_retries = 3; in inet6_net_init()
839 net->ipv6.sysctl.idgen_delay = 1 * HZ; in inet6_net_init()
840 net->ipv6.sysctl.flowlabel_state_ranges = 0; in inet6_net_init()
[all …]
/Linux-v4.19/drivers/net/netdevsim/
Dfib.c37 struct nsim_per_fib_data ipv6; member
55 entry = &fib_data->ipv6.fib; in nsim_fib_get_val()
58 entry = &fib_data->ipv6.rules; in nsim_fib_get_val()
82 entry = &fib_data->ipv6.fib; in nsim_fib_set_max()
85 entry = &fib_data->ipv6.rules; in nsim_fib_set_max()
134 err = nsim_fib_rule_account(&data->ipv6.rules, add, extack); in nsim_fib_rule_event()
171 err = nsim_fib_account(&data->ipv6.fib, add, extack); in nsim_fib_event()
212 data->ipv6.fib.num = 0ULL; in nsim_fib_dump_inconsistent()
213 data->ipv6.rules.num = 0ULL; in nsim_fib_dump_inconsistent()
230 data->ipv6.fib.max = (u64)-1; in nsim_fib_netns_init()
[all …]
/Linux-v4.19/net/ipv6/netfilter/
Dip6table_nat.c40 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat); in ip6table_nat_do_chain()
100 if (net->ipv6.ip6table_nat) in ip6table_nat_table_init()
107 NULL, &net->ipv6.ip6table_nat); in ip6table_nat_table_init()
115 ip6t_unregister_table(net, net->ipv6.ip6table_nat, NULL); in ip6table_nat_table_init()
116 net->ipv6.ip6table_nat = NULL; in ip6table_nat_table_init()
124 if (!net->ipv6.ip6table_nat) in ip6table_nat_net_exit()
127 ip6t_unregister_table(net, net->ipv6.ip6table_nat, NULL); in ip6table_nat_net_exit()
128 net->ipv6.ip6table_nat = NULL; in ip6table_nat_net_exit()
Dip6table_security.c45 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_security); in ip6table_security_hook()
55 if (net->ipv6.ip6table_security) in ip6table_security_table_init()
62 &net->ipv6.ip6table_security); in ip6table_security_table_init()
69 if (!net->ipv6.ip6table_security) in ip6table_security_net_exit()
71 ip6t_unregister_table(net, net->ipv6.ip6table_security, sectbl_ops); in ip6table_security_net_exit()
72 net->ipv6.ip6table_security = NULL; in ip6table_security_net_exit()
Dip6table_filter.c41 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter); in ip6table_filter_hook()
55 if (net->ipv6.ip6table_filter) in ip6table_filter_table_init()
66 &net->ipv6.ip6table_filter); in ip6table_filter_table_init()
81 if (!net->ipv6.ip6table_filter) in ip6table_filter_net_exit()
83 ip6t_unregister_table(net, net->ipv6.ip6table_filter, filter_ops); in ip6table_filter_net_exit()
84 net->ipv6.ip6table_filter = NULL; in ip6table_filter_net_exit()
Dip6table_mangle.c55 ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6t_mangle_out()
78 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook()
87 if (net->ipv6.ip6table_mangle) in ip6table_mangle_table_init()
94 &net->ipv6.ip6table_mangle); in ip6table_mangle_table_init()
101 if (!net->ipv6.ip6table_mangle) in ip6table_mangle_net_exit()
104 ip6t_unregister_table(net, net->ipv6.ip6table_mangle, mangle_ops); in ip6table_mangle_net_exit()
105 net->ipv6.ip6table_mangle = NULL; in ip6table_mangle_net_exit()
Dip6table_raw.c42 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw); in ip6table_raw_hook()
56 if (net->ipv6.ip6table_raw) in ip6table_raw_table_init()
63 &net->ipv6.ip6table_raw); in ip6table_raw_table_init()
70 if (!net->ipv6.ip6table_raw) in ip6table_raw_net_exit()
72 ip6t_unregister_table(net, net->ipv6.ip6table_raw, rawtable_ops); in ip6table_raw_net_exit()
73 net->ipv6.ip6table_raw = NULL; in ip6table_raw_net_exit()
Dip6t_REJECT.c92 if (!(e->ipv6.flags & IP6T_F_PROTO) || in reject_tg6_check()
93 e->ipv6.proto != IPPROTO_TCP || in reject_tg6_check()
94 (e->ipv6.invflags & XT_INV_PROTO)) { in reject_tg6_check()
/Linux-v4.19/Documentation/security/
DLSM-sctp.rst30 Passes one or more ipv4/ipv6 addresses to the security module for validation
38 @address - One or more ipv4 / ipv6 addresses.
40 ipv4 or ipv6 address using sizeof(struct sockaddr_in) or
47 | SCTP_SOCKOPT_BINDX_ADD | One or more ipv4 / ipv6 addresses |
48 | SCTP_PRIMARY_ADDR | Single ipv4 or ipv6 address |
49 | SCTP_SET_PEER_PRIMARY_ADDR | Single ipv4 or ipv6 address |
56 | SCTP_SOCKOPT_CONNECTX | One or more ipv4 / ipv6 addresses |
57 | SCTP_PARAM_ADD_IP | One or more ipv4 / ipv6 addresses |
58 | SCTP_SENDMSG_CONNECT | Single ipv4 or ipv6 address |
59 | SCTP_PARAM_SET_PRIMARY | Single ipv4 or ipv6 address |
DSELinux-sctp.rst44 Checks permissions required for ipv4/ipv6 addresses based on the ``@optname``
51 | SCTP_SOCKOPT_BINDX_ADD | One or more ipv4 / ipv6 addresses |
52 | SCTP_PRIMARY_ADDR | Single ipv4 or ipv6 address |
53 | SCTP_SET_PEER_PRIMARY_ADDR | Single ipv4 or ipv6 address |
60 | SCTP_SOCKOPT_CONNECTX | One or more ipv4 / ipv6 addresses |
61 | SCTP_PARAM_ADD_IP | One or more ipv4 / ipv6 addresses |
62 | SCTP_SENDMSG_CONNECT | Single ipv4 or ipv6 address |
63 | SCTP_PARAM_SET_PRIMARY | Single ipv4 or ipv6 address |
/Linux-v4.19/drivers/infiniband/core/
Duverbs_std_types_flow_action.c128 const struct ib_uverbs_flow_ipv6_filter ipv6 = { in parse_esp_ip() local
140 struct ib_uverbs_flow_ipv6_filter ipv6; in parse_esp_ip() member
151 sizeof(ipv6.reserved) != sizeof(ipv6)); in parse_esp_ip()
169 if (len > sizeof(user_val.ipv6) && in parse_esp_ip()
170 !ib_is_buffer_cleared(val_ptr + sizeof(user_val.ipv6), in parse_esp_ip()
171 len - sizeof(user_val.ipv6))) in parse_esp_ip()
174 val_len = min_t(size_t, len, sizeof(user_val.ipv6)); in parse_esp_ip()
175 ret = copy_from_user(&user_val.ipv6, val_ptr, in parse_esp_ip()
180 user_pmask = &ipv6; in parse_esp_ip()
/Linux-v4.19/tools/testing/selftests/net/
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()
/Linux-v4.19/net/core/
Dnetpoll.c375 if (np->ipv6) in netpoll_send_udp()
397 if (np->ipv6) { in netpoll_send_udp()
468 if (np->ipv6) in netpoll_print_options()
474 if (np->ipv6) in netpoll_print_options()
505 int ipv6; in netpoll_parse_options() local
523 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options()
524 if (ipv6 < 0) in netpoll_parse_options()
527 np->ipv6 = (bool)ipv6; in netpoll_parse_options()
559 ipv6 = netpoll_parse_ip_addr(cur, &np->remote_ip); in netpoll_parse_options()
560 if (ipv6 < 0) in netpoll_parse_options()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls.c43 MLX5_SET(tls_flow, flow, ipv6, 0); in mlx5e_tls_set_ipv4_flow()
55 MLX5_SET(tls_flow, flow, ipv6, 1); in mlx5e_tls_set_ipv6_flow()
56 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow()
57 &sk->sk_v6_daddr, MLX5_FLD_SZ_BYTES(ipv6_layout, ipv6)); in mlx5e_tls_set_ipv6_flow()
58 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow()
59 &np->saddr, MLX5_FLD_SZ_BYTES(ipv6_layout, ipv6)); in mlx5e_tls_set_ipv6_flow()
/Linux-v4.19/net/openvswitch/
Dflow.c276 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
277 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
278 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
430 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6()
449 key->ipv6.nd.target = nd->target; in parse_icmpv6()
467 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) in parse_icmpv6()
469 ether_addr_copy(key->ipv6.nd.sll, in parse_icmpv6()
473 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.tll))) in parse_icmpv6()
475 ether_addr_copy(key->ipv6.nd.tll, in parse_icmpv6()
487 memset(&key->ipv6.nd.target, 0, sizeof(key->ipv6.nd.target)); in parse_icmpv6()
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_lwt_seg6local.sh130 ip netns exec ns1 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
131 ip netns exec ns2 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
132 ip netns exec ns3 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
133 ip netns exec ns4 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
134 ip netns exec ns5 sysctl net.ipv6.conf.all.forwarding=1 > /dev/null
136 ip netns exec ns6 sysctl net.ipv6.conf.all.seg6_enabled=1 > /dev/null
137 ip netns exec ns6 sysctl net.ipv6.conf.lo.seg6_enabled=1 > /dev/null
138 ip netns exec ns6 sysctl net.ipv6.conf.veth10.seg6_enabled=1 > /dev/null
/Linux-v4.19/net/tipc/
Dudp_media.c72 struct in6_addr ipv6; member
104 return ipv6_addr_is_multicast(&addr->ipv6); in tipc_udp_is_mcast_addr()
129 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str()
189 .daddr = dst->ipv6, in tipc_udp_xmit()
190 .saddr = src->ipv6, in tipc_udp_xmit()
199 ndst->dev, &src->ipv6, in tipc_udp_xmit()
200 &dst->ipv6, 0, ttl, 0, src->port, in tipc_udp_xmit()
299 pr_info("New replicast peer: %pI6\n", &rcast->addr.ipv6); in tipc_udp_rcast_add()
329 src.ipv6 = iphdr->saddr; in tipc_udp_rcast_disc()
396 &remote->ipv6); in enable_mcast()
[all …]

1234567