From df2be82cecfdcfe4fe66cafe9b35f2eb7121b532 Mon Sep 17 00:00:00 2001 From: bz Date: Fri, 27 Feb 2009 14:12:05 +0000 Subject: [PATCH] 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/compat/linprocfs/linprocfs.c | 2 ++ sys/compat/linux/linux_ioctl.c | 2 ++ sys/compat/svr4/svr4_sockio.c | 3 +++ sys/contrib/altq/altq/altq_subr.c | 4 ++++ sys/contrib/pf/net/pf_if.c | 2 ++ sys/contrib/pf/net/pf_ioctl.c | 8 +++----- sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c | 3 +++ sys/kern/kern_poll.c | 2 ++ sys/kern/kern_uuid.c | 3 +++ sys/net/bridgestp.c | 3 +++ sys/net/if.c | 1 + sys/net/if_ef.c | 1 + sys/net/if_ethersubr.c | 1 + sys/net/if_loop.c | 1 + sys/net/if_mib.c | 3 +++ sys/net/if_vlan.c | 2 ++ sys/net/raw_cb.c | 3 +++ sys/net/raw_usrreq.c | 3 +++ sys/net/vnet.h | 3 --- sys/net80211/ieee80211_ddb.c | 2 ++ sys/netgraph/atm/ng_atm.c | 3 +++ sys/netgraph/ng_ether.c | 3 +++ sys/netgraph/ng_gif.c | 1 + sys/netinet/if_ether.c | 1 + sys/netinet/igmp.c | 1 + sys/netinet/in_mcast.c | 2 ++ sys/netinet/in_proto.c | 1 + sys/netinet/in_rmx.c | 2 ++ sys/netinet/ip_fw2.c | 1 + sys/netinet/ip_input.c | 1 + sys/netinet/ip_output.c | 1 + sys/netinet/raw_ip.c | 1 + sys/netinet/sctp_os_bsd.h | 1 + sys/netinet6/icmp6.c | 1 + sys/netinet6/in6.c | 1 + sys/netinet6/in6_ifattach.c | 2 ++ sys/netinet6/in6_proto.c | 1 + sys/netinet6/in6_rmx.c | 2 ++ sys/netinet6/ip6_input.c | 1 + sys/netinet6/ip6_mroute.c | 1 + sys/netinet6/ip6_output.c | 1 + sys/netinet6/nd6.c | 1 + sys/netinet6/nd6_rtr.c | 1 + sys/netinet6/raw_ip6.c | 1 + sys/netinet6/scope6.c | 2 ++ sys/netipsec/keysock.c | 1 + sys/netipsec/xform_ipip.c | 1 + sys/nfsclient/bootp_subr.c | 1 + sys/nfsclient/nfs_diskless.c | 2 ++ 49 files changed, 83 insertions(+), 8 deletions(-) diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 606cd695c4fa44..5cc1f7d841ee5b 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -39,6 +39,7 @@ * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94 */ +#include "opt_route.h" #include "opt_compat.h" #include @@ -76,6 +77,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 967ab71cac54d9..55cf1b9f32e6a3 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -26,6 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "opt_route.h" #include "opt_compat.h" #include @@ -63,6 +64,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #ifdef COMPAT_LINUX32 diff --git a/sys/compat/svr4/svr4_sockio.c b/sys/compat/svr4/svr4_sockio.c index 6ed4e69e5fc2f2..bd4944e40e2377 100644 --- a/sys/compat/svr4/svr4_sockio.c +++ b/sys/compat/svr4/svr4_sockio.c @@ -29,6 +29,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include @@ -39,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include diff --git a/sys/contrib/altq/altq/altq_subr.c b/sys/contrib/altq/altq/altq_subr.c index 807a6c707e9f6d..b2715ad4020980 100644 --- a/sys/contrib/altq/altq/altq_subr.c +++ b/sys/contrib/altq/altq/altq_subr.c @@ -32,6 +32,7 @@ #include "opt_inet.h" #ifdef __FreeBSD__ #include "opt_inet6.h" +#include "opt_route.h" #endif #endif /* __FreeBSD__ || __NetBSD__ */ @@ -54,7 +55,10 @@ #include #include #include +#ifdef __FreeBSD__ +#include #include +#endif #include #include diff --git a/sys/contrib/pf/net/pf_if.c b/sys/contrib/pf/net/pf_if.c index 1972edc4326fd6..31a4313743e66c 100644 --- a/sys/contrib/pf/net/pf_if.c +++ b/sys/contrib/pf/net/pf_if.c @@ -35,6 +35,7 @@ #if defined(__FreeBSD__) #include "opt_inet.h" #include "opt_inet6.h" +#include "opt_route.h" #include __FBSDID("$FreeBSD$"); @@ -61,6 +62,7 @@ __FBSDID("$FreeBSD$"); #include #include #ifdef __FreeBSD__ +#include #include #endif diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c index 6d509c5630cb84..e211c6aa17a04b 100644 --- a/sys/contrib/pf/net/pf_ioctl.c +++ b/sys/contrib/pf/net/pf_ioctl.c @@ -36,14 +36,12 @@ */ #ifdef __FreeBSD__ -#include "opt_inet.h" -#include "opt_inet6.h" - #include __FBSDID("$FreeBSD$"); -#endif -#ifdef __FreeBSD__ +#include "opt_inet.h" +#include "opt_inet6.h" +#include "opt_route.h" #include "opt_bpf.h" #include "opt_pf.h" diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c index db1c406f7830e6..dc751687d94d8c 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb.c @@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include @@ -63,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include #include #if __FreeBSD_version >= 800056 +#include #include #endif diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index b8338e52693669..ca1117783688c6 100644 --- a/sys/kern/kern_poll.c +++ b/sys/kern/kern_poll.c @@ -28,6 +28,7 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_device_polling.h" #include @@ -44,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include /* for IFF_* flags */ #include /* for NETISR_POLL */ +#include #include static void netisr_poll(void); /* the two netisr handlers */ diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c index f8b547c9cd216e..16105e9cee5291 100644 --- a/sys/kern/kern_uuid.c +++ b/sys/kern/kern_uuid.c @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include @@ -42,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include /* diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 7a750513fbea26..11a7fd6bae5952 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -37,6 +37,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include @@ -56,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include diff --git a/sys/net/if.c b/sys/net/if.c index 6966a51462b29d..7e8d90bac00e40 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -33,6 +33,7 @@ #include "opt_compat.h" #include "opt_inet6.h" #include "opt_inet.h" +#include "opt_route.h" #include "opt_mac.h" #include "opt_carp.h" diff --git a/sys/net/if_ef.c b/sys/net/if_ef.c index 11e381e876c9b4..4b2f923ae4a228 100644 --- a/sys/net/if_ef.c +++ b/sys/net/if_ef.c @@ -29,6 +29,7 @@ #include "opt_inet.h" #include "opt_ipx.h" #include "opt_ef.h" +#include "opt_route.h" #include #include diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e74bb74c86e667..df52f839a5a4ed 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -34,6 +34,7 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipx.h" +#include "opt_route.h" #include "opt_mac.h" #include "opt_netgraph.h" #include "opt_carp.h" diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 6ba0aff2aee663..d5548fcd935cda 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -38,6 +38,7 @@ #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipx.h" +#include "opt_route.h" #include "opt_mac.h" #include diff --git a/sys/net/if_mib.c b/sys/net/if_mib.c index ae9088dd7922a5..143095a4f62a41 100644 --- a/sys/net/if_mib.c +++ b/sys/net/if_mib.c @@ -29,6 +29,8 @@ * $FreeBSD$ */ +#include "opt_route.h" + #include #include #include @@ -38,6 +40,7 @@ #include #include +#include #include /* diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index bf037fb0cb3ce9..dbaa8f838c4c3a 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -41,6 +41,7 @@ * and ask it to send them. */ +#include "opt_route.h" #include "opt_vlan.h" #include @@ -64,6 +65,7 @@ #include #include #include +#include #include #define VLANNAME "vlan" diff --git a/sys/net/raw_cb.c b/sys/net/raw_cb.c index 1dedff8aac8a2a..408c2d2e4b488c 100644 --- a/sys/net/raw_cb.c +++ b/sys/net/raw_cb.c @@ -31,6 +31,8 @@ * $FreeBSD$ */ +#include "opt_route.h" + #include #include #include @@ -46,6 +48,7 @@ #include #include +#include #include /* diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index 79d3e30bb101a9..1749c13434e80e 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -31,6 +31,8 @@ * $FreeBSD$ */ +#include "opt_route.h" + #include #include #include @@ -48,6 +50,7 @@ #include #include +#include #include MTX_SYSINIT(rawcb_mtx, &rawcb_mtx, "rawcb", MTX_DEF); diff --git a/sys/net/vnet.h b/sys/net/vnet.h index d3ae5f336f8aa9..b0216085465265 100644 --- a/sys/net/vnet.h +++ b/sys/net/vnet.h @@ -33,10 +33,7 @@ #ifndef _NET_VNET_H_ #define _NET_VNET_H_ -#include "opt_route.h" - #include -#include struct vnet_net { int _if_index; diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c index bba45b8af0cb8d..09ea89c1ad61d6 100644 --- a/sys/net80211/ieee80211_ddb.c +++ b/sys/net80211/ieee80211_ddb.c @@ -27,6 +27,7 @@ __FBSDID("$FreeBSD$"); #include "opt_ddb.h" +#include "opt_route.h" #include "opt_wlan.h" #ifdef DDB @@ -44,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include diff --git a/sys/netgraph/atm/ng_atm.c b/sys/netgraph/atm/ng_atm.c index e5e1e2eaadc1b5..88c8cf09d7a442 100644 --- a/sys/netgraph/atm/ng_atm.c +++ b/sys/netgraph/atm/ng_atm.c @@ -34,6 +34,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include @@ -54,6 +56,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index c03befc455302b..aaf4372f7d857e 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -46,6 +46,8 @@ * ng_ether(4) netgraph node type */ +#include "opt_route.h" + #include #include #include @@ -63,6 +65,7 @@ #include #include #include +#include #include #include diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 9a2d3b94e0c9b8..5b59feda2a4c4a 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 diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 4e7086aa35a86d..385212c066b9d8 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 3dacdcd9bc7f50..95e56b21bf2bbb 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 #include diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c index 6f5dfe124b6313..c43b328d4135bc 100644 --- a/sys/netinet/in_mcast.c +++ b/sys/netinet/in_mcast.c @@ -39,6 +39,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index f3fbe0c20e57df..8957c3dec847df 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 fcb9c62dcd1e5f..fd2b05504813d4 100644 --- a/sys/netinet/in_rmx.c +++ b/sys/netinet/in_rmx.c @@ -43,6 +43,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index 618f5f745601ce..f7608ac7dd87c2 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 #include diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 4a169ff2cecfac..dcf282528ea367 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 7ea8d7deca41ed..1c98546a81f52e 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 27f4b9ca179e0d..8eb20cce14abab 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 diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index fcaf7157de212f..468fcce1463710 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 diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 7bdd8a87e338c4..27159db5f4417f 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 81a37f845b79d1..b75ffc5e08d142 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c index ca5428dc9adbdd..4950549e2bcf7e 100644 --- a/sys/netinet6/in6_ifattach.c +++ b/sys/netinet6/in6_ifattach.c @@ -32,6 +32,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 7090243b51b252..8908d67bafecb4 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet6.h" #include "opt_ipsec.h" #include "opt_ipstealth.h" +#include "opt_route.h" #include "opt_carp.h" #include "opt_sctp.h" #include "opt_mpath.h" diff --git a/sys/netinet6/in6_rmx.c b/sys/netinet6/in6_rmx.c index 304e191790210e..6df443dc5be3e2 100644 --- a/sys/netinet6/in6_rmx.c +++ b/sys/netinet6/in6_rmx.c @@ -75,6 +75,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index f120ec5bae650a..f0946836500919 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 9b85a1611374a2..18e7aca1f29656 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -83,6 +83,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 2e2dc246c81f4d..80f8130814e32b 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -66,6 +66,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_ipsec.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 225afc79e44248..535f32965e84e8 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" #include "opt_mac.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 2bf47d25deda6d..e71f0259b839ea 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet.h" #include "opt_inet6.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index da781a06a027a2..bce1b1426fb03c 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$"); #include "opt_ipsec.h" #include "opt_inet6.h" +#include "opt_route.h" #include #include diff --git a/sys/netinet6/scope6.c b/sys/netinet6/scope6.c index 3dde09acac3e6b..9611deb9f1a218 100644 --- a/sys/netinet6/scope6.c +++ b/sys/netinet6/scope6.c @@ -32,6 +32,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include #include #include diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c index 5fb7fd58b676f8..6117f65c17c4ad 100644 --- a/sys/netipsec/keysock.c +++ b/sys/netipsec/keysock.c @@ -31,6 +31,7 @@ */ #include "opt_ipsec.h" +#include "opt_route.h" /* This code has derived from sys/net/rtsock.c on FreeBSD2.2.5 */ diff --git a/sys/netipsec/xform_ipip.c b/sys/netipsec/xform_ipip.c index 7b8b92bb7340b8..cbc447c358c651 100644 --- a/sys/netipsec/xform_ipip.c +++ b/sys/netipsec/xform_ipip.c @@ -41,6 +41,7 @@ */ #include "opt_inet.h" #include "opt_inet6.h" +#include "opt_route.h" #include "opt_enc.h" #include diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 6f1014d4fe5dba..f9bc5bffc5580d 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -43,6 +43,7 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_bootp.h" #include diff --git a/sys/nfsclient/nfs_diskless.c b/sys/nfsclient/nfs_diskless.c index 025979084e7287..d6d6b2111f1000 100644 --- a/sys/nfsclient/nfs_diskless.c +++ b/sys/nfsclient/nfs_diskless.c @@ -35,6 +35,7 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_bootp.h" #include @@ -50,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include