Lines Matching defs:rt
942 link_rtrequest(int cmd, struct rtentry *rt, struct sockaddr *sa)
948 if (cmd != RTM_ADD || ((ifa = rt->rt_ifa) == 0) ||
949 ((ifp = ifa->ifa_ifp) == 0) || ((dst = rt_key(rt)) == 0))
953 rtsetifa(rt, ifa);
955 ifa->ifa_rtrequest(cmd, rt, sa);
2161 struct rtentry *rt = (struct rtentry *)rn;
2165 if (rt != NULL && rt->rt_ifp == ifp) {
2171 if ((rt->rt_flags & RTF_UP) == 0)
2174 err = rtrequest_locked(RTM_DELETE, rt_key(rt), rt->rt_gateway,
2175 rt_mask(rt), rt->rt_flags,
2205 struct rtentry *rt = (struct rtentry *)rn;
2208 if (rt->rt_ifp == ifp) {
2214 if (!(rt->rt_rmx.rmx_locks & RTV_MTU) && rt->rt_rmx.rmx_mtu)
2215 rt->rt_rmx.rmx_mtu = ifp->if_mtu;