Lines Matching refs:sunaddr
2945 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));
3702 memset(ai, 0, sizeof(*ai) + sizeof(*sunaddr));
3704 ai->ai_addrlen = sizeof(*sunaddr);
3708 sunaddr = (struct sockaddr_un *)ai->ai_addr;
3709 sunaddr->sun_family = AF_UNIX;
3710 strlcpy(sunaddr->sun_path, name, sizeof(sunaddr->sun_path));