Lines Matching refs:scopeid
2213 u_int32_t scopeid; in in6_embedscope() local
2217 scopeid = sin6->sin6_scope_id; in in6_embedscope()
2228 if (scopeid == 0) { in in6_embedscope()
2229 scopeid = scope6_addr2default(in6); in in6_embedscope()
2278 } else if (scopeid != 0) { in in6_embedscope()
2284 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_embedscope()
2290 ifp = ifindex2ifnet[scopeid]; in in6_embedscope()
2295 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_embedscope()
2298 *ret_ifscope = scopeid; in in6_embedscope()
2326 u_int32_t scopeid; in in6_recoverscope() local
2346 scopeid = ntohs(sin6->sin6_addr.s6_addr16[1]); in in6_recoverscope()
2347 if (scopeid) { in in6_recoverscope()
2354 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_recoverscope()
2357 if (ifp && ifp->if_index != scopeid) { in in6_recoverscope()
2361 sin6->sin6_scope_id = scopeid; in in6_recoverscope()