Lines Matching refs:sa_family
39 sa_family_t sa_family; member
44 .sa_family = AF_UNSPEC,
111 static void netDriver_bindToRndLoopback(int sock, sa_family_t sa_family) { in netDriver_bindToRndLoopback() argument
112 if (sa_family != AF_INET) { in netDriver_bindToRndLoopback()
126 int sock = socket(addr->sa_family, SOCK_STREAM, 0); in netDriver_sockConnAddr()
128 PLOG_D("socket(type=%d for dst_addr='%s', SOCK_STREAM, 0)", addr->sa_family, in netDriver_sockConnAddr()
143 netDriver_bindToRndLoopback(sock, addr->sa_family); in netDriver_sockConnAddr()
154 int netDriver_sockConnLoopback(sa_family_t sa_family, uint16_t portno) { in netDriver_sockConnLoopback() argument
159 if (sa_family == AF_INET) { in netDriver_sockConnLoopback()
169 if (sa_family == AF_INET6) { in netDriver_sockConnLoopback()
181 LOG_E("Unknown SA_FAMILY=%d specified", (int)sa_family); in netDriver_sockConnLoopback()
240 hfnd_globals.sa_family = AF_INET; in netDriver_waitForServerReady()
246 hfnd_globals.sa_family = AF_INET6; in netDriver_waitForServerReady()
312 (int)getpid(), (hfnd_globals.sa_family == AF_INET ? "TCP4:127.0.0.1" : "TCP6:[::1]"), in LLVMFuzzerInitialize()
319 int sock = netDriver_sockConnLoopback(hfnd_globals.sa_family, hfnd_globals.tcp_port); in LLVMFuzzerTestOneInput()