Searched refs:sunaddr (Results 1 – 1 of 1) sorted by relevance
/external/ipsec-tools/src/racoon/ |
D | admin.c | 94 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 …]
|