/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()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | sk_assign.c | 220 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
|
D | cls_redirect.c | 142 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()
|
D | tcp_hdr_options.c | 121 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/ |
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 | 38 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()
|
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 | so_txtime.c | 367 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()
|
D | traceroute.sh | 67 local addr6=$3 70 [ -z "${addr6}" ] && addr6="-" 78 if [ "${addr6}" != "-" ]; then 79 ip netns exec ${ns} ip -6 addr add dev lo ${addr6}
|
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 | tcp_mmap.c | 284 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()
|
D | rxtimestamp.c | 281 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()
|
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 | 297 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()
|
D | vrf-xfrm-tests.sh | 114 local addr6=$3 117 [ -z "${addr6}" ] && addr6="-" 125 if [ "${addr6}" != "-" ]; then 126 ip -netns ${ns} -6 addr add dev lo ${addr6}
|
D | udpgso_bench_tx.c | 118 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/ |
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()
|