/tools/testing/selftests/bpf/ |
D | test_tcp_check_syncookie_user.c | 205 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()
|
D | test_sock.c | 358 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()
|
D | test_sock_addr.c | 606 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()
|
D | test_flow_dissector.c | 90 #define INIT_ADDR6(name, addr6, port) \ argument 94 .sin6_addr = addr6, \
|
/tools/testing/selftests/net/ |
D | tcp_inq.c | 38 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()
|
D | reuseaddr_conflict.c | 31 struct sockaddr_in6 addr6 = { in open_port() local 44 addr = (struct sockaddr*)&addr6; in open_port() 45 addrlen = sizeof(addr6); in open_port()
|
D | reuseport_addr_any.c | 34 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()
|
D | so_txtime.c | 278 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()
|
D | reuseport_dualstack.c | 35 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()
|
D | reuseport_bpf_numa.c | 34 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()
|
D | tcp_fastopen_backup_key.c | 94 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()
|
D | tcp_mmap.c | 246 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()
|
D | reuseport_bpf_cpu.c | 38 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()
|
D | udpgso_bench_rx.c | 63 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()
|
D | reuseport_bpf.c | 49 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()
|
D | l2tp.sh | 78 local addr6=$3 81 [ -z "${addr6}" ] && addr6="-" 89 if [ "${addr6}" != "-" ]; then 90 ip -netns ${ns} -6 addr add dev lo ${addr6}
|
D | udpgso.c | 72 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()
|
D | ip_defrag.c | 27 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()
|
D | msg_zerocopy.c | 298 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()
|
D | udpgso_bench_tx.c | 117 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()
|
D | fcnal-test.sh | 312 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/ |
D | hv_kvp_daemon.c | 769 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()
|