diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-02-27 14:12:05 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-02-27 14:12:05 +0000 |
commit | 33553d6e997f102da7a5f27d534b3ee57beb0a87 (patch) | |
tree | 5eda124dfca0f61a8005b2cb09ebb3f08ba9fffc | |
parent | e4c38888b7fdbe0b9d9524637b8a3dcfecacad2f (diff) | |
download | src-33553d6e997f102da7a5f27d534b3ee57beb0a87.tar.gz src-33553d6e997f102da7a5f27d534b3ee57beb0a87.zip |
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.
Notes
Notes:
svn path=/head/; revision=189106
49 files changed, 83 insertions, 8 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 606cd695c4fa..5cc1f7d841ee 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 <sys/cdefs.h> @@ -76,6 +77,7 @@ __FBSDID("$FreeBSD$"); #include <sys/vimage.h> #include <net/if.h> +#include <net/route.h> #include <net/vnet.h> #include <vm/vm.h> diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 967ab71cac54..55cf1b9f32e6 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 <sys/cdefs.h> @@ -63,6 +64,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> #ifdef COMPAT_LINUX32 diff --git a/sys/compat/svr4/svr4_sockio.c b/sys/compat/svr4/svr4_sockio.c index 6ed4e69e5fc2..bd4944e40e23 100644 --- a/sys/compat/svr4/svr4_sockio.c +++ b/sys/compat/svr4/svr4_sockio.c @@ -29,6 +29,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/proc.h> #include <sys/systm.h> @@ -39,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include <sys/vimage.h> #include <net/if.h> +#include <net/route.h> #include <net/vnet.h> #include <compat/svr4/svr4.h> diff --git a/sys/contrib/altq/altq/altq_subr.c b/sys/contrib/altq/altq/altq_subr.c index 807a6c707e9f..b2715ad40209 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 <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#ifdef __FreeBSD__ +#include <net/route.h> #include <net/vnet.h> +#endif #include <netinet/in.h> #include <netinet/in_systm.h> diff --git a/sys/contrib/pf/net/pf_if.c b/sys/contrib/pf/net/pf_if.c index 1972edc4326f..31a4313743e6 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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); @@ -61,6 +62,7 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> #include <net/if_types.h> #ifdef __FreeBSD__ +#include <net/route.h> #include <net/vnet.h> #endif diff --git a/sys/contrib/pf/net/pf_ioctl.c b/sys/contrib/pf/net/pf_ioctl.c index 6d509c5630cb..e211c6aa17a0 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 <sys/cdefs.h> __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 db1c406f7830..dc751687d94d 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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -63,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include <net/if.h> #include <net/if_var.h> #if __FreeBSD_version >= 800056 +#include <net/route.h> #include <net/vnet.h> #endif diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c index b8338e526936..ca1117783688 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 f8b547c9cd21..16105e9cee52 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> /* diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 7a750513fbea..11a7fd6bae59 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -37,6 +37,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/mbuf.h> @@ -56,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include <net/if_types.h> #include <net/if_llc.h> #include <net/if_media.h> +#include <net/route.h> #include <net/vnet.h> #include <netinet/in.h> diff --git a/sys/net/if.c b/sys/net/if.c index 6966a51462b2..7e8d90bac00e 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 11e381e876c9..4b2f923ae4a2 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 <sys/param.h> #include <sys/systm.h> diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e74bb74c86e6..df52f839a5a4 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 6ba0aff2aee6..d5548fcd935c 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 <sys/param.h> diff --git a/sys/net/if_mib.c b/sys/net/if_mib.c index ae9088dd7922..143095a4f62a 100644 --- a/sys/net/if_mib.c +++ b/sys/net/if_mib.c @@ -29,6 +29,8 @@ * $FreeBSD$ */ +#include "opt_route.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -38,6 +40,7 @@ #include <net/if.h> #include <net/if_mib.h> +#include <net/route.h> #include <net/vnet.h> /* diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index bf037fb0cb3c..dbaa8f838c4c 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 <sys/param.h> @@ -64,6 +65,7 @@ #include <net/if_dl.h> #include <net/if_types.h> #include <net/if_vlan_var.h> +#include <net/route.h> #include <net/vnet.h> #define VLANNAME "vlan" diff --git a/sys/net/raw_cb.c b/sys/net/raw_cb.c index 1dedff8aac8a..408c2d2e4b48 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> /* diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c index 79d3e30bb101..1749c13434e8 100644 --- a/sys/net/raw_usrreq.c +++ b/sys/net/raw_usrreq.c @@ -31,6 +31,8 @@ * $FreeBSD$ */ +#include "opt_route.h" + #include <sys/param.h> #include <sys/kernel.h> #include <sys/lock.h> @@ -48,6 +50,7 @@ #include <net/if.h> #include <net/raw_cb.h> +#include <net/route.h> #include <net/vnet.h> MTX_SYSINIT(rawcb_mtx, &rawcb_mtx, "rawcb", MTX_DEF); diff --git a/sys/net/vnet.h b/sys/net/vnet.h index d3ae5f336f8a..b02160854652 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 <net/if_var.h> -#include <net/route.h> struct vnet_net { int _if_index; diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c index bba45b8af0cb..09ea89c1ad61 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 <net/if_media.h> #include <net/if_types.h> #include <net/ethernet.h> +#include <net/route.h> #include <net/vnet.h> #include <net80211/ieee80211_var.h> diff --git a/sys/netgraph/atm/ng_atm.c b/sys/netgraph/atm/ng_atm.c index e5e1e2eaadc1..88c8cf09d7a4 100644 --- a/sys/netgraph/atm/ng_atm.c +++ b/sys/netgraph/atm/ng_atm.c @@ -34,6 +34,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -54,6 +56,7 @@ __FBSDID("$FreeBSD$"); #include <net/if_var.h> #include <net/if_media.h> #include <net/if_atm.h> +#include <net/route.h> #include <net/vnet.h> #include <netgraph/ng_message.h> diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index c03befc45530..aaf4372f7d85 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 <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -63,6 +65,7 @@ #include <net/if_var.h> #include <net/ethernet.h> #include <net/if_bridgevar.h> +#include <net/route.h> #include <net/vnet.h> #include <netgraph/ng_message.h> diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 9a2d3b94e0c9..5b59feda2a4c 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 <sys/param.h> #include <sys/systm.h> diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 4e7086aa35a8..385212c066b9 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 3dacdcd9bc7f..95e56b21bf2b 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 6f5dfe124b63..c43b328d4135 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 f3fbe0c20e57..8957c3dec847 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 fcb9c62dcd1e..fd2b05504813 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 618f5f745601..f7608ac7dd87 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 4a169ff2cecf..dcf282528ea3 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 7ea8d7deca41..1c98546a81f5 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 27f4b9ca179e..8eb20cce14ab 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 fcaf7157de21..468fcce14637 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> diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index 7bdd8a87e338..27159db5f441 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 <sys/param.h> #include <sys/domain.h> diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 81a37f845b79..b75ffc5e08d1 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 <sys/param.h> #include <sys/errno.h> diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c index ca5428dc9adb..4950549e2bcf 100644 --- a/sys/netinet6/in6_ifattach.c +++ b/sys/netinet6/in6_ifattach.c @@ -32,6 +32,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/malloc.h> diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 7090243b51b2..8908d67bafec 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 304e19179021..6df443dc5be3 100644 --- a/sys/netinet6/in6_rmx.c +++ b/sys/netinet6/in6_rmx.c @@ -75,6 +75,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/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index f120ec5bae65..f09468365009 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 <sys/param.h> #include <sys/systm.h> diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index 9b85a1611374..18e7aca1f296 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 <sys/param.h> #include <sys/callout.h> diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 2e2dc246c81f..80f8130814e3 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 <sys/param.h> #include <sys/kernel.h> diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index 225afc79e442..535f32965e84 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 <sys/param.h> #include <sys/systm.h> diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 2bf47d25deda..e71f0259b839 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 <sys/param.h> #include <sys/systm.h> diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index da781a06a027..bce1b1426fb0 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 <sys/param.h> #include <sys/errno.h> diff --git a/sys/netinet6/scope6.c b/sys/netinet6/scope6.c index 3dde09acac3e..9611deb9f1a2 100644 --- a/sys/netinet6/scope6.c +++ b/sys/netinet6/scope6.c @@ -32,6 +32,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" + #include <sys/param.h> #include <sys/malloc.h> #include <sys/mbuf.h> diff --git a/sys/netipsec/keysock.c b/sys/netipsec/keysock.c index 5fb7fd58b676..6117f65c17c4 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 7b8b92bb7340..cbc447c358c6 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 <sys/param.h> diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 6f1014d4fe5d..f9bc5bffc558 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -43,6 +43,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_bootp.h" #include <sys/param.h> diff --git a/sys/nfsclient/nfs_diskless.c b/sys/nfsclient/nfs_diskless.c index 025979084e72..d6d6b2111f10 100644 --- a/sys/nfsclient/nfs_diskless.c +++ b/sys/nfsclient/nfs_diskless.c @@ -35,6 +35,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_route.h" #include "opt_bootp.h" #include <sys/param.h> @@ -50,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <net/if_types.h> #include <net/if_var.h> #include <net/ethernet.h> +#include <net/route.h> #include <net/vnet.h> #include <netinet/in.h> |