Lines Matching refs:scope
854 ep = mp + 16; /* XXX: scope field? */
1018 /* Rule 2: Prefer matching scope. */
1083 /* Rule 8: Prefer smaller scope. */
1113 * Copy from scope.c.
1131 /* just use the scope field of the multicast address */
1135 * Unicast addresses: map scope type to corresponding scope
1137 * XXX: hardcoded scope type values are bad...
1140 return 1; /* node local scope */
1142 return 2; /* link-local scope */
1144 return 5; /* site-local scope */
1145 return 14; /* global scope */
1153 /* IPv4 autoconfiguration addresses have link-local scope. */
1156 /* Private addresses have site-local scope. */
1161 /* Loopback addresses have link-local scope. */
1404 * numeric hostname with scope
1416 char *cp, *hostname2 = NULL, *scope, *addr;
1444 * Handle special case of <scoped_address><delimiter><scope id>
1452 scope = cp + 1;
1462 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) {
1668 /* convert a string to a scope identifier. XXX: IPv6 specific */
1670 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid)
1676 _DIAGASSERT(scope != NULL);
1683 if (*scope == '\0')
1692 *scopeid = if_nametoindex(scope);
1709 lscopeid = strtoul(scope, &ep, 10);