diff options
author | bz <bz@FreeBSD.org> | 2009-02-27 14:12:05 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-02-27 14:12:05 +0000 |
commit | df2be82cecfdcfe4fe66cafe9b35f2eb7121b532 (patch) | |
tree | 5eda124dfca0f61a8005b2cb09ebb3f08ba9fffc /sys/kern | |
parent | 5e1ae496afc1fd82d22f3bc722cc32bf1a7e2524 (diff) | |
download | FreeBSD-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/kern')
-rw-r--r-- | sys/kern/kern_poll.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_uuid.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index b8338e5..ca11177 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -28,6 +28,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_device_polling.h" #include <sys/param.h> @@ -44,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> /* for IFF_* flags */ #include <net/netisr.h> /* for NETISR_POLL */ +#include <net/route.h> #include <net/vnet.h> static void netisr_poll(void); /* the two netisr handlers */ diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c index f8b547c..16105e9 100644 --- a/sys/kern/kern_uuid.c +++ b/sys/kern/kern_uuid.c @@ -27,6 +27,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/endian.h> #include <sys/kernel.h> @@ -42,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#include <net/route.h> #include <net/vnet.h> /* |