Searched refs:servaddr (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_ndpd.c | 257 struct sockaddr_un servaddr; in i_ipadm_send_ndpd_cmd() local 277 bzero(&servaddr, sizeof (servaddr)); in i_ipadm_send_ndpd_cmd() 278 servaddr.sun_family = AF_UNIX; in i_ipadm_send_ndpd_cmd() 279 (void) strlcpy(servaddr.sun_path, IPADM_UDS_PATH, in i_ipadm_send_ndpd_cmd() 280 sizeof (servaddr.sun_path)); in i_ipadm_send_ndpd_cmd() 281 if (connect(fd, (struct sockaddr *)&servaddr, sizeof (servaddr)) == -1) in i_ipadm_send_ndpd_cmd()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | uart_backend.c | 471 struct sockaddr_un servaddr; in init_sock() local 473 bzero(&servaddr, sizeof (servaddr)); in init_sock() 474 servaddr.sun_family = AF_UNIX; in init_sock() 476 if (strlcpy(servaddr.sun_path, path, sizeof (servaddr.sun_path)) >= in init_sock() 477 sizeof (servaddr.sun_path)) { in init_sock() 488 (void) unlink(servaddr.sun_path); in init_sock() 490 if (bind(servfd, (struct sockaddr *)&servaddr, in init_sock() 491 sizeof (servaddr)) == -1) { in init_sock() 505 (void) unlink(servaddr.sun_path); in init_sock()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 467 struct sockaddr_un servaddr; in init_console_sock() local 469 bzero(&servaddr, sizeof (servaddr)); in init_console_sock() 470 servaddr.sun_family = AF_UNIX; in init_console_sock() 471 (void) snprintf(servaddr.sun_path, sizeof (servaddr.sun_path), in init_console_sock() 478 (void) unlink(servaddr.sun_path); in init_console_sock() 480 if (bind(servfd, (struct sockaddr *)&servaddr, in init_console_sock() 481 sizeof (servaddr)) == -1) { in init_console_sock() 495 (void) unlink(servaddr.sun_path); in init_console_sock()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 261 struct sockaddr_un servaddr; in get_console_master() local 272 bzero(&servaddr, sizeof (servaddr)); in get_console_master() 273 servaddr.sun_family = AF_UNIX; in get_console_master() 274 (void) snprintf(servaddr.sun_path, sizeof (servaddr.sun_path), in get_console_master() 277 if (connect(sockfd, (struct sockaddr *)&servaddr, in get_console_master() 278 sizeof (servaddr)) == -1) { in get_console_master()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 2184 struct sockaddr_un servaddr; in ndpd_setup_cmd_listener() local 2192 bzero(&servaddr, sizeof (servaddr)); in ndpd_setup_cmd_listener() 2193 servaddr.sun_family = AF_UNIX; in ndpd_setup_cmd_listener() 2194 (void) strlcpy(servaddr.sun_path, IPADM_UDS_PATH, in ndpd_setup_cmd_listener() 2195 sizeof (servaddr.sun_path)); in ndpd_setup_cmd_listener() 2196 (void) unlink(servaddr.sun_path); in ndpd_setup_cmd_listener() 2197 ret = bind(sock, (struct sockaddr *)&servaddr, sizeof (servaddr)); in ndpd_setup_cmd_listener()
|