Lines Matching defs:rt
148 struct rtentry *rt = (struct rtentry *)treenodes;
149 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)rt_key(rt);
156 rt->rt_flags |= RTF_MULTICAST;
158 if (!(rt->rt_flags & (RTF_HOST | RTF_CLONING | RTF_MULTICAST))) {
159 rt->rt_flags |= RTF_PRCLONING;
176 if (rt->rt_flags & RTF_HOST) {
177 if (IN6_ARE_ADDR_EQUAL(&satosin6(rt->rt_ifa->ifa_addr)
180 rt->rt_flags |= RTF_LOCAL;
184 if (!rt->rt_rmx.rmx_mtu && !(rt->rt_rmx.rmx_locks & RTV_MTU)
185 && rt->rt_ifp)
186 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu;
189 if (ret == NULL && rt->rt_flags & RTF_HOST) {
212 } else if (ret == NULL && rt->rt_flags & RTF_CLONING) {
233 && rt2->rt_ifp == rt->rt_ifp) {
261 struct rtentry *rt = (struct rtentry *)rn;
263 if (rt && rt->rt_refcnt == 0) { /* this is first reference */
264 if (rt->rt_flags & RTPRF_OURS) {
265 rt->rt_flags &= ~RTPRF_OURS;
266 rt->rt_rmx.rmx_expire = 0;
297 struct rtentry *rt = (struct rtentry *)rn;
299 if (!(rt->rt_flags & RTF_UP))
302 if ((rt->rt_flags & (RTF_LLINFO | RTF_HOST)) != RTF_HOST)
305 if ((rt->rt_flags & (RTF_WASCLONED | RTPRF_OURS)) != RTF_WASCLONED)
313 if ((rt->rt_flags & RTF_DELCLONE) || rtq_reallyold == 0) {
320 if (rtrequest_locked(RTM_DELETE, (struct sockaddr *)rt_key(rt),
321 rt->rt_gateway, rt_mask(rt), rt->rt_flags, &rt) == 0) {
323 rtunref(rt);
329 rt->rt_flags |= RTPRF_OURS;
330 rt->rt_rmx.rmx_expire = timenow.tv_sec + rtq_reallyold;
353 struct rtentry *rt = (struct rtentry *)rn;
360 if (rt->rt_flags & RTPRF_OURS) {
363 if (ap->draining || rt->rt_rmx.rmx_expire <= timenow.tv_sec) {
364 if (rt->rt_refcnt > 0)
368 (struct sockaddr *)rt_key(rt),
369 rt->rt_gateway, rt_mask(rt),
370 rt->rt_flags, 0);
378 && (rt->rt_rmx.rmx_expire - timenow.tv_sec
380 rt->rt_rmx.rmx_expire = timenow.tv_sec
384 rt->rt_rmx.rmx_expire);
456 struct rtentry *rt = (struct rtentry *)rn;
463 if (!rt)
464 panic("rt == NULL in in6_mtuexpire");
466 if (rt->rt_rmx.rmx_expire && !(rt->rt_flags & RTF_PROBEMTU)) {
467 if (rt->rt_rmx.rmx_expire <= timenow.tv_sec) {
468 rt->rt_flags |= RTF_PROBEMTU;
471 rt->rt_rmx.rmx_expire);