/linux/net/ipv6/ |
H A D | sysctl_net_ipv6.c | 40 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 …]
|
H A D | Makefile | 6 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 …]
|
H A D | fib6_rules.c | 70 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup() 80 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup() 83 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup() 85 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() 86 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup() 97 if (net->ipv6.fib6_has_custom_rules) { in fib6_rule_lookup() 109 fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_rule_lookup() 118 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() 123 net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup() [all …]
|
H A D | reassembly.c | 99 q = inet_frag_find(net->ipv6.fqdir, &key); in fq_find() 465 table[0].data = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 466 table[0].extra1 = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 467 table[1].data = &net->ipv6.fqdir->low_thresh; in ip6_frags_ns_sysctl_register() 468 table[1].extra2 = &net->ipv6.fqdir->high_thresh; in ip6_frags_ns_sysctl_register() 469 table[2].data = &net->ipv6.fqdir->timeout; in ip6_frags_ns_sysctl_register() 476 net->ipv6.sysctl.frags_hdr = hdr; in ip6_frags_ns_sysctl_register() 490 table = net->ipv6.sysctl.frags_hdr->ctl_table_arg; in ip6_frags_ns_sysctl_unregister() 491 unregister_net_sysctl_table(net->ipv6.sysctl.frags_hdr); in ip6_frags_ns_sysctl_unregister() 533 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, net); in ipv6_frags_init_net() [all …]
|
H A D | route.c | 342 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, in ip6_dst_alloc() 347 atomic_inc(&net->ipv6.rt6_stats->fib_rt_alloc); in ip6_dst_alloc() 568 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match() 582 res->f6i = net->ipv6.fib6_null_entry; in rt6_device_match() 880 if (!leaf || leaf == net->ipv6.fib6_null_entry) in rt6_select() 919 res->f6i = net->ipv6.fib6_null_entry; in rt6_select() 1181 rt = net->ipv6.ip6_null_entry; in ip6_hold_safe() 1212 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() 1237 if (res.f6i == net->ipv6.fib6_null_entry) { in ip6_pol_route_lookup() [all …]
|
H A D | af_inet6.c | 227 inet6_assign_bit(REPFLOW, sk, net->ipv6.sysctl.flowlabel_reflect & in inet6_create() 229 sk->sk_ipv6only = net->ipv6.sysctl.bindv6only; in inet6_create() 957 net->ipv6.sysctl.bindv6only = 0; in inet6_net_init() 958 net->ipv6.sysctl.icmpv6_time = 1*HZ; in inet6_net_init() 959 net->ipv6.sysctl.icmpv6_echo_ignore_all = 0; in inet6_net_init() 960 net->ipv6.sysctl.icmpv6_echo_ignore_multicast = 0; in inet6_net_init() 961 net->ipv6.sysctl.icmpv6_echo_ignore_anycast = 0; in inet6_net_init() 962 net->ipv6.sysctl.icmpv6_error_anycast_as_unicast = 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() [all …]
|
H A D | icmp.c | 172 if (!test_bit(type, net->ipv6.sysctl.icmpv6_ratemask)) in icmpv6_mask_allow() 218 int tmo = net->ipv6.sysctl.icmpv6_time; in icmpv6_xrlim_allow() 225 peer = inet_getpeer_v6(net->ipv6.peers, &fl6->daddr, 1); in icmpv6_xrlim_allow() 371 if (!READ_ONCE(net->ipv6.sysctl.icmpv6_error_anycast_as_unicast) && in icmpv6_route_lookup() 738 net->ipv6.sysctl.icmpv6_echo_ignore_multicast) in icmpv6_echo_reply() 744 if (acast && net->ipv6.sysctl.icmpv6_echo_ignore_anycast) in icmpv6_echo_reply() 748 !(net->ipv6.sysctl.anycast_src_echo_reply && acast)) in icmpv6_echo_reply() 760 if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES) in icmpv6_echo_reply() 946 if (!net->ipv6.sysctl.icmpv6_echo_ignore_all) in icmpv6_rcv() 950 if (!net->ipv6.sysctl.icmpv6_echo_ignore_all && in icmpv6_rcv() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | connect6_prog.c | 35 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 …]
|
H A D | test_tcp_custom_syncookie.c | 62 struct ipv6hdr *ipv6; member 101 ctx->ipv6 = (struct ipv6hdr *)(ctx->eth + 1); in tcp_load_headers() 103 if (ctx->ipv6 + 1 > ctx->data_end) in tcp_load_headers() 106 if (ctx->ipv6->version != 6) in tcp_load_headers() 109 if (ctx->ipv6->nexthdr != NEXTHDR_TCP) in tcp_load_headers() 112 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1); in tcp_load_headers() 145 ctx->ipv6 = NULL; in tcp_reload_headers() 149 ctx->ipv6 = (struct ipv6hdr *)(ctx->eth + 1); in tcp_reload_headers() 150 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1); in tcp_reload_headers() 169 return csum_ipv6_magic(&ctx->ipv6->saddr, &ctx->ipv6->daddr, in tcp_v6_csum() [all …]
|
H A D | xdp_synproxy_kern.c | 311 __u8 *ttl, bool ipv6) in values_get_tcpipopts() 318 if (ipv6) in values_get_tcpipopts() 327 *mss = ipv6 ? DEFAULT_MSS6 : DEFAULT_MSS4; in values_get_tcpipopts() 370 struct ipv6hdr *ipv6; 384 hdr->ipv6 = NULL; in tcp_dissect() 402 hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth); in tcp_dissect() 403 if (hdr->ipv6 + 1 > data_end) in tcp_dissect() 405 if (hdr->ipv6->version != 6) in tcp_dissect() 411 if (hdr->ipv6->nexthdr != NEXTHDR_TCP) in tcp_dissect() 414 hdr->tcp = (void *)hdr->ipv6 in tcp_dissect() 312 values_get_tcpipopts(__u16 * mss,__u8 * wscale,__u8 * ttl,bool ipv6) values_get_tcpipopts() argument 371 struct ipv6hdr *ipv6; global() member [all...] |
H A D | test_cls_redirect.c | 99 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 100 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 283 const struct ipv6hdr *ipv6, in pkt_skip_ipv6_extension_headers() argument 296 .next = ipv6->nexthdr, in pkt_skip_ipv6_extension_headers() 354 struct ipv6hdr *ipv6 = buf_assign(pkt, sizeof(*ipv6), scratch); in pkt_parse_ipv6() local 355 if (ipv6 == NULL) { in pkt_parse_ipv6() 359 if (!pkt_skip_ipv6_extension_headers(pkt, ipv6, proto, is_fragment)) { in pkt_parse_ipv6() 363 return ipv6; in pkt_parse_ipv6() 635 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple() local 636 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple() [all …]
|
H A D | test_cls_redirect_dynptr.c | 93 offsetofend(struct bpf_sock_tuple, ipv6.dport) - 94 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 188 const struct ipv6hdr *ipv6, uint8_t *upper_proto, in pkt_skip_ipv6_extension_headers() argument 200 .next = ipv6->nexthdr, in pkt_skip_ipv6_extension_headers() 244 static int pkt_parse_ipv6(struct bpf_dynptr *dynptr, __u64 *offset, struct ipv6hdr *ipv6, in pkt_parse_ipv6() argument 247 if (bpf_dynptr_read(ipv6, sizeof(*ipv6), dynptr, *offset, 0)) in pkt_parse_ipv6() 250 *offset += sizeof(*ipv6); in pkt_parse_ipv6() 252 if (!pkt_skip_ipv6_extension_headers(dynptr, offset, ipv6, proto, is_fragment)) in pkt_parse_ipv6() 525 struct ipv6hdr *ipv6 = (struct ipv6hdr *)iph; in fill_tuple() local 526 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple() [all …]
|
H A D | test_tcp_check_syncookie_kern.c |
|
H A D | cgroup_skb_sk_lookup_kern.c | 33 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/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 15 bool ipv6; member 51 mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6) in mtk_print_addr() argument 55 if (!ipv6) { in mtk_print_addr() 67 mtk_print_addr(m, ai->src, ai->ipv6); in mtk_print_addr_info() 71 mtk_print_addr(m, ai->dest, ai->ipv6); in mtk_print_addr_info() 118 ai.src_port = &entry->ipv6.src_port; in mtk_ppe_debugfs_foe_show() 119 ai.dest_port = &entry->ipv6.dest_port; in mtk_ppe_debugfs_foe_show() 123 ai.src = &entry->ipv6.src_ip; in mtk_ppe_debugfs_foe_show() 124 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show() 125 ai.ipv6 = true; in mtk_ppe_debugfs_foe_show() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | ip_defrag.c | 135 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 …]
|
H A D | ioam6.sh | 297 sysctl -wq net.ipv6.ioam6_id=${ALPHA[0]} &>/dev/null 299 sysctl -wq net.ipv6.ioam6_id_wide=${ALPHA[1]} &>/dev/null 301 sysctl -wq net.ipv6.conf.veth0.ioam6_id=${ALPHA[4]} &>/dev/null 303 sysctl -wq net.ipv6.conf.veth0.ioam6_id_wide=${ALPHA[5]} &>/dev/null 313 sysctl -wq net.ipv6.conf.all.forwarding=1 &>/dev/null 315 sysctl -wq net.ipv6.ioam6_id=${BETA[0]} &>/dev/null 317 sysctl -wq net.ipv6.ioam6_id_wide=${BETA[1]} &>/dev/null 319 sysctl -wq net.ipv6.conf.veth0.ioam6_enabled=1 &>/dev/null 321 sysctl -wq net.ipv6.conf.veth0.ioam6_id=${BETA[2]} &>/dev/null 323 sysctl -wq net.ipv6 [all...] |
/linux/tools/testing/selftests/net/forwarding/ |
H A D | ip6gre_custom_multipath_hash.sh | 387 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 …]
|
H A D | custom_multipath_hash.sh | 319 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 …]
|
H A D | router_multicast.sh | 280 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 …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | ip_check_defrag.c | 41 static int setup_topology(bool ipv6) in setup_topology() argument 49 if (ipv6) { in setup_topology() 61 if (ipv6) in setup_topology() 81 static int attach(struct ip_check_defrag *skel, bool ipv6) in attach() argument 84 .pf = ipv6 ? NFPROTO_IPV6 : NFPROTO_IPV4, in attach() 159 void test_bpf_ip_check_defrag_ok(bool ipv6) in test_bpf_ip_check_defrag_ok() argument 161 int family = ipv6 ? AF_INET6 : AF_INET; in test_bpf_ip_check_defrag_ok() 183 if (!ASSERT_OK(setup_topology(ipv6), "setup_topology")) in test_bpf_ip_check_defrag_ok() 186 if (!ASSERT_OK(attach(skel, ipv6), "attach")) in test_bpf_ip_check_defrag_ok() 221 if (ipv6) { in test_bpf_ip_check_defrag_ok() [all …]
|
/linux/drivers/net/ipa/ |
H A D | ipa_table.c | 145 ipa_table_mem(struct ipa *ipa, bool filter, bool hashed, bool ipv6) in ipa_table_mem() argument 149 mem_id = filter ? hashed ? ipv6 ? IPA_MEM_V6_FILTER_HASHED in ipa_table_mem() 151 : ipv6 ? IPA_MEM_V6_FILTER in ipa_table_mem() 153 : hashed ? ipv6 ? IPA_MEM_V6_ROUTE_HASHED in ipa_table_mem() 155 : ipv6 ? IPA_MEM_V6_ROUTE in ipa_table_mem() 206 bool hashed, bool ipv6, u16 first, u16 count) in ipa_table_reset_add() argument 215 mem = ipa_table_mem(ipa, filter, hashed, ipv6); in ipa_table_reset_add() 234 ipa_filter_reset_table(struct ipa *ipa, bool hashed, bool ipv6, bool modem) in ipa_filter_reset_table() argument 258 ipa_table_reset_add(trans, true, hashed, ipv6, endpoint_id, 1); in ipa_filter_reset_table() 386 static void ipa_table_init_add(struct gsi_trans *trans, bool filter, bool ipv6) in ipa_table_init_add() argument [all …]
|
/linux/Documentation/security/ |
H A D | SCTP.rst | 36 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 …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profile_scale.sh | 56 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
|
H A D | one_armed_router.sh | 178 tc filter add dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower \ 182 tc filter add dev $swp2 egress protocol ipv6 pref 1 handle 101 flower \ 186 tc filter add dev $swp2 egress protocol ipv6 pref 2 handle 102 flower \ 214 tc filter del dev $swp2 egress protocol ipv6 pref 2 handle 102 flower 215 tc filter del dev $swp2 egress protocol ipv6 pref 1 handle 101 flower 216 tc filter del dev $swp1 ingress protocol ipv6 pref 1 handle 101 flower 231 sysctl_set net.ipv6.conf.all.accept_redirects 0 246 sysctl_restore net.ipv6.conf.all.accept_redirects
|