Home
last modified time | relevance | path

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

1234567891011

/third_party/ltp/utils/sctp/func_tests/
Dtest_connectx.c91 svr_loop[i].sin_family = AF_INET; in main()
94 svr_test[i].v4.sin_family = AF_INET; in main()
97 svr_try[i].sin_family = AF_INET; in main()
105 clt_loop1[i].sin_family = AF_INET; in main()
108 clt_test1[i].v4.sin_family = AF_INET; in main()
111 clt_loop2[i].sin_family = AF_INET; in main()
114 clt_test2[i].v4.sin_family = AF_INET; in main()
117 clt_loop3[i].sin_family = AF_INET; in main()
Dtest_1_to_1_addrs.c115 conn_addr.sin_family = AF_INET; in main()
119 lstn_addr.sin_family = AF_INET; in main()
216 addr->sin_family != lstn_addr.sin_family || in main()
273 addr->sin_family != acpt_addr.sin_family || in main()
Dtest_1_to_1_connect.c100 conn_addr.sin_family = AF_INET; in main()
104 lstn_addr.sin_family = AF_INET; in main()
158 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
166 conn_addr.sin_family = AF_INET; in main()
Dtest_1_to_1_connectx.c99 conn_addr.sin_family = AF_INET; in main()
103 lstn_addr.sin_family = AF_INET; in main()
150 conn_addr.sin_family = 9090; /*Assigning invalid address family*/ in main()
158 conn_addr.sin_family = AF_INET; in main()
Dtest_connect.c76 svr_loop.v4.sin_family = AF_INET; in main()
79 clt_loop1.v4.sin_family = AF_INET; in main()
82 clt_loop2.v4.sin_family = AF_INET; in main()
85 clt_loop3.v4.sin_family = AF_INET; in main()
Dtest_1_to_1_send.c91 conn_addr.sin_family = AF_INET; in main()
95 lstn_addr.sin_family = AF_INET; in main()
190 conn_addr.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/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/core-net/
Dnetwork.c53 addr4.sin_family = AF_UNSPEC; in lws_get_addresses()
91 while (addr4.sin_family == AF_UNSPEC && res) { in lws_get_addresses()
96 addr4.sin_family = AF_INET; in lws_get_addresses()
105 if (addr4.sin_family == AF_UNSPEC) in lws_get_addresses()
268 serv_addr4.sin_family = AF_INET; in lws_socket_bind()
730 sa46->sa4.sin_family = AF_INET; in lws_sa46_parse_numeric_address()
810 if (sa46->sa4.sin_family == AF_INET6) in lws_sa46_write_numeric_address()
814 if (sa46->sa4.sin_family == AF_INET) in lws_sa46_write_numeric_address()
824 if (sa46a->sa4.sin_family != sa46b->sa4.sin_family) in lws_sa46_compare_ads()
828 if (sa46a->sa4.sin_family == AF_INET6) in lws_sa46_compare_ads()
/third_party/curl/lib/
Dsocketpair.c80 a.inaddr.sin_family = AF_INET; in Curl_socketpair()
122 if(a.inaddr.sin_family != a2.inaddr.sin_family || in Curl_socketpair()
/third_party/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c97 err |= psin->sin_family != AF_INET; in gaiv4()
108 psin ? psin->sin_family : 0, in gaiv4()
174 err |= psin->sin_family != AF_INET; in gaiv4()
185 psin ? psin->sin_family : 0, in gaiv4()
222 err |= psin->sin_family != AF_INET; in gaiv4()
233 psin ? psin->sin_family : 0, in gaiv4()
289 err |= psin->sin_family != AF_INET; in gaiv4()
300 psin ? psin->sin_family : 0, in gaiv4()
343 err |= psin->sin_family != AF_INET; in gaiv4()
354 psin ? psin->sin_family : 0, in gaiv4()
[all …]
/third_party/libuv/docs/code/interfaces/
Dmain.c19 if (interface.address.address4.sin_family == AF_INET) { in main()
23 else if (interface.address.address4.sin_family == AF_INET6) { in main()
/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/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.c115 mc_group_addr->sin_family = AF_INET; in setup()
118 server_addr->sin_family = AF_INET; in setup()
121 client_addr->sin_family = AF_INET; in setup()
Daccept01.c70 sin0.sin_family = AF_INET; in test_setup()
79 sin1.sin_family = AF_INET; in test_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/ltp/testcases/cve/
Dcve-2017-2671.c53 iaddr.sin_family = AF_INET; in setup()
54 uaddr.sin_family = AF_UNSPEC; in setup()
/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/wpa_supplicant/wpa_supplicant-2.9_standard/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/ltp/testcases/kernel/sched/clisrv/
Dpthcli.c111 serv_addr.sin_family = AF_INET; in main()
117 "serv_addr.sin_port = %d\n", __FILE__, serv_addr.sin_family, in main()
Dpthserv.c110 serv_addr.sin_family = AF_INET; in main()
116 "serv_addr.sin_port = %d\n", __FILE__, serv_addr.sin_family, in main()
/third_party/musl/libc-test/src/functional/
Dsocket.c16 struct sockaddr_in sa = { .sin_family = AF_INET }; in main()
37 sa.sin_family = AF_INET; in main()
/third_party/musl/src/network/
Dres_msend.c60 ns[nns].sin.sin_family = AF_INET; in __res_msend_rc()
71 sa.sin.sin_family = family; in __res_msend_rc()
96 if (ns[i].sin.sin_family != AF_INET) continue; in __res_msend_rc()
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_send.c62 mcast_out.sin_family = sin.sin_family = AF_INET; in main()

1234567891011