summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-05-22 23:03:15 +0000
committerbz <bz@FreeBSD.org>2009-05-22 23:03:15 +0000
commitf09c1df7a5cfa6cddfac0d822b83c72064c1ab8e (patch)
tree2bdf0bcdd2847b97177cc2bd2251b8551342ec4e /sys/netinet
parentce69980b94cf6931a114fe20212172fcf84e67f0 (diff)
downloadFreeBSD-src-f09c1df7a5cfa6cddfac0d822b83c72064c1ab8e.zip
FreeBSD-src-f09c1df7a5cfa6cddfac0d822b83c72064c1ab8e.tar.gz
If including vnet.h one has to include opt_route.h as well. This is
because struct vnet_net holds the rt_tables[][] for MRT and array size is compile time dependent. If you had ROUTETABLES set to >1 after r192011 V_loif was pointing into nonsense leading to strange results or even panics for some people. Reviewed by: mz
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index 6f408eb..a656102 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -34,6 +34,7 @@
__FBSDID("$FreeBSD$");
#include "opt_carp.h"
+#include "opt_route.h"
#include <sys/param.h>
#include <sys/systm.h>
OpenPOWER on IntegriCloud