Home
last modified time | relevance | path

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

12

/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()
/tools/testing/selftests/bpf/prog_tests/
Dsk_assign.c220 struct sockaddr_in6 *addr6; in prepare_addr() local
234 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr()
235 memset(addr6, 0, sizeof(*addr6)); in prepare_addr()
236 addr6->sin6_family = family; in prepare_addr()
237 addr6->sin6_port = htons(port); in prepare_addr()
238 addr6->sin6_addr = in6addr_loopback; in prepare_addr()
240 addr6->sin6_addr.s6_addr32[3] = htonl(TEST_DADDR); in prepare_addr()
261 : (struct sockaddr *)&addr6, \
262 .len = (FAMILY == AF_INET) ? sizeof(addr4) : sizeof(addr6), \
270 struct sockaddr_in6 addr6; in test_sk_assign() local
Dcls_redirect.c142 struct sockaddr_in6 *addr6; in prepare_addr() local
152 addr6 = (struct sockaddr_in6 *)addr; in prepare_addr()
153 memset(addr6, 0, sizeof(*addr6)); in prepare_addr()
154 addr6->sin6_family = family; in prepare_addr()
155 addr6->sin6_addr = in6addr_loopback; in prepare_addr()
156 return sizeof(*addr6); in prepare_addr()
Dtcp_hdr_options.c121 struct sockaddr_in6 addr6; in sk_fds_connect() local
140 len = sizeof(addr6); in sk_fds_connect()
141 if (CHECK(getsockname(sk_fds->srv_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
145 sk_fds->passive_lport = ntohs(addr6.sin6_port); in sk_fds_connect()
147 len = sizeof(addr6); in sk_fds_connect()
148 if (CHECK(getsockname(sk_fds->active_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
152 sk_fds->active_lport = ntohs(addr6.sin6_port); in sk_fds_connect()
/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.c38 struct sockaddr_in6 addr6 = {0}; in build_rcv_fd() local
56 addr6.sin6_family = AF_INET6; in build_rcv_fd()
58 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
61 addr6.sin6_port = htons(PORT); in build_rcv_fd()
62 sz = sizeof(addr6); in build_rcv_fd()
63 addr = (struct sockaddr *)&addr6; in build_rcv_fd()
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()
Dso_txtime.c367 struct sockaddr_in6 addr6 = {0}; in main() local
369 addr6.sin6_family = AF_INET6; in main()
370 addr6.sin6_port = htons(cfg_port); in main()
371 addr6.sin6_addr = in6addr_loopback; in main()
376 do_test((void *)&addr6, sizeof(addr6)); in main()
Dtraceroute.sh67 local addr6=$3
70 [ -z "${addr6}" ] && addr6="-"
78 if [ "${addr6}" != "-" ]; then
79 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
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()
Dtcp_mmap.c284 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
297 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr()
298 addr6->sin6_family = AF_INET6; in setup_sockaddr()
299 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
301 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Drxtimestamp.c281 struct sockaddr_in6 addr6; in run_test_case() member
300 addr.addr6.sin6_family = AF_INET6; in run_test_case()
301 addr.addr6.sin6_addr = in6addr_loopback; in run_test_case()
302 addr.addr6.sin6_port = htons(port); in run_test_case()
303 addr_size = sizeof(addr.addr6); in run_test_case()
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.c297 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
310 memset(addr6, 0, sizeof(*addr6)); in setup_sockaddr()
311 addr6->sin6_family = AF_INET6; in setup_sockaddr()
312 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
314 inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
Dvrf-xfrm-tests.sh114 local addr6=$3
117 [ -z "${addr6}" ] && addr6="-"
125 if [ "${addr6}" != "-" ]; then
126 ip -netns ${ns} -6 addr add dev lo ${addr6}
Dudpgso_bench_tx.c118 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_sockaddr() local
129 addr6->sin6_family = AF_INET6; in setup_sockaddr()
130 addr6->sin6_port = htons(cfg_port); in setup_sockaddr()
131 if (inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
/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()

12