Lines Matching defs:rt
137 register struct rtentry *rt;
145 if (rt = rt0) {
146 if ((rt->rt_flags & RTF_UP) == 0) {
147 if (rt0 = rt = RTALLOC1(dst, 1))
148 rtunref(rt);
152 if (rt->rt_flags & RTF_GATEWAY) {
153 if (rt->rt_gwroute == 0)
155 if (((rt = rt->rt_gwroute)->rt_flags & RTF_UP) == 0) {
156 rtfree(rt); rt = rt0;
157 lookup: rt->rt_gwroute = RTALLOC1(rt->rt_gateway, 1);
158 if ((rt = rt->rt_gwroute) == 0)
162 if (rt->rt_flags & RTF_REJECT)
163 if (rt->rt_rmx.rmx_expire == 0 ||
164 time_second < rt->rt_rmx.rmx_expire)
165 senderr(rt == rt0 ? EHOSTDOWN : EHOSTUNREACH);
173 if (!ARPRESOLVE(ac, rt, m, dst, edst, rt0))
205 if (rt && (sdl = (struct sockaddr_dl *)rt->rt_gateway) &&
235 (struct sockaddr_dl *) rt -> rt_gateway;