Lines Matching refs:rt_key

145  * rt_key, rt_gateway, rt_ifp, rt_ifa
154 * entry will prevent its rt_key, rt_gateway, rt_ifp and rt_ifa
404 * route; dst typically comes from rt_key(rt) but may be coming from
717 int af = rt_key(rt)->sa_family;
723 (SINIFSCOPE(rt_key(rt))->sin_scope_id == ma->ifscope) :
724 (SIN6IFSCOPE(rt_key(rt))->sin6_scope_id == ma->ifscope));
1032 rnh = rt_tables[rt_key(rt)->sa_family];
1103 R_Free(rt_key(rt));
1342 error = rt_setgate(rt, rt_key(rt), gateway);
1590 * RTF_IFSCOPE flag, callers can simply use its rt_key(rt) to clone it
1756 if (rt_primary_default(rt, rt_key(rt))) {
1757 set_primary_ifscope(rt_key(rt)->sa_family,
1834 sin_get_ifscope(rt_key(rt)) :
1835 sin6_get_ifscope(rt_key(rt));
1895 ndst = rt_key(rt);
1935 * rnh_lock is held here, so rt_key and
1938 (void) rtrequest_locked(RTM_DELETE, rt_key(rt2),
1957 rt_set_gwroute(rt, rt_key(rt), NULL);
1962 R_Free(rt_key(rt));
2021 if (rt_primary_default(rt, rt_key(rt))) {
2022 set_primary_ifscope(rt_key(rt)->sa_family,
2041 rt_set_gwroute(rt, rt_key(rt), rt->rt_gwroute);
2049 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
2110 * Safe to drop rt_lock and use rt_key, since holding
2115 return (rtrequest_locked(RTM_DELETE, rt_key(rt), NULL,
2162 len = imin(rt_key(rt0)->sa_len, rt_key(rt)->sa_len);
2164 xk1 = (u_char *)rt_key(rt0);
2166 xk2 = (u_char *)rt_key(rt);
2201 * Safe to drop rt_lock and use rt_key, since holding rnh_lock here
2205 return (rtrequest_locked(RTM_DELETE, rt_key(rt), NULL,
2212 * for rt_key and rt_gateway in the event the gateway portion changes.
2223 * rt_key and rt_gateway are allocated out of the same memory chunk.
2284 if (rt_key(rt) != NULL) {
2286 * Safe to drop rt_lock and use rt_key, rt_gateway,
2291 (void) rtrequest_locked(RTM_DELETE, rt_key(rt),
2427 * Copy from 'dst' and not rt_key(rt) because we can get
2429 * which case rt_key(rt) is NULL (and so does rt_gateway).
2433 R_Free(rt_key(rt)); /* free old block; NULL is okay */
2444 * For consistency between rt_gateway and rt_key(gwrt).
2449 rt_key(rt->rt_gwroute)->sa_family == AF_INET) {
2451 sin_get_ifscope(rt_key(rt->rt_gwroute)));
2453 rt_key(rt->rt_gwroute)->sa_family == AF_INET6) {
2455 sin6_get_ifscope(rt_key(rt->rt_gwroute)));
2469 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
2517 SA_DEFAULT(rt_key(rt->rt_parent)) &&
2767 ((SA_DEFAULT(rt_key(RT(rn))) && !SA_DEFAULT(rt_key(RT(rn0)))) ||
2806 int af = rt_key(rt)->sa_family;
3079 struct radix_node_head *rnh = rt_tables[rt_key(rt)->sa_family];
3088 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
3440 rt_set_gwroute(rt, rt_key(rt), gwrt);
3534 rt_key(gwrt)->sa_family && (rt->rt_gwroute == NULL ||
3542 * We need to compare rt_key and rt_gateway; create
3545 (void) sa_copy(rt_key(gwrt), &key_ss, NULL);
3550 isequal = equal(rt_key(gwrt), rt->rt_gateway);
3558 rt_set_gwroute(rt, rt_key(rt), gwrt);