Date: Wed, 28 Apr 1999 20:12:54 +0200 From: Jos Backus <Jos.Backus@nl.origin-it.com> To: current@freebsd.org Subject: Re: -current's routing code... Message-ID: <19990428201254.A14332@hal.mpn.cp.philips.com> In-Reply-To: <19990427233818.A66120@hal.mpn.cp.philips.com>; from Jos Backus on Tue, Apr 27, 1999 at 11:38:18PM %2B0200 References: <4.1.19990426221303.00924da0@216.67.14.69> <199904271419.IAA17797@harmony.village.org> <199904271921.MAA05271@vashon.polstra.com> <19990427233818.A66120@hal.mpn.cp.philips.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Fwiw:
The patch below unbreaks -current for me.
[Luoqi Chen's message <199904270645.CAA21642@lor.watermarkgroup.com> below]
This broke routing, part of the route domain init needs to be done after
all domains are attached. It happened that the new kernel I just made
listed routedomain before inetdomain...
-lq
Index: route.c
===================================================================
RCS file: /home/ncvs/src/sys/net/route.c,v
retrieving revision 1.51
diff -u -r1.51 route.c
--- route.c 1999/01/27 22:42:14 1.51
+++ route.c 1999/04/27 06:22:50
@@ -43,6 +43,7 @@
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/domain.h>
+#include <sys/kernel.h>
#include <net/if.h>
#include <net/route.h>
@@ -77,7 +78,9 @@
route_init()
{
rn_init(); /* initialize all zeroes, all ones, mask table */
+#if 0
rtable_init((void **)rt_tables);
+#endif
}
/*
@@ -1062,3 +1065,5 @@
}
return (error);
}
+
+SYSINIT(rtable, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY, rtable_init, rt_tables);
--
Jos Backus _/ _/_/_/ "Reliability means never
_/ _/ _/ having to say you're sorry."
_/ _/_/_/ -- D. J. Bernstein
_/ _/ _/ _/
Jos.Backus@nl.origin-it.com _/_/ _/_/_/ use Std::Disclaimer;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990428201254.A14332>
