Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dadmin.c94 static struct sockaddr_un sunaddr; variable
569 memset(&sunaddr, 0, sizeof(sunaddr)); in admin_init()
570 sunaddr.sun_family = AF_UNIX; in admin_init()
571 snprintf(sunaddr.sun_path, sizeof(sunaddr.sun_path), in admin_init()
581 unlink(sunaddr.sun_path); in admin_init()
582 if (bind(lcconf->sock_admin, (struct sockaddr *)&sunaddr, in admin_init()
583 sizeof(sunaddr)) != 0) { in admin_init()
586 sunaddr.sun_path, strerror(errno)); in admin_init()
591 if (chown(sunaddr.sun_path, adminsock_owner, adminsock_group) != 0) { in admin_init()
594 sunaddr.sun_path, adminsock_owner, in admin_init()
[all …]
/external/openssh/
Dauthfd.c92 struct sockaddr_un sunaddr; in ssh_get_authentication_socket() local
101 memset(&sunaddr, 0, sizeof(sunaddr)); in ssh_get_authentication_socket()
102 sunaddr.sun_family = AF_UNIX; in ssh_get_authentication_socket()
103 strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); in ssh_get_authentication_socket()
110 connect(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { in ssh_get_authentication_socket()
Dmisc.c1159 struct sockaddr_un sunaddr; in unix_listener() local
1162 memset(&sunaddr, 0, sizeof(sunaddr)); in unix_listener()
1163 sunaddr.sun_family = AF_UNIX; in unix_listener()
1164 if (strlcpy(sunaddr.sun_path, path, sizeof(sunaddr.sun_path)) >= sizeof(sunaddr.sun_path)) { in unix_listener()
1182 if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { in unix_listener()
Dchannels.c3334 struct sockaddr_un sunaddr; local
3343 if (strlen(fwd->connect_path) > sizeof(sunaddr.sun_path)) {
3376 if (strlen(fwd->listen_path) > sizeof(sunaddr.sun_path)) {
3963 struct sockaddr_un *sunaddr; local
3964 char ntop[NI_MAXHOST], strport[MAXIMUM(NI_MAXSERV,sizeof(sunaddr->sun_path))];
3970 sunaddr = (struct sockaddr_un *)cctx->ai->ai_addr;
3972 strlcpy(strport, sunaddr->sun_path, sizeof(strport));
4047 struct sockaddr_un *sunaddr; local
4050 if (strlen(name) > sizeof(sunaddr->sun_path)) {
4060 ai = xmalloc(sizeof(*ai) + sizeof(*sunaddr));
[all …]
Dssh-agent.c1073 struct sockaddr_un sunaddr; in after_select() local
1087 slen = sizeof(sunaddr); in after_select()
1089 (struct sockaddr *)&sunaddr, &slen); in after_select()