Lines Matching defs:rt

74 	struct rt_entry *rt;
126 rt = rtlookup(ipx_nettosa(n->rip_dst));
133 (u_long)rt);
140 if (rt == 0)
147 if (rt->rt_metric == (HOPCNT_INFINITY-1))
149 n->rip_metric = htons( rt == 0 ? HOPCNT_INFINITY :
150 min(rt->rt_metric+1, HOPCNT_INFINITY));
151 n->rip_ticks = htons(rt->rt_ticks+1);
160 register struct rt_entry *trt = rt;
198 rt = rtfind(from);
199 if (rt == 0 || (rt->rt_state & RTS_INTERFACE) == 0) {
203 rt->rt_timer = 0;
210 if ((rt = rtfind(from)) && (rt->rt_state & RTS_INTERFACE)) {
212 rt->rt_timer = 0;
224 rt = rtfind(sa = ipx_nettosa(n->rip_dst));
225 if (rt == 0) {
247 if (!equal(from, &rt->rt_router) &&
248 ntohs(n->rip_ticks) == rt->rt_ticks &&
249 ntohs(n->rip_metric) == rt->rt_metric &&
251 register struct rt_entry *trt = rt->rt_clone;
261 rtadd_clone(rt, sa, from,
267 if ((equal(from, &rt->rt_router) &&
268 ((ntohs(n->rip_ticks) != rt->rt_ticks) ||
269 (ntohs(n->rip_metric) != rt->rt_metric))) ||
270 (ntohs(n->rip_ticks) < rt->rt_ticks) ||
271 ((ntohs(n->rip_ticks) == rt->rt_ticks) &&
272 (ntohs(n->rip_metric) < rt->rt_metric)) ||
273 (rt->rt_timer > (EXPIRE_TIME*2/3) &&
274 rt->rt_metric == ntohs(n->rip_metric) &&
276 rtchange(rt, from, ntohs(n->rip_metric),
279 rt->rt_timer = EXPIRE_TIME;
281 rt->rt_timer = 0;
283 } else if (equal(from, &rt->rt_router) &&
284 (ntohs(n->rip_ticks) == rt->rt_ticks) &&
285 (ntohs(n->rip_metric) == rt->rt_metric) &&
287 rt->rt_timer = 0;
292 register struct rt_entry *rt;
296 for (rt = rh->rt_forw;
297 rt != (struct rt_entry *)rh;
298 rt = rt->rt_forw)
299 rt->rt_state &= ~RTS_CHANGED;