Home
last modified time | relevance | path

Searched refs:sin_family (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/third_party/libwebsockets/lib/core-net/
Droute.c46 if (rou->dest.sa4.sin_family) { in _lws_routing_entry_dump()
53 if (rou->src.sa4.sin_family) { in _lws_routing_entry_dump()
60 if (rou->gateway.sa4.sin_family) { in _lws_routing_entry_dump()
150 (!robj->gateway.sa4.sin_family || in _lws_route_remove()
207 if (!dest->sa4.sin_family) { in _lws_route_est_outgoing()
226 if (rou->dest.sa4.sin_family && in _lws_route_est_outgoing()
236 dest->sa4.sin_family, rou->gateway.sa4.sin_family, in _lws_route_est_outgoing()
239 if (rou->gateway.sa4.sin_family && in _lws_route_est_outgoing()
249 (dest->sa4.sin_family == rou->gateway.sa4.sin_family || in _lws_route_est_outgoing()
250 (dest->sa4.sin_family == AF_INET && in _lws_route_est_outgoing()
[all …]
Dnetwork.c54 addr4.sin_family = AF_UNSPEC; in lws_get_addresses()
104 while (addr4.sin_family == AF_UNSPEC && res) { in lws_get_addresses()
109 addr4.sin_family = AF_INET; in lws_get_addresses()
118 if (addr4.sin_family == AF_UNSPEC) in lws_get_addresses()
290 serv_addr4.sin_family = AF_INET; in lws_socket_bind()
808 sa46->sa4.sin_family = AF_INET; in lws_sa46_parse_numeric_address()
888 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address()
892 if (sa46->sa4.sin_family == AF_INET) in lws_sa46_write_numeric_address()
897 if (sa46->sa4.sin_family == AF_UNIX) in lws_sa46_write_numeric_address()
901 if (!sa46->sa4.sin_family) in lws_sa46_write_numeric_address()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/
Dgetnameinfo.c42 sa.sin_family = AF_INET; in getnameinfo_0100()
89 sa.sin_family = AF_INET; in getnameinfo_0300()
108 sa.sin_family = AF_INET; in getnameinfo_0400()
126 sa.sin_family = AF_INET; in getnameinfo_0500()
169 sa.sin_family = AF_LOCAL; in getnameinfo_0700()
183 addrDst.sin_family = AF_INET; in getnameinfo_0900()
203 addrDst.sin_family = AF_INET; in getnameinfo_1000()
224 addrDst.sin_family = AF_INET; in getnameinfo_1100()
244 addrDst.sin_family = AF_INET; in getnameinfo_1200()
/third_party/libwebsockets/lib/core-net/client/
Dsort-dns.c151 if (sa46->sa4.sin_family == AF_INET) { in lws_sort_dns_scope()
175 if (sa46->sa4.sin_family == AF_INET) { in lws_sort_dns_classify()
239 if (!sa->dest.sa4.sin_family) in lws_sort_dns_scomp()
241 if (!sb->dest.sa4.sin_family) in lws_sort_dns_scomp()
579 s->dest.sa4.sin_family, dest, in lws_sort_dns_dump()
580 s->gateway.sa4.sin_family, gw, in lws_sort_dns_dump()
634 ds->dest.sa4.sin_family = (sa_family_t)ai->ai_family; in lws_sort_dns()
639 ds->dest.sa4.sin_family, afip); in lws_sort_dns()
684 if (ds->dest.sa4.sin_family == AF_INET) { in lws_sort_dns()
686 estr->dest.sa4.sin_family == AF_INET || in lws_sort_dns()
[all …]
/third_party/ltp/utils/sctp/func_tests/
Dtest_connectx.c95 svr_loop[i].sin_family = AF_INET; in main()
98 svr_test[i].v4.sin_family = AF_INET; in main()
101 svr_try[i].sin_family = AF_INET; in main()
109 clt_loop1[i].sin_family = AF_INET; in main()
112 clt_test1[i].v4.sin_family = AF_INET; in main()
115 clt_loop2[i].sin_family = AF_INET; in main()
118 clt_test2[i].v4.sin_family = AF_INET; in main()
121 clt_loop3[i].sin_family = AF_INET; in main()
Dtest_1_to_1_addrs.c119 conn_addr.sin_family = AF_INET; in main()
123 lstn_addr.sin_family = AF_INET; in main()
220 addr->sin_family != lstn_addr.sin_family || in main()
277 addr->sin_family != acpt_addr.sin_family || in main()
Dtest_1_to_1_connectx.c101 conn_addr.sin_family = AF_INET; in main()
105 lstn_addr.sin_family = AF_INET; in main()
142 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
150 conn_addr.sin_family = AF_INET; in main()
Dtest_1_to_1_connect.c104 conn_addr.sin_family = AF_INET; in main()
108 lstn_addr.sin_family = AF_INET; in main()
162 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
170 conn_addr.sin_family = AF_INET; in main()
Dtest_connect.c80 svr_loop.v4.sin_family = AF_INET; in main()
83 clt_loop1.v4.sin_family = AF_INET; in main()
86 clt_loop2.v4.sin_family = AF_INET; in main()
89 clt_loop3.v4.sin_family = AF_INET; in main()
Dtest_basic.c118 loop1.v4.sin_family = AF_INET; in main()
122 loop2.v4.sin_family = AF_INET; in main()
227 if (msgname.v4.sin_family != AF_INET) { in main()
282 if (msgname.v4.sin_family != AF_INET) { in main()
446 if (msgname.v4.sin_family != AF_INET) { in main()
/third_party/ltp/testcases/network/sockets/
DltpClient.c128 udpRemoteServerAddr.sin_family = hostEntry->h_addrtype; in main()
135 tcpRemoteServerAddr.sin_family = hostEntry->h_addrtype; in main()
142 mcastRemoteServerAddr.sin_family = hostEntry->h_addrtype; in main()
160 udpClientAddr.sin_family = AF_INET; in main()
165 tcpClientAddr.sin_family = AF_INET; in main()
215 mcastClientAddr.sin_family = AF_INET; in main()
320 rawTraceAddr.sin_family = hostEntry->h_addrtype; in ltp_run_traceroute_tests()
347 rawAddr.sin_family = hostEntry->h_addrtype; in ltp_run_ping_tests()
632 rawReceiveAddr.sin_family); in ltp_traceroute()
/third_party/libwebsockets/include/libwebsockets/
Dlws-adopt.h100 #define sa46_socklen(_sa46) (socklen_t)((_sa46)->sa4.sin_family == AF_INET ? \
103 #define sa46_sockport(_sa46, _sp) { if ((_sa46)->sa4.sin_family == AF_INET) \
106 #define sa46_address(_sa46) ((uint8_t *)((_sa46)->sa4.sin_family == AF_INET ? \
114 #define sa46_address_len(_sa46) ((_sa46)->sa4.sin_family == AF_INET ? 4 : 16)
/third_party/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c45 sa_family_t sin_family = 0; in verify_res() local
71 sin_family = psin->sin_family; in verify_res()
77 sin_family = psin6->sin6_family; in verify_res()
81 ret |= sin_family != family; in verify_res()
96 p->ai_family, p->ai_addrlen, sin_family, in verify_res()
/third_party/libwebsockets/lib/misc/
Dpeer-limits.c99 if (sa46.sa4.sin_family == AF_INET6) { in lws_get_or_create_peer()
122 if (peerx->sa46.sa4.sin_family == sa46.sa4.sin_family) { in lws_get_or_create_peer()
124 if (sa46.sa4.sin_family == AF_INET6 && in lws_get_or_create_peer()
128 if (sa46.sa4.sin_family == AF_INET && in lws_get_or_create_peer()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind01.c64 sin1.sin_family = AF_INET; in test_setup()
69 sin2.sin_family = AF_INET; in test_setup()
73 sin3.sin_family = AF_INET; in test_setup()
/third_party/libwebsockets/lib/system/dhcpclient/
Ddhcpc4.c122 if (r->is.sa46[LWSDH_SA46_IP].sa4.sin_family != AF_INET) in lws_dhcpc4_prep()
327 r->is.sa46[which].sa4.sin_family = AF_INET; in lws_sa46_set_ipv4()
490 if (!r->is.sa46[LWSDH_SA46_IP].sa4.sin_family || in lws_dhcpc4_parse()
491 !r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_family || in lws_dhcpc4_parse()
492 !r->is.sa46[LWSDH_SA46_IPV4_ROUTER].sa4.sin_family || in lws_dhcpc4_parse()
495 !r->is.sa46[LWSDH_SA46_DNS_SRV_1].sa4.sin_family) { in lws_dhcpc4_parse()
/third_party/libuv/test/
Dtest-platform-output.c134 if (interfaces[i].address.address4.sin_family == AF_INET) { in TEST_IMPL()
136 } else if (interfaces[i].address.address4.sin_family == AF_INET6) { in TEST_IMPL()
142 if (interfaces[i].netmask.netmask4.sin_family == AF_INET) { in TEST_IMPL()
145 } else if (interfaces[i].netmask.netmask4.sin_family == AF_INET6) { in TEST_IMPL()
/third_party/musl/libc-test/src/functionalext/supplement/network/
Daccept4.c51 srvAddr.sin_family = AF_INET; in ServerTaskOne()
92 srvAddr.sin_family = AF_INET; in ServerTaskTwo()
133 srvAddr.sin_family = AF_INET; in ServerTaskThree()
174 srvAddr.sin_family = AF_INET; in ServerTaskFive()
214 srvAddr.sin_family = AF_INET; in ServerTaskSix()
243 srvAddr.sin_family = AF_INET; in ClientTask()
Dsend.c46 srvAddr.sin_family = AF_INET; in SampleServerTask()
78 srvAddr.sin_family = AF_INET; in SampleClientTask()
104 srvAddr.sin_family = AF_INET; in SampleServerNullTask()
132 srvAddr.sin_family = AF_INET; in SampleClientNullTask()
/third_party/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg03.c58 server_addr.sin_family = AF_INET; in client()
66 to_addr.sin_family = AF_INET; in client()
101 server_addr.sin_family = AF_INET; in server()
/third_party/ltp/testcases/kernel/syscalls/accept/
Daccept02.c119 mc_group_addr->sin_family = AF_INET; in setup()
122 server_addr->sin_family = AF_INET; in setup()
125 client_addr->sin_family = AF_INET; in setup()
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c185 sin2.sin_family = AF_INET; in setup()
190 sin3.sin_family = AF_INET; in setup()
195 sin4.sin_family = 47; /* bogus address family */ in setup()
245 sin0->sin_family = AF_INET; in start_server()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Diapp.c198 addr.sin_family = AF_INET; in iapp_send_add()
421 if (paddr->sin_family != AF_INET) { in iapp_init()
423 paddr->sin_family); in iapp_init()
436 if (paddr->sin_family != AF_INET) { in iapp_init()
438 paddr->sin_family); in iapp_init()
445 uaddr.sin_family = AF_INET; in iapp_init()
/third_party/libuv/docs/code/interfaces/
Dmain.c19 if (interface_a.address.address4.sin_family == AF_INET) { in main()
23 else if (interface_a.address.address4.sin_family == AF_INET6) { in main()
/third_party/ltp/testcases/cve/
Dcve-2017-2671.c53 iaddr.sin_family = AF_INET; in setup()
54 uaddr.sin_family = AF_UNSPEC; in setup()

12345678910>>...13