Home
last modified time | relevance | path

Searched refs:scopeid (Results 1 – 1 of 1) sorted by relevance

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp651 uint32_t scopeid; in explore_numeric_scope() local
656 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope()
660 sin6->sin6_scope_id = scopeid; in explore_numeric_scope()
790 static int ip6_str2scopeid(const char* scope, struct sockaddr_in6* sin6, uint32_t* scopeid) { in ip6_str2scopeid() argument
797 assert(scopeid != NULL); in ip6_str2scopeid()
810 *scopeid = if_nametoindex(scope); in ip6_str2scopeid()
811 if (*scopeid != 0) return 0; in ip6_str2scopeid()
817 *scopeid = (uint32_t)(lscopeid & 0xffffffffUL); in ip6_str2scopeid()
818 if (errno == 0 && ep && *ep == '\0' && *scopeid == lscopeid) in ip6_str2scopeid()