From phk Fri Jul 22 21:16:16 1994 Subject: BUG [1.1.5.1] routed To: freebsd-current@freefall.cdrom.com Date: Fri, 22 Jul 1994 21:16:16 -0700 (PDT) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 884 Status: RO Routed in FreeBSD 1.1.5.1 has several problems. One of these are that the routes to the interfaces routed is supposed to tell the world about will be removed. Here is a workaround. The problem is that ifinit() doesn't reset the timer for an interface when it rescans. diff -U2 -r src/usr.sbin/routed/timer.c.orig src/usr.sbin/routed/timer.c --- src/usr.sbin/routed/timer.c.orig Sat Jun 12 14:54:18 1993 +++ src/usr.sbin/routed/timer.c Sat Jul 23 05:06:43 1994 @@ -73,5 +73,10 @@ */ if (!(rt->rt_state & RTS_PASSIVE) && +/* XXX WHO's ever going to reset the timer for an interface ??? */ +#if 0 (supplier || !(rt->rt_state & RTS_INTERFACE))) +#else + !(rt->rt_state & RTS_INTERFACE)) +#endif rt->rt_timer += TIMER_RATE; if (rt->rt_timer >= GARBAGE_TIME) { -- Poul-Henning Kamp TRW Financial Systems, Inc. FreeBSD has, until now, not one single time had an undetected error. :-)