summaryrefslogtreecommitdiffstats
path: root/sys/netinet
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/netinet
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/netinet')
-rw-r--r--sys/netinet/if_ether.c1
-rw-r--r--sys/netinet/igmp.c1
-rw-r--r--sys/netinet/in_mcast.c2
-rw-r--r--sys/netinet/in_proto.c1
-rw-r--r--sys/netinet/in_rmx.c2
-rw-r--r--sys/netinet/ip_fw2.c1
-rw-r--r--sys/netinet/ip_input.c1
-rw-r--r--sys/netinet/ip_output.c1
-rw-r--r--sys/netinet/raw_ip.c1
-rw-r--r--sys/netinet/sctp_os_bsd.h1
10 files changed, 12 insertions, 0 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 4e7086a..385212c 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -39,6 +39,7 @@
__FBSDID("$FreeBSD$");
#include "opt_inet.h"
+#include "opt_route.h"
#include "opt_mac.h"
#include "opt_carp.h"
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 3dacdcd..95e56b2 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -48,6 +48,7 @@
__FBSDID("$FreeBSD$");
#include "opt_mac.h"
+#include "opt_route.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c
index 6f5dfe1..c43b328 100644
--- a/sys/netinet/in_mcast.c
+++ b/sys/netinet/in_mcast.c
@@ -39,6 +39,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_route.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index f3fbe0c..8957c3d 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include "opt_mrouting.h"
#include "opt_ipsec.h"
#include "opt_inet6.h"
+#include "opt_route.h"
#include "opt_pf.h"
#include "opt_carp.h"
#include "opt_sctp.h"
diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c
index fcb9c62..fd2b055 100644
--- a/sys/netinet/in_rmx.c
+++ b/sys/netinet/in_rmx.c
@@ -43,6 +43,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_route.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 618f5f7..f7608ac 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include "opt_inet6.h"
#include "opt_ipsec.h"
#include "opt_mac.h"
+#include "opt_route.h"
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 4a169ff..dcf2825 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include "opt_ipfw.h"
#include "opt_ipstealth.h"
#include "opt_ipsec.h"
+#include "opt_route.h"
#include "opt_mac.h"
#include "opt_carp.h"
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 7ea8d7d..1c98546 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include "opt_ipfw.h"
#include "opt_inet.h"
#include "opt_ipsec.h"
+#include "opt_route.h"
#include "opt_mac.h"
#include "opt_mbuf_stress_test.h"
#include "opt_mpath.h"
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 27f4b9c..8eb20cc 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
#include "opt_inet6.h"
#include "opt_ipsec.h"
+#include "opt_route.h"
#include "opt_mac.h"
#include <sys/param.h>
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h
index fcaf715..468fcce 100644
--- a/sys/netinet/sctp_os_bsd.h
+++ b/sys/netinet/sctp_os_bsd.h
@@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include "opt_compat.h"
#include "opt_inet6.h"
#include "opt_inet.h"
+#include "opt_route.h"
#include "opt_sctp.h"
#include <sys/param.h>
OpenPOWER on IntegriCloud