Home
last modified time | relevance | path

Searched refs:ss_family (Results 1 – 25 of 113) sorted by relevance

12345

/external/openssh/
Dcanohost.c46 if (addr->ss_family != AF_INET6 || in ipv64_normalise_mapped()
88 if (addr.ss_family == AF_INET6) { in get_socket_address()
93 switch (addr.ss_family) { in get_socket_address()
179 if (from.ss_family == AF_INET6) in get_sock_port()
183 if (from.ss_family != AF_INET && from.ss_family != AF_INET6) in get_sock_port()
/external/ipsec-tools/src/racoon/
Dpolicy.c113 if (spidx->src.ss_family != spidx->dst.ss_family) {
116 spidx->src.ss_family,
117 spidx->dst.ss_family);
120 switch (spidx->src.ss_family) {
131 "invalid family: %d\n", spidx->src.ss_family);
236 if (a->src.ss_family != b->src.ss_family)
238 if (a->dst.ss_family != b->dst.ss_family)
Dsockmisc.c444 if (ss.ss_family == AF_INET6
470 if (ss.ss_family == AF_INET
488 if (ss.ss_family == AF_INET6
506 if (ss.ss_family == AF_INET
560 if (src->sa_family != ss.ss_family) {
703 if (ss.ss_family == src->sa_family && memcmp(&ss, src, sysdep_sa_len(src)) == 0) {
/external/strace/tests-mx32/
Dgroup_req.c68 greq4->gr_group.ss_family = AF_INET; in main()
69 inet_pton(AF_INET, multi4addr, &greq4->gr_group.ss_family + 2); in main()
71 greq6->gr_group.ss_family = AF_INET6; in main()
72 inet_pton(AF_INET6, multi6addr, &greq6->gr_group.ss_family + 4); in main()
/external/strace/tests/
Dgroup_req.c68 greq4->gr_group.ss_family = AF_INET; in main()
69 inet_pton(AF_INET, multi4addr, &greq4->gr_group.ss_family + 2); in main()
71 greq6->gr_group.ss_family = AF_INET6; in main()
72 inet_pton(AF_INET6, multi6addr, &greq6->gr_group.ss_family + 4); in main()
/external/strace/tests-m32/
Dgroup_req.c68 greq4->gr_group.ss_family = AF_INET; in main()
69 inet_pton(AF_INET, multi4addr, &greq4->gr_group.ss_family + 2); in main()
71 greq6->gr_group.ss_family = AF_INET6; in main()
72 inet_pton(AF_INET6, multi6addr, &greq6->gr_group.ss_family + 4); in main()
/external/wpa_supplicant_8/src/common/
Dctrl_iface_common.c20 if (a->ss_family != b->ss_family) in sockaddr_compare()
23 switch (a->ss_family) { in sockaddr_compare()
80 switch (sock->ss_family) { in sockaddr_print()
/external/webrtc/rtc_base/
Dsocket_address.cc281 addr->ss_family = static_cast<unsigned short>(ip.family()); in ToSockAddrStorageHelper()
282 if (addr->ss_family == AF_INET6) { in ToSockAddrStorageHelper()
288 } else if (addr->ss_family == AF_INET) { in ToSockAddrStorageHelper()
310 if (addr.ss_family == AF_INET) { in SocketAddressFromSockAddrStorage()
315 } else if (addr.ss_family == AF_INET6) { in SocketAddressFromSockAddrStorage()
/external/libevent/sample/
Dhttp-server.c412 if (ss.ss_family == AF_INET) { in display_listen_sock()
415 } else if (ss.ss_family == AF_INET6) { in display_listen_sock()
420 else if (ss.ss_family == AF_UNIX) { in display_listen_sock()
427 ss.ss_family); in display_listen_sock()
431 addr = evutil_inet_ntop(ss.ss_family, inaddr, addrbuf, in display_listen_sock()
/external/python/cpython3/Modules/
Daddrinfo.h152 unsigned char ss_family; /* address family */ member
154 unsigned short ss_family; /* address family */
/external/python/cpython2/Modules/
Daddrinfo.h156 unsigned char ss_family; /* address family */ member
158 unsigned short ss_family; /* address family */
/external/rust/crates/quiche/deps/boringssl/src/crypto/bio/
Dbio_test.cc76 ss.ss_family = AF_INET6; in TEST()
85 ss.ss_family = AF_INET; in TEST()
101 if (ss.ss_family == AF_INET6) { in TEST()
104 } else if (ss.ss_family == AF_INET) { in TEST()
/external/boringssl/src/crypto/bio/
Dbio_test.cc76 ss.ss_family = AF_INET6; in TEST()
85 ss.ss_family = AF_INET; in TEST()
101 if (ss.ss_family == AF_INET6) { in TEST()
104 } else if (ss.ss_family == AF_INET) { in TEST()
/external/libevent/test/
Dregress_testutils.c84 if (ss.ss_family == AF_INET) in regress_get_socket_port()
86 else if (ss.ss_family == AF_INET6) in regress_get_socket_port()
/external/kernel-headers/original/uapi/linux/
Dsocket.h19 __kernel_sa_family_t ss_family; /* address family */ member
/external/usrsctp/programs/
Dprograms_helper.c153 switch (spc->spc_aaddr.ss_family) {
175 if (_snprintf(addr_buf, INET6_ADDRSTRLEN, "Unknown family %d", spc->spc_aaddr.ss_family) < 0) {
177 if (snprintf(addr_buf, INET6_ADDRSTRLEN, "Unknown family %d", spc->spc_aaddr.ss_family) < 0) {
Ddiscard_server_upcall.c93 switch (addr.ss_family) { in handle_upcall()
187 encaps.sue_address.ss_family = AF_INET6; in main()
Decho_server_upcall.c95 switch (addr.ss_family) { in handle_upcall()
204 encaps.sue_address.ss_family = AF_INET6; in main()
/external/libnl/include/linux-private/linux/
Dsocket.h15 __kernel_sa_family_t ss_family; /* address family */ member
/external/iproute2/include/uapi/linux/
Dsocket.h15 __kernel_sa_family_t ss_family; /* address family */ member
/external/libpcap/
Dsockutils.c1451 if (first->ss_family == second->ss_family) in sock_cmpaddr()
1453 if (first->ss_family == AF_INET) in sock_cmpaddr()
1587 if (sockaddr->ss_family == AF_INET) in sock_getascii_addrport()
1597 if ((sockaddr->ss_family == AF_INET6) && in sock_getascii_addrport()
/external/libwebsockets/include/libwebsockets/
Dlws-optee.h45 sa_family_t ss_family; /* address family */ member
/external/rust/crates/libc/src/unix/newlib/arm/
Dmod.rs30 pub ss_family: ::sa_family_t,
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock_addr.c1101 if (addr1->ss_family != addr2->ss_family) in cmp_addr()
1104 if (addr1->ss_family == AF_INET) { in cmp_addr()
1109 } else if (addr1->ss_family == AF_INET6) { in cmp_addr()
1153 fd = socket(addr->ss_family, type, 0); in start_server()
1185 domain = addr->ss_family; in connect_to_server()
1259 domain = addr->ss_family; in sendmsg_to_server()
/external/grpc-grpc/test/core/iomgr/
Dtcp_server_posix_test.cc319 addr->ss_family = addr1->ss_family = AF_INET; in test_connect()
396 fd_num, fd, sock_family_name(addr->ss_family), dst.str); in test_connect()

12345