Lines Matching defs:localaddr
1269 srvr_sockaddr_union_t localaddr;
1273 la_size = sizeof(localaddr.sa4);
1276 la_size = sizeof(localaddr.sa6);
1278 memset(&localaddr.sa, 0, (size_t)la_size);
1279 if(getsockname(sock, &localaddr.sa, &la_size) < 0) {
1286 switch (localaddr.sa.sa_family) {
1288 *listenport = ntohs(localaddr.sa4.sin_port);
1292 *listenport = ntohs(localaddr.sa6.sin6_port);