Searched refs:ipv6 (Results 1 - 25 of 714) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dconnect6_prog.c35 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr));
36 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport));
38 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0);
39 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1);
40 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2);
41 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3);
43 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6);
48 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6),
[all...]
H A Dcgroup_skb_sk_lookup_kern.c11 #include <linux/ipv6.h>
33 set_ip(tuple->ipv6.saddr, &ip6h->daddr);
34 set_ip(tuple->ipv6.daddr, &ip6h->saddr);
35 tuple->ipv6.sport = tcph->dest;
36 tuple->ipv6.dport = tcph->source;
45 size_t tuple_len = sizeof(tuple.ipv6);
H A Dfreplace_connect_v4_prog.c5 #include <linux/ipv6.h>
H A Dtest_tcp_custom_syncookie.c61 struct ipv6hdr *ipv6; member in struct:tcp_syncookie
100 ctx->ipv6 = (struct ipv6hdr *)(ctx->eth + 1);
102 if (ctx->ipv6 + 1 > ctx->data_end)
105 if (ctx->ipv6->version != 6)
108 if (ctx->ipv6->nexthdr != NEXTHDR_TCP)
111 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
144 ctx->ipv6 = NULL;
148 ctx->ipv6 = (struct ipv6hdr *)(ctx->eth + 1);
149 ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
168 return csum_ipv6_magic(&ctx->ipv6
[all...]
H A Dtest_tcp_check_syncookie_kern.c12 #include <linux/ipv6.h>
109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr));
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr));
111 tup.ipv6.sport = tcph->source;
112 tup.ipv6.dport = tcph->dest;
114 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv6),
H A Dfreplace_connect4.c2 #include <linux/ipv6.h>
H A Dtest_migrate_reuseport.c18 #include <linux/ipv6.h>
69 struct ipv6hdr *ipv6 = (struct ipv6hdr *)(eth + 1); local
71 if (ipv6 + 1 > data_end)
74 if (ipv6->nexthdr != IPPROTO_TCP)
77 tcp = (struct tcphdr *)(ipv6 + 1);
H A Dxdp_synproxy_kern.c311 __u8 *ttl, bool ipv6)
318 if (ipv6)
327 *mss = ipv6 ? DEFAULT_MSS6 : DEFAULT_MSS4;
370 struct ipv6hdr *ipv6; member in struct:header_pointers
384 hdr->ipv6 = NULL;
402 hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth);
403 if (hdr->ipv6 + 1 > data_end)
405 if (hdr->ipv6->version != 6)
411 if (hdr->ipv6->nexthdr != NEXTHDR_TCP)
414 hdr->tcp = (void *)hdr->ipv6
310 values_get_tcpipopts(__u16 *mss, __u8 *wscale, __u8 *ttl, bool ipv6) argument
[all...]
/linux-master/net/ipv6/
H A DMakefile6 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
[all...]
H A Dsysctl_net_ipv6.c12 #include <linux/ipv6.h>
16 #include <net/ipv6.h>
40 ipv6.sysctl.multipath_hash_policy);
56 ipv6.sysctl.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
[all...]
H A Dfib6_notifier.c7 #include <net/netns/ipv6.h>
56 net->ipv6.notifier_ops = ops;
63 fib_notifier_ops_unregister(net->ipv6.notifier_ops);
H A Dfib6_rules.c3 * net/ipv6/fib6_rules.c IPv6 Routing Policy Rules
20 #include <net/ipv6.h>
69 if (net->ipv6.fib6_has_custom_rules) {
79 err = fib_rules_lookup(net->ipv6.fib6_rules_ops,
82 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif,
84 if (err || res->f6i == net->ipv6.fib6_null_entry)
85 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl,
96 if (net->ipv6.fib6_has_custom_rules) {
108 fib_rules_lookup(net->ipv6.fib6_rules_ops,
117 net, net->ipv6
[all...]
/linux-master/net/dccp/
H A Dipv6.h5 * net/dccp/ipv6.h
12 #include <linux/ipv6.h>
/linux-master/include/net/
H A Dseg6_local.h15 #include <linux/ipv6.h>
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Drif_mac_profile_scale.sh56 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
/linux-master/net/handshake/
H A Dtrace.c11 #include <linux/ipv6.h>
/linux-master/tools/testing/selftests/net/
H A Dstress_reuseport_listen.sh11 ip netns exec $NS sysctl -q -w net.ipv6.ip_nonlocal_bind=1
H A 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
46 echo "ipv6 defrag"
49 echo "ipv6 defrag with overlaps"
55 echo "ipv6 nf_conntrack defrag"
58 echo "ipv6 nf_conntrack defrag with overlaps"
H A Dreuseaddr_conflict.c7 * when we open the ipv6 conterpart, which is what was happening previously.
21 int open_port(int ipv6, int any) argument
29 int family = ipv6 ? AF_INET6 : AF_INET;
43 if (ipv6) {
56 if (ipv6 && setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&v6only,
102 error(1, errno, "Couldn't open ipv6 reuseport");
108 fprintf(stderr, "Opening INADDR_ANY:%d after closing ipv6 socket\n", PORT);
111 error(1, 0, "Was allowed to create an ipv4 reuseport on an already bound non-reuseport socket with no ipv6");
H A Dip_defrag.c135 int offset, bool ipv6)
140 uint8_t *frag_start = ipv6 ? ip_frame + IP6_HLEN + FRAG_HLEN :
149 if (ipv6)
156 if (ipv6) {
204 socklen_t alen, bool ipv6)
219 if (ipv6) {
248 send_fragment(fd_raw, addr, alen, offset, ipv6);
259 send_fragment(fd_raw, addr, alen, offset, ipv6);
264 send_fragment(fd_raw, addr, alen, offset, ipv6);
269 send_fragment(fd_raw, addr, alen, offset, ipv6);
134 send_fragment(int fd_raw, struct sockaddr *addr, socklen_t alen, int offset, bool ipv6) argument
203 send_udp_frags(int fd_raw, struct sockaddr *addr, socklen_t alen, bool ipv6) argument
334 run_test(struct sockaddr *addr, socklen_t alen, bool ipv6) argument
[all...]
/linux-master/include/linux/netfilter_ipv6/
H A Dip6_tables.h21 #include <linux/ipv6.h>
39 struct ip6t_ip6 ipv6; member in struct:compat_ip6t_entry
/linux-master/include/linux/
H A Derrqueue.h8 #include <linux/ipv6.h>
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c12 bool ipv6; member in struct:mtk_flow_addr_info
48 mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6) argument
53 if (!ipv6) {
66 mtk_print_addr(m, ai->src, ai->ipv6);
70 mtk_print_addr(m, ai->dest, ai->ipv6);
117 ai.src_port = &entry->ipv6.src_port;
118 ai.dest_port = &entry->ipv6.dest_port;
122 ai.src = &entry->ipv6.src_ip;
123 ai.dest = &entry->ipv6.dest_ip;
124 ai.ipv6
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dip_check_defrag.c41 static int setup_topology(bool ipv6) argument
49 if (ipv6) {
61 if (ipv6)
81 static int attach(struct ip_check_defrag *skel, bool ipv6) argument
84 .pf = ipv6 ? NFPROTO_IPV6 : NFPROTO_IPV4,
137 /* Port needs to be set to 0 for raw ipv6 socket for some reason */
157 void test_bpf_ip_check_defrag_ok(bool ipv6) argument
183 if (!ASSERT_OK(setup_topology(ipv6), "setup_topology"))
186 if (!ASSERT_OK(attach(skel, ipv6), "attach"))
193 srv_fd = start_server(ipv6
[all...]
/linux-master/tools/testing/selftests/net/forwarding/
H A Dcustom_multipath_hash.sh319 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
[all...]

Completed in 728 milliseconds

1234567891011>>