Lines Matching defs:scope
841 ep = mp + 16; /* XXX: scope field? */
998 /* Rule 2: Prefer matching scope. */
1063 /* Rule 8: Prefer smaller scope. */
1093 * Copy from scope.c.
1111 /* just use the scope field of the multicast address */
1115 * Unicast addresses: map scope type to corresponding scope
1117 * XXX: hardcoded scope type values are bad...
1120 return 1; /* node local scope */
1122 return 2; /* link-local scope */
1124 return 5; /* site-local scope */
1125 return 14; /* global scope */
1133 /* IPv4 autoconfiguration addresses have link-local scope. */
1136 /* Private addresses have site-local scope. */
1141 /* Loopback addresses have link-local scope. */
1384 * numeric hostname with scope
1397 const char *cp, *scope;
1425 * Handle special case of <scoped_address><delimiter><scope id>
1433 scope = cp + 1;
1443 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) {
1644 /* convert a string to a scope identifier. XXX: IPv6 specific */
1646 ip6_str2scopeid(const char *scope, struct sockaddr_in6 *sin6, uint32_t *scopeid)
1652 _DIAGASSERT(scope != NULL);
1659 if (*scope == '\0')
1668 *scopeid = if_nametoindex(scope);
1685 lscopeid = strtoul(scope, &ep, 10);