Home
last modified time | relevance | path

Searched refs:addr6 (Results 1 – 22 of 22) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_tcp_check_syncookie_user.c205 struct sockaddr_in6 addr6; in main() local
228 memset(&addr6, 0, sizeof(addr6)); in main()
229 addr6.sin6_family = AF_INET6; in main()
230 addr6.sin6_addr = in6addr_loopback; in main()
231 addr6.sin6_port = 0; in main()
237 server_v6 = start_server((const struct sockaddr *)&addr6, in main()
238 sizeof(addr6)); in main()
Dtest_sock.c358 struct sockaddr_in6 *addr6; in bind_sock() local
379 addr6 = (struct sockaddr_in6 *)&addr; in bind_sock()
380 addr6->sin6_family = domain; in bind_sock()
381 addr6->sin6_port = htons(port); in bind_sock()
382 if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) in bind_sock()
Dtest_sock_addr.c606 struct sockaddr_in6 *addr6; in mk_sockaddr() local
629 addr6 = (struct sockaddr_in6 *)addr; in mk_sockaddr()
630 addr6->sin6_family = domain; in mk_sockaddr()
631 addr6->sin6_port = htons(port); in mk_sockaddr()
632 if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) { in mk_sockaddr()
Dtest_flow_dissector.c90 #define INIT_ADDR6(name, addr6, port) \ argument
94 .sin6_addr = addr6, \
/tools/testing/selftests/net/
Dtcp_inq.c38 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_loopback_addr() local
49 memset(addr6, 0, sizeof(*addr6)); in setup_loopback_addr()
50 addr6->sin6_family = AF_INET6; in setup_loopback_addr()
51 addr6->sin6_addr = in6addr_loopback; in setup_loopback_addr()
52 addr6->sin6_port = htons(port); in setup_loopback_addr()
Dreuseaddr_conflict.c31 struct sockaddr_in6 addr6 = { in open_port() local
44 addr = (struct sockaddr*)&addr6; in open_port()
45 addrlen = sizeof(addr6); in open_port()
Dreuseport_addr_any.c34 struct sockaddr_in6 addr6 = {0}; in build_rcv_fd() local
52 addr6.sin6_family = AF_INET6; in build_rcv_fd()
54 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
55 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
57 addr6.sin6_port = htons(PORT); in build_rcv_fd()
58 sz = sizeof(addr6); in build_rcv_fd()
59 addr = (struct sockaddr *)&addr6; in build_rcv_fd()
Dso_txtime.c278 struct sockaddr_in6 addr6 = {0}; in main() local
280 addr6.sin6_family = AF_INET6; in main()
281 addr6.sin6_port = htons(cfg_port); in main()
282 addr6.sin6_addr = in6addr_loopback; in main()
283 do_test((void *)&addr6, sizeof(addr6)); in main()
Dreuseport_dualstack.c35 struct sockaddr_in6 *addr6; in build_rcv_fd() local
46 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_fd()
47 addr6->sin6_family = AF_INET6; in build_rcv_fd()
48 addr6->sin6_addr = in6addr_any; in build_rcv_fd()
49 addr6->sin6_port = htons(PORT); in build_rcv_fd()
Dreuseport_bpf_numa.c34 struct sockaddr_in6 *addr6; in build_rcv_group() local
46 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
47 addr6->sin6_family = AF_INET6; in build_rcv_group()
48 addr6->sin6_addr = in6addr_any; in build_rcv_group()
49 addr6->sin6_port = htons(PORT); in build_rcv_group()
Dtcp_fastopen_backup_key.c94 struct sockaddr_in6 addr6 = {0}; in build_rcv_fd() local
109 addr6.sin6_family = AF_INET6; in build_rcv_fd()
110 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
111 addr6.sin6_port = htons(PORT); in build_rcv_fd()
112 sz = sizeof(addr6); in build_rcv_fd()
113 addr = (struct sockaddr *)&addr6; in build_rcv_fd()
Dtcp_mmap.c246 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
259 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr()
260 addr6->sin6_family = AF_INET6; in setup_sockaddr()
261 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
263 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Dreuseport_bpf_cpu.c38 struct sockaddr_in6 *addr6; in build_rcv_group() local
50 addr6 = (struct sockaddr_in6 *)&addr; in build_rcv_group()
51 addr6->sin6_family = AF_INET6; in build_rcv_group()
52 addr6->sin6_addr = in6addr_any; in build_rcv_group()
53 addr6->sin6_port = htons(PORT); in build_rcv_group()
Dudpgso_bench_rx.c63 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
74 addr6->sin6_family = AF_INET6; in setup_sockaddr()
75 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
76 if (inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Dreuseport_bpf.c49 struct sockaddr_in6 *addr6; in new_any_sockaddr() local
62 addr6 = (struct sockaddr_in6 *)addr; in new_any_sockaddr()
63 addr6->sin6_family = AF_INET6; in new_any_sockaddr()
64 addr6->sin6_addr = in6addr_any; in new_any_sockaddr()
65 addr6->sin6_port = htons(port); in new_any_sockaddr()
77 struct sockaddr_in6 *addr6; in new_loopback_sockaddr() local
85 addr6 = (struct sockaddr_in6 *)addr; in new_loopback_sockaddr()
86 addr6->sin6_addr = in6addr_loopback; in new_loopback_sockaddr()
Dl2tp.sh78 local addr6=$3
81 [ -z "${addr6}" ] && addr6="-"
89 if [ "${addr6}" != "-" ]; then
90 ip -netns ${ns} -6 addr add dev lo ${addr6}
Dudpgso.c72 const struct in6_addr addr6 = IN6ADDR_LOOPBACK_INIT; variable
366 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu()
371 alen = is_ipv4 ? sizeof(addr4) : sizeof(addr6); in set_route_mtu()
399 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu()
636 addr.sin6_addr = addr6; in run_test_v6()
Dip_defrag.c27 const struct in6_addr addr6 = IN6ADDR_LOOPBACK_INIT; variable
226 ip6hdr->ip6_src = addr6; in send_udp_frags()
227 ip6hdr->ip6_dst = addr6; in send_udp_frags()
426 addr.sin6_addr = addr6; in run_test_v6()
Dmsg_zerocopy.c298 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
311 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr()
312 addr6->sin6_family = AF_INET6; in setup_sockaddr()
313 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
315 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Dudpgso_bench_tx.c117 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
128 addr6->sin6_family = AF_INET6; in setup_sockaddr()
129 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
130 if (inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Dfcnal-test.sh312 local addr6=$5
324 if [ "${addr6}" != "-" ]; then
325 ip -netns ${ns} -6 addr add dev ${vrf} ${addr6}
338 local addr6=$3
346 if [ "${addr6}" != "-" ]; then
347 ip -netns ${ns} -6 addr add dev lo ${addr6}
/tools/hv/
Dhv_kvp_daemon.c769 struct sockaddr_in6 *addr6; in kvp_process_ip_address() local
779 addr6 = (struct sockaddr_in6 *)addrp; in kvp_process_ip_address()
780 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address()
818 struct sockaddr_in6 *addr6; in kvp_get_ip_info() local
899 addr6 = (struct sockaddr_in6 *) in kvp_get_ip_info()
901 w = addr6->sin6_addr.s6_addr32; in kvp_get_ip_info()