Searched refs:sa6 (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/tools/testing/selftests/net/ |
D | stress_reuseport_listen.c | 29 struct sockaddr_in6 sa6 = {}; in bind_reuseport_sock6() local 32 sa6.sin6_family = AF_INET6; in bind_reuseport_sock6() 33 sa6.sin6_port = htons(IP6_LPORT); in bind_reuseport_sock6() 34 err = inet_pton(AF_INET6, IP6_LADDR_START, &sa6.sin6_addr); in bind_reuseport_sock6() 57 err = bind(*cur_fd, (struct sockaddr *)&sa6, in bind_reuseport_sock6() 58 sizeof(sa6)); in bind_reuseport_sock6() 63 sa6.sin6_addr.s6_addr32[3]++; in bind_reuseport_sock6()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | connect_ping.c | 27 struct sockaddr_in6 sa6 = { in subtest() local 43 sa = (struct sockaddr *)&sa6; in subtest() 44 sa_len = sizeof(sa6); in subtest() 82 if (!ASSERT_EQ(sa6.sin6_family, AF_INET6, "sin6_family")) in subtest() 84 if (!ASSERT_EQ(memcmp(&sa6.sin6_addr, in subtest() 86 sizeof(sa6.sin6_addr)), in subtest()
|
D | bpf_tcp_ca.c | 83 struct sockaddr_in6 sa6 = {}; in do_test() local 87 socklen_t addrlen = sizeof(sa6); in do_test() 108 sa6.sin6_family = AF_INET6; in do_test() 109 sa6.sin6_addr = in6addr_loopback; in do_test() 110 err = bind(lfd, (struct sockaddr *)&sa6, addrlen); in do_test() 113 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test() 129 err = connect(fd, (struct sockaddr *)&sa6, addrlen); in do_test()
|
/linux-6.6.21/fs/smb/client/ |
D | cifs_swn.c | 630 struct sockaddr_in6 *sa6; in cifs_swn_dump() local 647 sa6 = (struct sockaddr_in6 *) &swnreg->tcon->ses->server->dstaddr; in cifs_swn_dump() 648 seq_printf(m, "%pI6", &sa6->sin6_addr.s6_addr); in cifs_swn_dump() 649 if (sa6->sin6_scope_id) in cifs_swn_dump() 650 seq_printf(m, "%%%u", sa6->sin6_scope_id); in cifs_swn_dump()
|
D | cifs_spnego.c | 91 struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) &server->dstaddr; in cifs_get_spnego_key() local 127 sprintf(dp, "ip6=%pI6", &sa6->sin6_addr); in cifs_get_spnego_key()
|
D | cifsfs.c | 442 struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *) &server->dstaddr; in cifs_show_address() local 451 seq_printf(s, "%pI6", &sa6->sin6_addr.s6_addr); in cifs_show_address() 452 if (sa6->sin6_scope_id) in cifs_show_address() 453 seq_printf(s, "%%%u", sa6->sin6_scope_id); in cifs_show_address()
|
D | connect.c | 2099 struct sockaddr_in6 *sa6; in cifs_set_cifscreds() local 2113 sa6 = (struct sockaddr_in6 *)&server->dstaddr; in cifs_set_cifscreds() 2114 sprintf(desc, "cifs:a:%pI6c", &sa6->sin6_addr.s6_addr); in cifs_set_cifscreds()
|