Lines Matching refs:scopeid
2210 u_int32_t scopeid; in in6_embedscope() local
2214 scopeid = sin6->sin6_scope_id; in in6_embedscope()
2225 if (scopeid == 0) { in in6_embedscope()
2226 scopeid = scope6_addr2default(in6); in in6_embedscope()
2275 } else if (scopeid != 0) { in in6_embedscope()
2281 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_embedscope()
2287 ifp = ifindex2ifnet[scopeid]; in in6_embedscope()
2292 in6->s6_addr16[1] = htons(scopeid & 0xffff); in in6_embedscope()
2295 *ret_ifscope = scopeid; in in6_embedscope()
2323 u_int32_t scopeid; in in6_recoverscope() local
2343 scopeid = ntohs(sin6->sin6_addr.s6_addr16[1]); in in6_recoverscope()
2344 if (scopeid) { in in6_recoverscope()
2351 if (!IF_INDEX_IN_RANGE(scopeid)) { in in6_recoverscope()
2354 if (ifp && ifp->if_index != scopeid) { in in6_recoverscope()
2358 sin6->sin6_scope_id = scopeid; in in6_recoverscope()