Home
last modified time | relevance | path

Searched refs:sunaddr (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Dnetcat.c484 struct sockaddr_un sunaddr; in unix_connect() local
490 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un)); in unix_connect()
491 sunaddr.sun_family = AF_UNIX; in unix_connect()
493 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >= in unix_connect()
494 sizeof (sunaddr.sun_path)) { in unix_connect()
499 if (connect(s, (struct sockaddr *)&sunaddr, SUN_LEN(&sunaddr)) < 0) { in unix_connect()
513 struct sockaddr_un sunaddr; in unix_listen() local
520 (void) memset(&sunaddr, 0, sizeof (struct sockaddr_un)); in unix_listen()
521 sunaddr.sun_family = AF_UNIX; in unix_listen()
523 if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >= in unix_listen()
[all …]
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dauthfd.c88 struct sockaddr_un sunaddr; in ssh_get_authentication_socket() local
94 sunaddr.sun_family = AF_UNIX; in ssh_get_authentication_socket()
95 strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); in ssh_get_authentication_socket()
106 if (connect(sock, (struct sockaddr *) &sunaddr, sizeof sunaddr) < 0) { in ssh_get_authentication_socket()
/titanic_41/usr/src/cmd/ssh/ssh-agent/
H A Dssh-agent.c786 struct sockaddr_un sunaddr; in after_select() local
800 slen = sizeof(sunaddr); in after_select()
802 (struct sockaddr *)&sunaddr, &slen); in after_select()
934 struct sockaddr_un sunaddr; local
1059 memset(&sunaddr, 0, sizeof(sunaddr));
1060 sunaddr.sun_family = AF_UNIX;
1061 strlcpy(sunaddr.sun_path, socket_name, sizeof(sunaddr.sun_path));
1063 if (bind(sock, (struct sockaddr *) &sunaddr, sizeof(sunaddr)) < 0) {
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dsession.c177 struct sockaddr_un sunaddr; in auth_input_request_forwarding() local
215 memset(&sunaddr, 0, sizeof(sunaddr)); in auth_input_request_forwarding()
216 sunaddr.sun_family = AF_UNIX; in auth_input_request_forwarding()
217 strlcpy(sunaddr.sun_path, auth_sock_name, sizeof(sunaddr.sun_path)); in auth_input_request_forwarding()
219 if (bind(sock, (struct sockaddr *) & sunaddr, sizeof(sunaddr)) < 0) in auth_input_request_forwarding()