From df2be82cecfdcfe4fe66cafe9b35f2eb7121b532 Mon Sep 17 00:00:00 2001 From: bz Date: Fri, 27 Feb 2009 14:12:05 +0000 Subject: For all files including net/vnet.h directly include opt_route.h and net/route.h. Remove the hidden include of opt_route.h and net/route.h from net/vnet.h. We need to make sure that both opt_route.h and net/route.h are included before net/vnet.h because of the way MRT figures out the number of FIBs from the kernel option. If we do not, we end up with the default number of 1 when including net/vnet.h and array sizes are wrong. This does not change the list of files which depend on opt_route.h but we can identify them now more easily. --- sys/netgraph/ng_gif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/netgraph/ng_gif.c') diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 9a2d3b9..5b59fed 100644 --- a/sys/netgraph/ng_gif.c +++ b/sys/netgraph/ng_gif.c @@ -68,6 +68,7 @@ /* * ng_gif(4) netgraph node type */ +#include "opt_route.h" #include #include -- cgit v1.1