Lines Matching refs:addr
135 SOCKADDR addr;
143 (void) memset(&addr, '\0', sizeof addr);
156 addr.sa.sa_family = AF_UNIX;
161 addr.sa.sa_family = AF_INET;
162 L_socksize = sizeof addr.sin;
166 addr.sa.sa_family = AF_INET6;
167 L_socksize = sizeof addr.sin6;
182 addr.sa.sa_family = AF_UNIX;
189 addr.sa.sa_family = AF_INET;
190 L_socksize = sizeof addr.sin;
196 addr.sa.sa_family = AF_INET6;
197 L_socksize = sizeof addr.sin6;
213 addr.sa.sa_family = AF_UNIX;
218 addr.sa.sa_family = AF_INET;
219 L_socksize = sizeof addr.sin;
223 addr.sa.sa_family = AF_INET6;
224 L_socksize = sizeof addr.sin6;
235 if (addr.sa.sa_family == AF_UNIX)
243 if (len >= sizeof addr.sunix.sun_path)
250 (void) sm_strlcpy(addr.sunix.sun_path, colon,
251 sizeof addr.sunix.sun_path);
271 addr.sa.sa_family == AF_INET
277 addr.sa.sa_family == AF_INET6
287 switch (addr.sa.sa_family)
291 addr.sin.sin_addr.s_addr = INADDR_ANY;
297 addr.sin6.sin6_addr = in6addr_any;
347 if (addr.sa.sa_family == AF_INET &&
350 addr.sin.sin_addr.s_addr = hid;
351 addr.sin.sin_port = port;
357 if (addr.sa.sa_family == AF_INET6 &&
361 addr.sin6.sin6_addr = hid6.sin6_addr;
362 addr.sin6.sin6_port = port;
387 hp = mi_gethostbyname(at, addr.sa.sa_family);
395 addr.sa.sa_family = hp->h_addrtype;
400 (void) memmove(&addr.sin.sin_addr,
403 addr.sin.sin_port = port;
409 (void) memmove(&addr.sin6.sin6_addr,
412 addr.sin6.sin6_port = port;
429 switch (addr.sa.sa_family)
433 addr.sin.sin_port = port;
438 addr.sin6.sin6_port = port;
446 sock = socket(addr.sa.sa_family, SOCK_STREAM, 0);
467 addr.sa.sa_family != AF_UNIX &&
480 if (addr.sa.sa_family == AF_UNIX && rmsocket)
514 if (bind(sock, &addr.sa, L_socksize) < 0)
533 if (addr.sa.sa_family == AF_UNIX && len > 0)
553 L_family = addr.sa.sa_family;