Lines Matching refs:scopeid
2202 u_int32_t scopeid; in in6_embedscope() local
2206 scopeid = sin6->sin6_scope_id; in in6_embedscope()
2217 if (scopeid == 0) { in in6_embedscope()
2218 scopeid = scope6_addr2default(in6); in in6_embedscope()
2267 } else if (scopeid != 0) { in in6_embedscope()
2273 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_embedscope()
2279 ifp = ifindex2ifnet[scopeid]; in in6_embedscope()
2284 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_embedscope()
2287 *ret_ifscope = scopeid; in in6_embedscope()
2315 u_int32_t scopeid; in in6_recoverscope() local
2335 scopeid = ntohs(sin6->sin6_addr.s6_addr16[1]); in in6_recoverscope()
2336 if (scopeid) { in in6_recoverscope()
2343 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_recoverscope()
2346 if (ifp && ifp->if_index != scopeid) { in in6_recoverscope()
2350 sin6->sin6_scope_id = scopeid; in in6_recoverscope()