summaryrefslogtreecommitdiffstats
path: root/sys/net/raw_cb.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-02-27 14:12:05 +0000
committerbz <bz@FreeBSD.org>2009-02-27 14:12:05 +0000
commitdf2be82cecfdcfe4fe66cafe9b35f2eb7121b532 (patch)
tree5eda124dfca0f61a8005b2cb09ebb3f08ba9fffc /sys/net/raw_cb.c
parent5e1ae496afc1fd82d22f3bc722cc32bf1a7e2524 (diff)
downloadFreeBSD-src-df2be82cecfdcfe4fe66cafe9b35f2eb7121b532.zip
FreeBSD-src-df2be82cecfdcfe4fe66cafe9b35f2eb7121b532.tar.gz
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.
Diffstat (limited to 'sys/net/raw_cb.c')
-rw-r--r--sys/net/raw_cb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/raw_cb.c b/sys/net/raw_cb.c
index 1dedff8..408c2d2 100644
--- a/sys/net/raw_cb.c
+++ b/sys/net/raw_cb.c
@@ -31,6 +31,8 @@
* $FreeBSD$
*/
+#include "opt_route.h"
+
#include <sys/param.h>
#include <sys/domain.h>
#include <sys/lock.h>
@@ -46,6 +48,7 @@
#include <net/if.h>
#include <net/raw_cb.h>
+#include <net/route.h>
#include <net/vnet.h>
/*
OpenPOWER on IntegriCloud