Lines Matching refs:zone
87 const char *zone, uint32_t *sin6_scope_id);
590 ++zonestr; /* make zonestr point at start of <zone-id> */
591 /* ensure zone is valid */
745 * getscopeidfromzone(sa, zone, sin6_scope_id)
747 * Converts the string pointed to by 'zone' into a sin6_scope_id.
748 * 'zone' will either be a pointer to an interface name or will
757 * 2. The string pointed to by 'zone' can not be translate to a valid
761 getscopeidfromzone(const struct sockaddr_in6 *sa, const char *zone,
770 * pointed to by 'zone'. Since the address is part of the link
773 * If an interface index can not be found for 'zone', then
774 * treat 'zone' as a literal sin6_scope_id value.
776 if ((*sin6_scope_id = if_nametoindex(zone)) != 0) {
779 if ((ul_scope_id = strtoul(zone, &endp, 10)) != 0) {