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.c1064 struct sockaddr_un sunaddr; in unix_listener() local
1067 memset(&sunaddr, 0, sizeof(sunaddr)); in unix_listener()
1068 sunaddr.sun_family = AF_UNIX; in unix_listener()
1069 if (strlcpy(sunaddr.sun_path, path, sizeof(sunaddr.sun_path)) >= sizeof(sunaddr.sun_path)) { in unix_listener()
1087 if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { in unix_listener()
Dchannels.c2945 struct sockaddr_un sunaddr; local
2954 if (strlen(fwd->connect_path) > sizeof(sunaddr.sun_path)) {
2987 if (strlen(fwd->listen_path) > sizeof(sunaddr.sun_path)) {
3608 struct sockaddr_un *sunaddr; local
3609 char ntop[NI_MAXHOST], strport[MAX(NI_MAXSERV,sizeof(sunaddr->sun_path))];
3615 sunaddr = (struct sockaddr_un *)cctx->ai->ai_addr;
3617 strlcpy(strport, sunaddr->sun_path, sizeof(strport));
3688 struct sockaddr_un *sunaddr; local
3691 if (strlen(name) > sizeof(sunaddr->sun_path)) {
3701 ai = xmalloc(sizeof(*ai) + sizeof(*sunaddr));
[all …]
Dssh-agent.c1012 struct sockaddr_un sunaddr; in after_select() local
1026 slen = sizeof(sunaddr); in after_select()
1028 (struct sockaddr *)&sunaddr, &slen); in after_select()