Home
last modified time | relevance | path

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

123

/net/ipv6/
Dsysctl_net_ipv6.c27 .data = &init_net.ipv6.sysctl.bindv6only,
34 .data = &init_net.ipv6.sysctl.anycast_src_echo_reply,
41 .data = &init_net.ipv6.sysctl.flowlabel_consistency,
48 .data = &init_net.ipv6.sysctl.auto_flowlabels,
57 .data = &init_net.ipv6.sysctl.fwmark_reflect,
64 .data = &init_net.ipv6.sysctl.idgen_retries,
71 .data = &init_net.ipv6.sysctl.idgen_delay,
78 .data = &init_net.ipv6.sysctl.flowlabel_state_ranges,
85 .data = &init_net.ipv6.sysctl.ip_nonlocal_bind,
124 ipv6_table[0].data = &net->ipv6.sysctl.bindv6only; in ipv6_sysctl_net_init()
[all …]
DMakefile5 obj-$(CONFIG_IPV6) += ipv6.o
7 ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \
13 ipv6-offload := ip6_offload.o tcpv6_offload.o udp_offload.o exthdrs_offload.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
[all …]
Dip6_fib.c103 old = atomic_read(&net->ipv6.fib6_sernum); in fib6_new_sernum()
105 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum()
228 hlist_add_head_rcu(&tb->tb6_hlist, &net->ipv6.fib_table_hash[h]); in fib6_link_table()
240 table->tb6_root.leaf = net->ipv6.ip6_null_entry; in fib6_alloc_table()
275 head = &net->ipv6.fib_table_hash[h]; in fib6_get_table()
290 fib6_link_table(net, net->ipv6.fib6_main_tbl); in fib6_tables_init()
291 fib6_link_table(net, net->ipv6.fib6_local_tbl); in fib6_tables_init()
302 return net->ipv6.fib6_main_tbl; in fib6_get_table()
310 rt = lookup(net, net->ipv6.fib6_main_tbl, fl6, flags); in fib6_rule_lookup()
313 rt = net->ipv6.ip6_null_entry; in fib6_rule_lookup()
[all …]
Droute.c330 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in __ip6_dst_alloc()
506 return net->ipv6.ip6_null_entry; in rt6_device_match()
746 return match ? match : net->ipv6.ip6_null_entry; in rt6_select()
861 if (rt == net->ipv6.ip6_null_entry) { in ip6_pol_route_lookup()
1011 dst_hold(&net->ipv6.ip6_null_entry->dst); in rt6_make_pcpu_route()
1012 return net->ipv6.ip6_null_entry; in rt6_make_pcpu_route()
1048 if (net->ipv6.devconf_all->forwarding == 0) in ip6_pol_route()
1063 if (rt == net->ipv6.ip6_null_entry) { in ip6_pol_route()
1076 if (rt == net->ipv6.ip6_null_entry || (rt->rt6i_flags & RTF_CACHE)) { in ip6_pol_route()
1101 uncached_rt = net->ipv6.ip6_null_entry; in ip6_pol_route()
[all …]
Dreassembly.c143 net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_expire()
164 q = inet_frag_find(&net->ipv6.frags, &key); in fq_find()
344 struct net *net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_reasm()
559 .data = &init_net.ipv6.frags.high_thresh,
563 .extra1 = &init_net.ipv6.frags.low_thresh
567 .data = &init_net.ipv6.frags.low_thresh,
571 .extra2 = &init_net.ipv6.frags.high_thresh
575 .data = &init_net.ipv6.frags.timeout,
607 table[0].data = &net->ipv6.frags.high_thresh; in ip6_frags_ns_sysctl_register()
608 table[0].extra1 = &net->ipv6.frags.low_thresh; in ip6_frags_ns_sysctl_register()
[all …]
Dfib6_rules.c40 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup()
46 dst_hold(&net->ipv6.ip6_null_entry->dst); in fib6_rule_lookup()
47 return &net->ipv6.ip6_null_entry->dst; in fib6_rule_lookup()
65 rt = net->ipv6.ip6_null_entry; in fib6_rule_action()
70 rt = net->ipv6.ip6_blk_hole_entry; in fib6_rule_action()
74 rt = net->ipv6.ip6_prohibit_entry; in fib6_rule_action()
85 if (rt != net->ipv6.ip6_null_entry) { in fib6_rule_action()
302 net->ipv6.fib6_rules_ops = ops; in fib6_rules_net_init()
314 fib_rules_unregister(net->ipv6.fib6_rules_ops); in fib6_rules_net_exit()
Dicmp.c84 return net->ipv6.icmp_sk[smp_processor_id()]; in icmpv6_sk()
202 int tmo = net->ipv6.sysctl.icmpv6_time; in icmpv6_xrlim_allow()
211 peer = inet_getpeer_v6(net->ipv6.peers, in icmpv6_xrlim_allow()
576 !(net->ipv6.sysctl.anycast_src_echo_reply && in icmpv6_echo_reply()
846 net->ipv6.icmp_sk = in icmpv6_sk_init()
848 if (!net->ipv6.icmp_sk) in icmpv6_sk_init()
860 net->ipv6.icmp_sk[i] = sk; in icmpv6_sk_init()
871 inet_ctl_sock_destroy(net->ipv6.icmp_sk[j]); in icmpv6_sk_init()
872 kfree(net->ipv6.icmp_sk); in icmpv6_sk_init()
881 inet_ctl_sock_destroy(net->ipv6.icmp_sk[i]); in icmpv6_sk_exit()
[all …]
Daf_inet6.c219 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create()
379 if (!net->ipv6.sysctl.ip_nonlocal_bind && in inet6_bind()
807 net->ipv6.sysctl.bindv6only = 0; in inet6_net_init()
808 net->ipv6.sysctl.icmpv6_time = 1*HZ; in inet6_net_init()
809 net->ipv6.sysctl.flowlabel_consistency = 1; in inet6_net_init()
810 net->ipv6.sysctl.auto_flowlabels = IP6_DEFAULT_AUTO_FLOW_LABELS; in inet6_net_init()
811 net->ipv6.sysctl.idgen_retries = 3; in inet6_net_init()
812 net->ipv6.sysctl.idgen_delay = 1 * HZ; in inet6_net_init()
813 net->ipv6.sysctl.flowlabel_state_ranges = 0; in inet6_net_init()
814 atomic_set(&net->ipv6.fib6_sernum, 1); in inet6_net_init()
Daddrconf.c330 idev->stats.ipv6 = alloc_percpu(struct ipstats_mib); in snmp6_alloc_dev()
331 if (!idev->stats.ipv6) in snmp6_alloc_dev()
336 addrconf_stats = per_cpu_ptr(idev->stats.ipv6, i); in snmp6_alloc_dev()
355 free_percpu(idev->stats.ipv6); in snmp6_alloc_dev()
379 memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); in ipv6_add_dev()
620 devconf = net->ipv6.devconf_all; in inet6_netconf_get_devconf()
623 devconf = net->ipv6.devconf_dflt; in inet6_netconf_get_devconf()
673 cb->seq = atomic_read(&net->ipv6.dev_addr_genid) ^ in inet6_netconf_dump_devconf()
700 net->ipv6.devconf_all, in inet6_netconf_dump_devconf()
711 net->ipv6.devconf_dflt, in inet6_netconf_dump_devconf()
[all …]
Dip6mr.c128 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list)
151 err = fib_rules_lookup(net->ipv6.mr6_rules_ops, in ip6mr_fib_lookup()
238 INIT_LIST_HEAD(&net->ipv6.mr6_tables); in ip6mr_rules_init()
250 net->ipv6.mr6_rules_ops = ops; in ip6mr_rules_init()
265 list_for_each_entry_safe(mrt, next, &net->ipv6.mr6_tables, list) { in ip6mr_rules_exit()
269 fib_rules_unregister(net->ipv6.mr6_rules_ops); in ip6mr_rules_exit()
274 for (mrt = net->ipv6.mrt6; mrt; mrt = NULL)
278 return net->ipv6.mrt6; in ip6mr_get_table()
284 *mrt = net->ipv6.mrt6; in ip6mr_fib_lookup()
290 net->ipv6.mrt6 = ip6mr_new_table(net, RT6_TABLE_DFLT); in ip6mr_rules_init()
[all …]
/net/ipv6/netfilter/
Dnf_tables_ipv6.c63 net->nft.ipv6 = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL); in nf_tables_ipv6_init_net()
64 if (net->nft.ipv6 == NULL) in nf_tables_ipv6_init_net()
67 memcpy(net->nft.ipv6, &nft_af_ipv6, sizeof(nft_af_ipv6)); in nf_tables_ipv6_init_net()
69 if (nft_register_afinfo(net, net->nft.ipv6) < 0) in nf_tables_ipv6_init_net()
74 kfree(net->nft.ipv6); in nf_tables_ipv6_init_net()
80 nft_unregister_afinfo(net->nft.ipv6); in nf_tables_ipv6_exit_net()
81 kfree(net->nft.ipv6); in nf_tables_ipv6_exit_net()
Dip6table_mangle.c60 ret = ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6t_mangle_out()
85 state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook()
87 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_mangle); in ip6table_mangle_hook()
98 net->ipv6.ip6table_mangle = in ip6table_mangle_net_init()
101 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_mangle); in ip6table_mangle_net_init()
106 ip6t_unregister_table(net, net->ipv6.ip6table_mangle); in ip6table_mangle_net_exit()
Dip6table_security.c42 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_security); in ip6table_security_hook()
54 net->ipv6.ip6table_security = in ip6table_security_net_init()
57 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_security); in ip6table_security_net_init()
62 ip6t_unregister_table(net, net->ipv6.ip6table_security); in ip6table_security_net_exit()
Dip6table_raw.c25 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_raw); in ip6table_raw_hook()
37 net->ipv6.ip6table_raw = in ip6table_raw_net_init()
40 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_raw); in ip6table_raw_net_init()
45 ip6t_unregister_table(net, net->ipv6.ip6table_raw); in ip6table_raw_net_exit()
Dip6table_filter.c38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter); in ip6table_filter_hook()
58 net->ipv6.ip6table_filter = in ip6table_filter_net_init()
61 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_filter); in ip6table_filter_net_init()
66 ip6t_unregister_table(net, net->ipv6.ip6table_filter); in ip6table_filter_net_exit()
Dip6table_nat.c38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat); in ip6table_nat_do_chain()
107 net->ipv6.ip6table_nat = ip6t_register_table(net, &nf_nat_ipv6_table, repl); in ip6table_nat_net_init()
109 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_nat); in ip6table_nat_net_init()
114 ip6t_unregister_table(net, net->ipv6.ip6table_nat); in ip6table_nat_net_exit()
Dip6t_REJECT.c87 if (!(e->ipv6.flags & IP6T_F_PROTO) || in reject_tg6_check()
88 e->ipv6.proto != IPPROTO_TCP || in reject_tg6_check()
89 (e->ipv6.invflags & XT_INV_PROTO)) { in reject_tg6_check()
Dip6_tables.c96 const struct ipv6hdr *ipv6 = ipv6_hdr(skb); in ip6_packet_match() local
100 if (FWINV(ipv6_masked_addr_cmp(&ipv6->saddr, &ip6info->smsk, in ip6_packet_match()
102 FWINV(ipv6_masked_addr_cmp(&ipv6->daddr, &ip6info->dmsk, in ip6_packet_match()
170 ip6_checkentry(const struct ip6t_ip6 *ipv6) in ip6_checkentry() argument
172 if (ipv6->flags & ~IP6T_F_MASK) { in ip6_checkentry()
174 ipv6->flags & ~IP6T_F_MASK); in ip6_checkentry()
177 if (ipv6->invflags & ~IP6T_INV_MASK) { in ip6_checkentry()
179 ipv6->invflags & ~IP6T_INV_MASK); in ip6_checkentry()
206 memcmp(&e->ipv6, &uncond, sizeof(uncond)) == 0; in unconditional()
383 if (!ip6_packet_match(skb, indev, outdev, &e->ipv6, in ip6t_do_table()
[all …]
/net/openvswitch/
Dflow.c271 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
272 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
273 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
375 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6()
394 key->ipv6.nd.target = nd->target; in parse_icmpv6()
412 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.sll))) in parse_icmpv6()
414 ether_addr_copy(key->ipv6.nd.sll, in parse_icmpv6()
418 if (unlikely(!is_zero_ether_addr(key->ipv6.nd.tll))) in parse_icmpv6()
420 ether_addr_copy(key->ipv6.nd.tll, in parse_icmpv6()
432 memset(&key->ipv6.nd.target, 0, sizeof(key->ipv6.nd.target)); in parse_icmpv6()
[all …]
Dflow_netlink.c551 bool ttl = false, ipv4 = false, ipv6 = false; in ip_tun_from_nlattr() local
591 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src, in ip_tun_from_nlattr()
593 ipv6 = true; in ip_tun_from_nlattr()
596 SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst, in ip_tun_from_nlattr()
598 ipv6 = true; in ip_tun_from_nlattr()
663 SW_FLOW_KEY_PUT(match, tun_proto, ipv6 ? AF_INET6 : AF_INET, in ip_tun_from_nlattr()
672 if (ipv4 && ipv6) { in ip_tun_from_nlattr()
678 if (!ipv4 && !ipv6) { in ip_tun_from_nlattr()
686 if (ipv6 && ipv6_addr_any(&match->key->tun_key.u.ipv6.dst)) { in ip_tun_from_nlattr()
737 if (!ipv6_addr_any(&output->u.ipv6.src) && in __ip_tun_to_nlattr()
[all …]
/net/tipc/
Dudp_media.c76 struct in6_addr ipv6; member
105 if (ipv6_addr_type(&ua->ipv6) & IPV6_ADDR_MULTICAST) in tipc_udp_media_addr_set()
120 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->udp_port)); in tipc_udp_addr2str()
199 .daddr = dst->ipv6, in tipc_udp_send_msg()
200 .saddr = src->ipv6, in tipc_udp_send_msg()
212 ndst->dev, &src->ipv6, in tipc_udp_send_msg()
213 &dst->ipv6, 0, ttl, src->udp_port, in tipc_udp_send_msg()
265 if (!ipv6_addr_is_multicast(&remote->ipv6)) in enable_mcast()
268 &remote->ipv6); in enable_mcast()
323 local->ipv6 = ip6->sin6_addr; in parse_options()
[all …]
/net/core/
Dnetpoll.c398 if (np->ipv6) in netpoll_send_udp()
420 if (np->ipv6) { in netpoll_send_udp()
491 if (np->ipv6) in netpoll_print_options()
497 if (np->ipv6) in netpoll_print_options()
528 int ipv6; in netpoll_parse_options() local
546 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options()
547 if (ipv6 < 0) in netpoll_parse_options()
550 np->ipv6 = (bool)ipv6; in netpoll_parse_options()
582 ipv6 = netpoll_parse_ip_addr(cur, &np->remote_ip); in netpoll_parse_options()
583 if (ipv6 < 0) in netpoll_parse_options()
[all …]
Dtso.c23 if (!tso->ipv6) { in tso_build_hdr()
71 tso->ipv6 = vlan_get_protocol(skb) == htons(ETH_P_IPV6); in tso_start()
/net/sched/
Dcls_flower.c35 struct flow_dissector_key_ipv6_addrs ipv6; member
299 fl_set_key_val(tb, &key->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC, in fl_set_key()
300 &mask->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC_MASK, in fl_set_key()
301 sizeof(key->ipv6.src)); in fl_set_key()
302 fl_set_key_val(tb, &key->ipv6.dst, TCA_FLOWER_KEY_IPV6_DST, in fl_set_key()
303 &mask->ipv6.dst, TCA_FLOWER_KEY_IPV6_DST_MASK, in fl_set_key()
304 sizeof(key->ipv6.dst)); in fl_set_key()
385 FLOW_DISSECTOR_KEY_IPV6_ADDRS, ipv6); in fl_init_dissector()
649 (fl_dump_key_val(skb, &key->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC, in fl_dump()
650 &mask->ipv6.src, TCA_FLOWER_KEY_IPV6_SRC_MASK, in fl_dump()
[all …]
/net/ipv4/
Dip_tunnel_core.c141 memcpy(&dst->key.u.ipv6.dst, &src->key.u.ipv6.src, in iptunnel_metadata_reply()
353 tun_info->key.u.ipv6.dst = nla_get_in6_addr(tb[LWTUNNEL_IP6_DST]); in ip6_tun_build_state()
356 tun_info->key.u.ipv6.src = nla_get_in6_addr(tb[LWTUNNEL_IP6_SRC]); in ip6_tun_build_state()
381 nla_put_in6_addr(skb, LWTUNNEL_IP6_DST, &tun_info->key.u.ipv6.dst) || in ip6_tun_fill_encap_info()
382 nla_put_in6_addr(skb, LWTUNNEL_IP6_SRC, &tun_info->key.u.ipv6.src) || in ip6_tun_fill_encap_info()

123