Lines Matching refs:zonestr
48 static size_t getzonestr(const struct sockaddr_in6 *sa, char *zonestr,
284 char zonestr[LIFNAMSIZ];
289 if (((zonelen = getzonestr(sa, zonestr, sizeof (zonestr))) == 0) ||
296 (void) strlcpy((host + addrlen + 1), zonestr, (zonelen + 1));
301 * getzonestr(sa, zonestr)
308 * zonestr is atleast LIFNAMSIZ in length, since this is the longest
313 * >0 zonestr is filled with a valid zoneid string and the return value is the
317 getzonestr(const struct sockaddr_in6 *sa, char *zonestr, size_t zonelen)
322 if (zonestr == NULL) {
333 if ((retstr = if_indextoname(ifindex, zonestr)) != NULL) {
343 if ((n = snprintf(zonestr, zonelen, "%u",