Searched refs:sin6 (Results 1 – 5 of 5) sorted by relevance
/tools/perf/trace/beauty/ |
D | sockaddr.c | 23 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in af_inet6__scnprintf() local 24 u32 flowinfo = ntohl(sin6->sin6_flowinfo); in af_inet6__scnprintf() 26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf() 27 inet_ntop(sin6->sin6_family, &sin6->sin6_addr, tmp, sizeof(tmp))); in af_inet6__scnprintf() 30 if (sin6->sin6_scope_id != 0) in af_inet6__scnprintf() 31 printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); in af_inet6__scnprintf()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | bind_perm.c | 25 struct sockaddr_in6 *sin6; in try_bind() local 38 sin6 = (struct sockaddr_in6 *)&addr; in try_bind() 39 sin6->sin6_family = family; in try_bind() 40 sin6->sin6_port = htons(port); in try_bind()
|
/tools/testing/selftests/bpf/ |
D | network_helpers.c | 331 struct sockaddr_in6 *sin6 = (void *)addr; in make_sockaddr() local 333 memset(addr, 0, sizeof(*sin6)); in make_sockaddr() 334 sin6->sin6_family = AF_INET6; in make_sockaddr() 335 sin6->sin6_port = htons(port); in make_sockaddr() 337 inet_pton(AF_INET6, addr_str, &sin6->sin6_addr) != 1) { in make_sockaddr() 342 *len = sizeof(*sin6); in make_sockaddr()
|
/tools/testing/selftests/net/ |
D | nettest.c | 304 struct sockaddr_in6 sin6 = { in tcp_md5_remote() local 318 sin6.sin6_port = htons(args->port); in tcp_md5_remote() 319 sin6.sin6_addr = args->md5_prefix.v6.sin6_addr; in tcp_md5_remote() 320 addr = &sin6; in tcp_md5_remote() 321 alen = sizeof(sin6); in tcp_md5_remote() 1667 struct sockaddr_in6 sin6 = { in do_client() local 1711 sin6.sin6_port = htons(args->port); in do_client() 1712 sin6.sin6_addr = args->remote_addr.in6; in do_client() 1713 sin6.sin6_scope_id = args->scope_id; in do_client() 1714 addr = &sin6; in do_client() [all …]
|
/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 763 struct sockaddr_in6 *sin6; in check_sockaddr() local 775 wanted_size = sizeof(*sin6); in check_sockaddr() 776 sin6 = (void *)ss; in check_sockaddr() 777 if (!sin6->sin6_port) in check_sockaddr()
|