Home
last modified time | relevance | path

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

123

/net/ipv6/
Dsysctl_net_ipv6.c42 ipv6.sysctl.multipath_hash_policy); in proc_rt6_multipath_hash_policy()
58 ipv6.sysctl.multipath_hash_fields); in proc_rt6_multipath_hash_fields()
69 .data = &init_net.ipv6.sysctl.bindv6only,
76 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply,
83 .data = &init_net.ipv6.sysctl.flowlabel_consistency,
90 .data = &init_net.ipv6.sysctl.auto_flowlabels,
98 .data = &init_net.ipv6.sysctl.fwmark_reflect,
105 .data = &init_net.ipv6.sysctl.idgen_retries,
112 .data = &init_net.ipv6.sysctl.idgen_delay,
119 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
[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 …]
Dip6_fib.c75 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
79 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link()
80 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link()
81 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link()
86 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink()
88 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_unlink()
96 old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum()
98 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum()
188 net->ipv6.rt6_stats->fib_nodes++; in node_alloc()
196 net->ipv6.rt6_stats->fib_nodes--; in node_free_immediate()
[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 …]
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 …]
Droute.c156 atomic_dec(&net->ipv6.rt6_stats->fib_rt_uncache); in rt6_uncached_list_del()
341 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc()
346 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc()
563 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
577 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match()
871 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select()
910 res->f6i = net->ipv6.fib6_null_entry; in rt6_select()
1163 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe()
1194 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()
[all …]
Dreassembly.c99 q = inet_frag_find(net->ipv6.fqdir, &key); in fq_find()
461 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
462 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
463 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register()
464 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register()
465 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register()
471 net->ipv6.sysctl.frags_hdr = hdr; in ip6_frags_ns_sysctl_register()
485 table = net->ipv6.sysctl.frags_hdr->ctl_table_arg; in ip6_frags_ns_sysctl_unregister()
486 unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr); in ip6_frags_ns_sysctl_unregister()
528 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net()
[all …]
Dicmp.c81 return this_cpu_read(*net->ipv6.icmp_sk); in icmpv6_sk()
180 if (!test_bit(type, net->ipv6.sysctl.icmpv6_ratemask)) in icmpv6_mask_allow()
223 int tmo = net->ipv6.sysctl.icmpv6_time; in icmpv6_xrlim_allow()
230 peer = inet_getpeer_v6(net->ipv6.peers, &fl6->daddr, 1); in icmpv6_xrlim_allow()
735 net->ipv6.sysctl.icmpv6_echo_ignore_multicast) in icmpv6_echo_reply()
741 if (acast && net->ipv6.sysctl.icmpv6_echo_ignore_anycast) in icmpv6_echo_reply()
745 !(net->ipv6.sysctl.anycast_src_echo_reply && acast)) in icmpv6_echo_reply()
757 if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES) in icmpv6_echo_reply()
928 if (!net->ipv6.sysctl.icmpv6_echo_ignore_all) in icmpv6_rcv()
932 if (!net->ipv6.sysctl.icmpv6_echo_ignore_all && in icmpv6_rcv()
[all …]
Daf_inet6.c225 np->repflow = net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ESTABLISHED; in inet6_create()
226 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create()
958 net->ipv6.sysctl.bindv6only = 0; in inet6_net_init()
959 net->ipv6.sysctl.icmpv6_time = 1*HZ; in inet6_net_init()
960 net->ipv6.sysctl.icmpv6_echo_ignore_all = 0; in inet6_net_init()
961 net->ipv6.sysctl.icmpv6_echo_ignore_multicast = 0; in inet6_net_init()
962 net->ipv6.sysctl.icmpv6_echo_ignore_anycast = 0; in inet6_net_init()
968 bitmap_set(net->ipv6.sysctl.icmpv6_ratemask, 0, ICMPV6_ERRMSG_MAX + 1); in inet6_net_init()
969 bitmap_clear(net->ipv6.sysctl.icmpv6_ratemask, ICMPV6_PKT_TOOBIG, 1); in inet6_net_init()
970 net->ipv6.sysctl.icmpv6_ratemask_ptr = net->ipv6.sysctl.icmpv6_ratemask; in inet6_net_init()
[all …]
Dip6mr.c100 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list, \
102 list_empty(&net->ipv6.mr6_tables))
110 ret = list_entry_rcu(net->ipv6.mr6_tables.next, in ip6mr_mr_table_iter()
116 if (&ret->list == &net->ipv6.mr6_tables) in ip6mr_mr_table_iter()
145 err = fib_rules_lookup(net->ipv6.mr6_rules_ops, in ip6mr_fib_lookup()
235 INIT_LIST_HEAD(&net->ipv6.mr6_tables); in ip6mr_rules_init()
247 net->ipv6.mr6_rules_ops = ops; in ip6mr_rules_init()
264 list_for_each_entry_safe(mrt, next, &net->ipv6.mr6_tables, list) { in ip6mr_rules_exit()
268 fib_rules_unregister(net->ipv6.mr6_rules_ops); in ip6mr_rules_exit()
291 for (mrt = net->ipv6.mrt6; mrt; mrt = NULL)
[all …]
Dxfrm6_policy.c95 atomic_inc(&dev_net(dev)->ipv6.rt6_stats->fib_rt_uncache); in xfrm6_fill_dst()
216 net->ipv6.sysctl.xfrm6_hdr = hdr; in xfrm6_net_sysctl_init()
230 if (!net->ipv6.sysctl.xfrm6_hdr) in xfrm6_net_sysctl_exit()
233 table = net->ipv6.sysctl.xfrm6_hdr->ctl_table_arg; in xfrm6_net_sysctl_exit()
234 unregister_net_sysctl_table(net->ipv6.sysctl.xfrm6_hdr); in xfrm6_net_sysctl_exit()
Daddrconf.c346 idev->stats.ipv6 = alloc_percpu(struct ipstats_mib); in snmp6_alloc_dev()
347 if (!idev->stats.ipv6) in snmp6_alloc_dev()
352 addrconf_stats = per_cpu_ptr(idev->stats.ipv6, i); in snmp6_alloc_dev()
371 free_percpu(idev->stats.ipv6); in snmp6_alloc_dev()
394 memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); in ipv6_add_dev()
673 devconf = net->ipv6.devconf_all; in inet6_netconf_get_devconf()
676 devconf = net->ipv6.devconf_dflt; in inet6_netconf_get_devconf()
716 u32 res = atomic_read(&net->ipv6.dev_addr_genid) + in inet6_base_seq()
787 net->ipv6.devconf_all, in inet6_netconf_dump_devconf()
798 net->ipv6.devconf_dflt, in inet6_netconf_dump_devconf()
[all …]
Dfib6_notifier.c56 net->ipv6.notifier_ops = ops; in fib6_notifier_init()
63 fib_notifier_ops_unregister(net->ipv6.notifier_ops); in fib6_notifier_exit()
Dproc.c47 atomic_read(&net->ipv6.fqdir->rhashtable.nelems), in sockstat6_seq_show()
48 frag_mem_limit(net->ipv6.fqdir)); in sockstat6_seq_show()
236 snmp6_seq_show_item64(seq, idev->stats.ipv6, in snmp6_dev_seq_show()
Dndisc.c418 struct sock *sk = dev_net(dev)->ipv6.ndisc_sk; in ndisc_alloc_skb()
476 struct sock *sk = net->ipv6.ndisc_sk; in ndisc_send_skb()
541 inet6_sk(dev_net(dev)->ipv6.ndisc_sk)->srcprefs, in ndisc_send_na()
894 (net->ipv6.devconf_all->proxy_ndp || idev->cnf.proxy_ndp) && in ndisc_recv_ns()
1043 net->ipv6.devconf_all->forwarding && net->ipv6.devconf_all->proxy_ndp && in ndisc_recv_na()
1605 struct sock *sk = net->ipv6.ndisc_sk; in ndisc_send_redirect()
1657 peer = inet_getpeer_v6(net->ipv6.peers, &ipv6_hdr(skb)->saddr, 1); in ndisc_send_redirect()
1821 net->ipv6.devconf_all->ndisc_notify) in ndisc_netdev_event()
1921 net->ipv6.ndisc_sk = sk; in ndisc_net_init()
1933 inet_ctl_sock_destroy(net->ipv6.ndisc_sk); in ndisc_net_exit()
/net/core/
Dnetpoll.c414 if (np->ipv6) in netpoll_send_udp()
436 if (np->ipv6) { in netpoll_send_udp()
507 if (np->ipv6) in netpoll_print_options()
513 if (np->ipv6) in netpoll_print_options()
544 int ipv6; in netpoll_parse_options() local
562 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options()
563 if (ipv6 < 0) in netpoll_parse_options()
566 np->ipv6 = (bool)ipv6; in netpoll_parse_options()
598 ipv6 = netpoll_parse_ip_addr(cur, &np->remote_ip); in netpoll_parse_options()
599 if (ipv6 < 0) in netpoll_parse_options()
[all …]
Dtso.c23 if (!tso->ipv6) { in tso_build_hdr()
81 tso->ipv6 = vlan_get_protocol(skb) == htons(ETH_P_IPV6); in tso_start()
/net/tipc/
Dudp_media.c78 struct in6_addr ipv6; member
112 return ipv6_addr_is_multicast(&addr->ipv6); in tipc_udp_is_mcast_addr()
137 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str()
203 .daddr = dst->ipv6, in tipc_udp_xmit()
204 .saddr = src->ipv6, in tipc_udp_xmit()
218 &src->ipv6, &dst->ipv6, 0, ttl, 0, in tipc_udp_xmit()
324 pr_info("New replicast peer: %pI6\n", &rcast->addr.ipv6); in tipc_udp_rcast_add()
354 src.ipv6 = iphdr->saddr; in tipc_udp_rcast_disc()
419 &remote->ipv6); in enable_mcast()
446 memcpy(&ip6.sin6_addr, &addr->ipv6, sizeof(struct in6_addr)); in __tipc_nl_add_udp_addr()
[all …]
/net/openvswitch/
Dflow.c261 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
262 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
263 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
420 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6()
439 key->ipv6.nd.target = nd->target; in parse_icmpv6()
457 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) in parse_icmpv6()
459 ether_addr_copy(key->ipv6.nd.sll, in parse_icmpv6()
463 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.tll))) in parse_icmpv6()
465 ether_addr_copy(key->ipv6.nd.tll, in parse_icmpv6()
477 memset(&key->ipv6.nd.target, 0, sizeof(key->ipv6.nd.target)); in parse_icmpv6()
[all …]
Dflow_netlink.c660 bool ttl = false, ipv4 = false, ipv6 = false; in ip_tun_from_nlattr() local
701 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src, in ip_tun_from_nlattr()
703 ipv6 = true; in ip_tun_from_nlattr()
706 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst, in ip_tun_from_nlattr()
708 ipv6 = true; in ip_tun_from_nlattr()
793 SW_FLOW_KEY_PUT(match, tun_proto, ipv6 ? AF_INET6 : AF_INET, in ip_tun_from_nlattr()
802 if (ipv4 && ipv6) { in ip_tun_from_nlattr()
808 if (!ipv4 && !ipv6) { in ip_tun_from_nlattr()
829 if (ipv6 && ipv6_addr_any(&match->key->tun_key.u.ipv6.dst)) { in ip_tun_from_nlattr()
886 if (!ipv6_addr_any(&output->u.ipv6.src) && in __ip_tun_to_nlattr()
[all …]
/net/ipv6/netfilter/
Dip6t_REJECT.c88 if (!(e->ipv6.flags & IP6T_F_PROTO) || in reject_tg6_check()
89 e->ipv6.proto != IPPROTO_TCP || in reject_tg6_check()
90 (e->ipv6.invflags & XT_INV_PROTO)) { in reject_tg6_check()
Dip6_tables.c57 const struct ipv6hdr *ipv6 = ipv6_hdr(skb); in ip6_packet_match() local
60 ipv6_masked_addr_cmp(&ipv6->saddr, &ip6info->smsk, in ip6_packet_match()
63 ipv6_masked_addr_cmp(&ipv6->daddr, &ip6info->dmsk, in ip6_packet_match()
109 ip6_checkentry(const struct ip6t_ip6 *ipv6) in ip6_checkentry() argument
111 if (ipv6->flags & ~IP6T_F_MASK) in ip6_checkentry()
113 if (ipv6->invflags & ~IP6T_INV_MASK) in ip6_checkentry()
140 memcmp(&e->ipv6, &uncond, sizeof(uncond)) == 0; in unconditional()
308 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table()
353 !(e->ipv6.flags & IP6T_F_GOTO)) { in ip6t_do_table()
485 const struct ip6t_ip6 *ipv6 = par->entryinfo; in check_match() local
[all …]
Dip6t_SYNPROXY.c72 if (!(e->ipv6.flags & IP6T_F_PROTO) || in synproxy_tg6_check()
73 e->ipv6.proto != IPPROTO_TCP || in synproxy_tg6_check()
74 e->ipv6.invflags & XT_INV_PROTO) in synproxy_tg6_check()
/net/psample/
Dpsample.c244 if (!ipv6_addr_any(&tun_key->u.ipv6.src) && in __psample_ip_tun_to_nlattr()
246 &tun_key->u.ipv6.src)) in __psample_ip_tun_to_nlattr()
248 if (!ipv6_addr_any(&tun_key->u.ipv6.dst) && in __psample_ip_tun_to_nlattr()
250 &tun_key->u.ipv6.dst)) in __psample_ip_tun_to_nlattr()
330 if (!ipv6_addr_any(&tun_key->u.ipv6.src)) in psample_tunnel_meta_len()
332 if (!ipv6_addr_any(&tun_key->u.ipv6.dst)) in psample_tunnel_meta_len()
/net/netfilter/
Dnf_flow_table_offload.c62 memcpy(&key->enc_ipv6.src, &tun_info->key.u.ipv6.dst, in nf_flow_rule_lwt_match()
64 memcpy(&key->enc_ipv6.dst, &tun_info->key.u.ipv6.src, in nf_flow_rule_lwt_match()
104 NF_FLOW_DISSECTOR(match, FLOW_DISSECTOR_KEY_IPV6_ADDRS, ipv6); in nf_flow_rule_match()
154 key->ipv6.src = tuple->src_v6; in nf_flow_rule_match()
155 memset(&mask->ipv6.src, 0xff, sizeof(mask->ipv6.src)); in nf_flow_rule_match()
156 key->ipv6.dst = tuple->dst_v6; in nf_flow_rule_match()
157 memset(&mask->ipv6.dst, 0xff, sizeof(mask->ipv6.dst)); in nf_flow_rule_match()

123