Lines Matching refs:rt_key
258 * route; dst typically comes from rt_key(rt) but may be coming from
358 if (!(rt->rt_flags & RTF_IFSCOPE) || rt_key(rt)->sa_family != AF_INET)
361 return (SINIFSCOPE(rt_key(rt))->sin_ifscope == ma->ifscope);
588 rnh = rt_tables[rt_key(rt)->sa_family];
652 R_Free(rt_key(rt));
896 error = rt_setgate(rt, rt_key(rt), gateway);
1115 * RTF_IFSCOPE flag, callers can simply use its rt_key(rt) to clone it
1244 if (rt_inet_default(rt, rt_key(rt)))
1283 ifscope = sa_get_ifscope(rt_key(rt));
1332 ndst = rt_key(rt);
1372 (struct sockaddr *)rt_key(rt2),
1395 R_Free(rt_key(rt));
1433 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
1441 if (rt_inet_default(rt, rt_key(rt)))
1493 return rtrequest_locked(RTM_DELETE, rt_key(rt),
1536 len = imin(rt_key(rt0)->sa_len, rt_key(rt)->sa_len);
1538 xk1 = (u_char *)rt_key(rt0);
1540 xk2 = (u_char *)rt_key(rt);
1544 mlen = rt_key(rt->rt_parent)->sa_len;
1545 if (mlen > rt_key(rt0)->sa_len)
1563 return (rtrequest_locked(RTM_DELETE, rt_key(rt), NULL,
1587 if (rt_key(rt))
1588 rtrequest_locked(RTM_DELETE, rt_key(rt),
1682 * Copy from 'dst' and not rt_key(rt) because we can get
1684 * which case rt_key(rt) is NULL (and so does rt_gateway).
1687 R_Free(rt_key(rt)); /* free old block; NULL is okay */
1698 * For consistency between rt_gateway and rt_key(gwrt).
1703 rt_key(rt->rt_gwroute)->sa_family == AF_INET) {
1705 sa_get_ifscope(rt_key(rt->rt_gwroute)));
1717 rnh->rnh_walktree_from(rnh, rt_key(rt), rt_mask(rt),
1915 ((INET_DEFAULT(rt_key(RT(rn))) && !INET_DEFAULT(rt_key(RT(rn0)))) ||