Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2014 17:28:14 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r274096 - in projects/routing/sys: fs/nfs net netgraph/netflow netinet netinet6 netpfil/ipfw
Message-ID:  <201411041728.sA4HSET4099060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Tue Nov  4 17:28:13 2014
New Revision: 274096
URL: https://svnweb.freebsd.org/changeset/base/274096

Log:
  Hide 'struct rtentry' and all its macro inside new header:
    net/route_internal.h
  The goal is to make its opaque for all code except route/rtsock and
  proto domain _rmx.

Added:
  projects/routing/sys/net/route_internal.h   (contents, props changed)
Modified:
  projects/routing/sys/fs/nfs/nfsport.h
  projects/routing/sys/net/if.c
  projects/routing/sys/net/if_disc.c
  projects/routing/sys/net/if_faith.c
  projects/routing/sys/net/if_gre.c
  projects/routing/sys/net/if_loop.c
  projects/routing/sys/net/if_stf.c
  projects/routing/sys/net/radix_mpath.c
  projects/routing/sys/net/route.c
  projects/routing/sys/net/route.h
  projects/routing/sys/net/rt_nhops.c
  projects/routing/sys/net/rtsock.c
  projects/routing/sys/netgraph/netflow/netflow.c
  projects/routing/sys/netinet/if_ether.c
  projects/routing/sys/netinet/in.c
  projects/routing/sys/netinet/in_gif.c
  projects/routing/sys/netinet/in_rmx.c
  projects/routing/sys/netinet/sctp_os_bsd.h
  projects/routing/sys/netinet6/icmp6.c
  projects/routing/sys/netinet6/in6.c
  projects/routing/sys/netinet6/in6_gif.c
  projects/routing/sys/netinet6/in6_ifattach.c
  projects/routing/sys/netinet6/in6_rmx.c
  projects/routing/sys/netinet6/ip6_forward.c
  projects/routing/sys/netinet6/ip6_input.c
  projects/routing/sys/netinet6/nd6.c
  projects/routing/sys/netinet6/nd6_nbr.c
  projects/routing/sys/netinet6/nd6_rtr.c
  projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c

Modified: projects/routing/sys/fs/nfs/nfsport.h
==============================================================================
--- projects/routing/sys/fs/nfs/nfsport.h	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/fs/nfs/nfsport.h	Tue Nov  4 17:28:13 2014	(r274096)
@@ -82,6 +82,7 @@
 #include <net/if_var.h>
 #include <net/radix.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/if_dl.h>
 #include <netinet/in.h>
 #include <netinet/in_pcb.h>

Modified: projects/routing/sys/net/if.c
==============================================================================
--- projects/routing/sys/net/if.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -75,6 +75,7 @@
 #include <net/if_vlan_var.h>
 #include <net/radix.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #if defined(INET) || defined(INET6)

Modified: projects/routing/sys/net/if_disc.c
==============================================================================
--- projects/routing/sys/net/if_disc.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if_disc.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -49,6 +49,7 @@
 #include <net/if_clone.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/bpf.h>
 #include <net/vnet.h>
 

Modified: projects/routing/sys/net/if_faith.c
==============================================================================
--- projects/routing/sys/net/if_faith.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if_faith.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -61,6 +61,7 @@
 #include <net/if_types.h>
 #include <net/netisr.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/bpf.h>
 #include <net/vnet.h>
 

Modified: projects/routing/sys/net/if_gre.c
==============================================================================
--- projects/routing/sys/net/if_gre.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if_gre.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -65,6 +65,7 @@
 #include <net/if_clone.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #ifdef INET

Modified: projects/routing/sys/net/if_loop.c
==============================================================================
--- projects/routing/sys/net/if_loop.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if_loop.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -54,6 +54,7 @@
 #include <net/if_types.h>
 #include <net/netisr.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/bpf.h>
 #include <net/vnet.h>
 

Modified: projects/routing/sys/net/if_stf.c
==============================================================================
--- projects/routing/sys/net/if_stf.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/if_stf.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -97,6 +97,7 @@
 #include <net/if_var.h>
 #include <net/if_clone.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/netisr.h>
 #include <net/if_types.h>
 #include <net/if_stf.h>

Modified: projects/routing/sys/net/radix_mpath.c
==============================================================================
--- projects/routing/sys/net/radix_mpath.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/radix_mpath.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$");
 #include <net/radix.h>
 #include <net/radix_mpath.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/if.h>
 #include <net/if_var.h>
 

Modified: projects/routing/sys/net/route.c
==============================================================================
--- projects/routing/sys/net/route.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/route.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -58,6 +58,7 @@
 #include <net/if_var.h>
 #include <net/if_dl.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 #include <net/flowtable.h>
 

Modified: projects/routing/sys/net/route.h
==============================================================================
--- projects/routing/sys/net/route.h	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/route.h	Tue Nov  4 17:28:13 2014	(r274096)
@@ -107,7 +107,9 @@ VNET_DECLARE(u_int, rt_add_addr_allfibs)
 #endif
 #endif
 
-#if defined(_KERNEL) || defined(_WANT_RTENTRY)
+struct rtentry;
+#if !defined(_KERNEL) || defined(_WANT_RTENTRY)
+/* This structure is kept for compatibility reasons only */
 struct rtentry {
 	struct	radix_node rt_nodes[2];	/* tree glue, and other values */
 	/*
@@ -126,11 +128,10 @@ struct rtentry {
 	u_long		rt_mtu;		/* MTU for this path */
 	u_long		rt_weight;	/* absolute weight */ 
 	u_long		rt_expire;	/* lifetime for route, e.g. redirect */
-#define	rt_endzero	rt_pksent
-	counter_u64_t	rt_pksent;	/* packets sent using this route */
+#define	rt_endzero	rt_mtx
 	struct mtx	rt_mtx;		/* mutex for routing entry */
 };
-#endif /* _KERNEL || _WANT_RTENTRY */
+#endif /* !_KERNEL || _WANT_RTENTRY */
 
 #define	RTF_UP		0x1		/* route usable */
 #define	RTF_GATEWAY	0x2		/* destination is a gateway */
@@ -291,59 +292,6 @@ struct rt_addrinfo {
 #define RT_LINK_IS_UP(ifp)	(!((ifp)->if_capabilities & IFCAP_LINKSTATE) \
 				 || (ifp)->if_link_state == LINK_STATE_UP)
 
-#define	RT_LOCK_INIT(_rt) \
-	mtx_init(&(_rt)->rt_mtx, "rtentry", NULL, MTX_DEF | MTX_DUPOK)
-#define	RT_LOCK(_rt)		mtx_lock(&(_rt)->rt_mtx)
-#define	RT_UNLOCK(_rt)		mtx_unlock(&(_rt)->rt_mtx)
-#define	RT_LOCK_DESTROY(_rt)	mtx_destroy(&(_rt)->rt_mtx)
-#define	RT_LOCK_ASSERT(_rt)	mtx_assert(&(_rt)->rt_mtx, MA_OWNED)
-#define	RT_UNLOCK_COND(_rt)	do {				\
-	if (mtx_owned(&(_rt)->rt_mtx))				\
-		mtx_unlock(&(_rt)->rt_mtx);			\
-} while (0)
-
-#define	RT_ADDREF(_rt)	do {					\
-	RT_LOCK_ASSERT(_rt);					\
-	KASSERT((_rt)->rt_refcnt >= 0,				\
-		("negative refcnt %d", (_rt)->rt_refcnt));	\
-	(_rt)->rt_refcnt++;					\
-} while (0)
-
-#define	RT_REMREF(_rt)	do {					\
-	RT_LOCK_ASSERT(_rt);					\
-	KASSERT((_rt)->rt_refcnt > 0,				\
-		("bogus refcnt %d", (_rt)->rt_refcnt));	\
-	(_rt)->rt_refcnt--;					\
-} while (0)
-
-#define	RTFREE_LOCKED(_rt) do {					\
-	if ((_rt)->rt_refcnt <= 1)				\
-		rtfree(_rt);					\
-	else {							\
-		RT_REMREF(_rt);					\
-		RT_UNLOCK(_rt);					\
-	}							\
-	/* guard against invalid refs */			\
-	_rt = 0;						\
-} while (0)
-
-#define	RTFREE(_rt) do {					\
-	RT_LOCK(_rt);						\
-	RTFREE_LOCKED(_rt);					\
-} while (0)
-
-#define	RO_RTFREE(_ro) do {					\
-	if ((_ro)->ro_rt) {					\
-		if ((_ro)->ro_flags & RT_NORTREF) {		\
-			(_ro)->ro_flags &= ~RT_NORTREF;		\
-			(_ro)->ro_rt = NULL;			\
-		} else {					\
-			RT_LOCK((_ro)->ro_rt);			\
-			RTFREE_LOCKED((_ro)->ro_rt);		\
-		}						\
-	}							\
-} while (0)
-
 struct radix_node_head *rt_tables_get_rnh(int, int);
 
 struct ifmultiaddr;

Added: projects/routing/sys/net/route_internal.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ projects/routing/sys/net/route_internal.h	Tue Nov  4 17:28:13 2014	(r274096)
@@ -0,0 +1,113 @@
+/*-
+ * Copyright (c) 2014
+ * 	Alexander V. Chernikov <melifaro@FreeBSD.org>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#ifndef _NET_ROUTE_INTERNAL_H_
+#define	_NET_ROUTE_INTERNAL_H_
+
+struct rtentry {
+	struct	radix_node rt_nodes[2];	/* tree glue, and other values */
+	/*
+	 * XXX struct rtentry must begin with a struct radix_node (or two!)
+	 * because the code does some casts of a 'struct radix_node *'
+	 * to a 'struct rtentry *'
+	 */
+#define	rt_key(r)	(*((struct sockaddr **)(&(r)->rt_nodes->rn_key)))
+#define	rt_mask(r)	(*((struct sockaddr **)(&(r)->rt_nodes->rn_mask)))
+	struct	sockaddr *rt_gateway;	/* value */
+	struct	ifnet *rt_ifp;		/* the answer: interface to use */
+	struct	ifaddr *rt_ifa;		/* the answer: interface address to use */
+	int		rt_flags;	/* up/down?, host/net */
+	int		rt_refcnt;	/* # held references */
+	u_int		rt_fibnum;	/* which FIB */
+	u_long		rt_mtu;		/* MTU for this path */
+	u_long		rt_weight;	/* absolute weight */ 
+	u_long		rt_expire;	/* lifetime for route, e.g. redirect */
+#define	rt_endzero	rt_pksent
+	counter_u64_t	rt_pksent;	/* packets sent using this route */
+	struct mtx	rt_mtx;		/* mutex for routing entry */
+};
+
+#define	RT_LOCK_INIT(_rt) \
+	mtx_init(&(_rt)->rt_mtx, "rtentry", NULL, MTX_DEF | MTX_DUPOK)
+#define	RT_LOCK(_rt)		mtx_lock(&(_rt)->rt_mtx)
+#define	RT_UNLOCK(_rt)		mtx_unlock(&(_rt)->rt_mtx)
+#define	RT_LOCK_DESTROY(_rt)	mtx_destroy(&(_rt)->rt_mtx)
+#define	RT_LOCK_ASSERT(_rt)	mtx_assert(&(_rt)->rt_mtx, MA_OWNED)
+#define	RT_UNLOCK_COND(_rt)	do {				\
+	if (mtx_owned(&(_rt)->rt_mtx))				\
+		mtx_unlock(&(_rt)->rt_mtx);			\
+} while (0)
+
+#define	RT_ADDREF(_rt)	do {					\
+	RT_LOCK_ASSERT(_rt);					\
+	KASSERT((_rt)->rt_refcnt >= 0,				\
+		("negative refcnt %d", (_rt)->rt_refcnt));	\
+	(_rt)->rt_refcnt++;					\
+} while (0)
+
+#define	RT_REMREF(_rt)	do {					\
+	RT_LOCK_ASSERT(_rt);					\
+	KASSERT((_rt)->rt_refcnt > 0,				\
+		("bogus refcnt %d", (_rt)->rt_refcnt));	\
+	(_rt)->rt_refcnt--;					\
+} while (0)
+
+#define	RTFREE_LOCKED(_rt) do {					\
+	if ((_rt)->rt_refcnt <= 1)				\
+		rtfree(_rt);					\
+	else {							\
+		RT_REMREF(_rt);					\
+		RT_UNLOCK(_rt);					\
+	}							\
+	/* guard against invalid refs */			\
+	_rt = 0;						\
+} while (0)
+
+#define	RTFREE(_rt) do {					\
+	RT_LOCK(_rt);						\
+	RTFREE_LOCKED(_rt);					\
+} while (0)
+
+#define	RO_RTFREE(_ro) do {					\
+	if ((_ro)->ro_rt) {					\
+		if ((_ro)->ro_flags & RT_NORTREF) {		\
+			(_ro)->ro_flags &= ~RT_NORTREF;		\
+			(_ro)->ro_rt = NULL;			\
+		} else {					\
+			RT_LOCK((_ro)->ro_rt);			\
+			RTFREE_LOCKED((_ro)->ro_rt);		\
+		}						\
+	}							\
+} while (0)
+
+
+
+#endif
+
+

Modified: projects/routing/sys/net/rt_nhops.c
==============================================================================
--- projects/routing/sys/net/rt_nhops.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/rt_nhops.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -55,6 +55,7 @@
 #include <net/if_var.h>
 #include <net/if_dl.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #ifdef RADIX_MPATH

Modified: projects/routing/sys/net/rtsock.c
==============================================================================
--- projects/routing/sys/net/rtsock.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/net/rtsock.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -59,6 +59,7 @@
 #include <net/netisr.h>
 #include <net/raw_cb.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netgraph/netflow/netflow.c
==============================================================================
--- projects/routing/sys/netgraph/netflow/netflow.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netgraph/netflow/netflow.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/ethernet.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>

Modified: projects/routing/sys/netinet/if_ether.c
==============================================================================
--- projects/routing/sys/netinet/if_ether.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet/if_ether.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_llc.h>
 #include <net/ethernet.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet/in.c
==============================================================================
--- projects/routing/sys/netinet/in.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet/in.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_llatbl.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/if_ether.h>

Modified: projects/routing/sys/netinet/in_gif.c
==============================================================================
--- projects/routing/sys/netinet/in_gif.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet/in_gif.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet/in_rmx.c
==============================================================================
--- projects/routing/sys/netinet/in_rmx.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet/in_rmx.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet/sctp_os_bsd.h
==============================================================================
--- projects/routing/sys/netinet/sctp_os_bsd.h	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet/sctp_os_bsd.h	Tue Nov  4 17:28:13 2014	(r274096)
@@ -71,6 +71,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_types.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/icmp6.c
==============================================================================
--- projects/routing/sys/netinet6/icmp6.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/icmp6.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -90,6 +90,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_llatbl.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/in6.c
==============================================================================
--- projects/routing/sys/netinet6/in6.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/in6.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -86,6 +86,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_var.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/if_dl.h>
 #include <net/vnet.h>
 

Modified: projects/routing/sys/netinet6/in6_gif.c
==============================================================================
--- projects/routing/sys/netinet6/in6_gif.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/in6_gif.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/in6_ifattach.c
==============================================================================
--- projects/routing/sys/netinet6/in6_ifattach.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/in6_ifattach.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_dl.h>
 #include <net/if_types.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/in6_rmx.c
==============================================================================
--- projects/routing/sys/netinet6/in6_rmx.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/in6_rmx.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -78,6 +78,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 
 #include <netinet/in.h>
 #include <netinet/ip_var.h>

Modified: projects/routing/sys/netinet6/ip6_forward.c
==============================================================================
--- projects/routing/sys/netinet6/ip6_forward.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/ip6_forward.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_var.h>
 #include <net/netisr.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/pfil.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/ip6_input.c
==============================================================================
--- projects/routing/sys/netinet6/ip6_input.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/ip6_input.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -89,6 +89,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_types.h>
 #include <net/if_dl.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/netisr.h>
 #include <net/pfil.h>
 #include <net/vnet.h>

Modified: projects/routing/sys/netinet6/nd6.c
==============================================================================
--- projects/routing/sys/netinet6/nd6.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/nd6.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$");
 #include <net/iso88025.h>
 #include <net/fddi.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/vnet.h>
 
 #include <netinet/in.h>

Modified: projects/routing/sys/netinet6/nd6_nbr.c
==============================================================================
--- projects/routing/sys/netinet6/nd6_nbr.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/nd6_nbr.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_dl.h>
 #include <net/if_var.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #ifdef RADIX_MPATH
 #include <net/radix_mpath.h>
 #endif

Modified: projects/routing/sys/netinet6/nd6_rtr.c
==============================================================================
--- projects/routing/sys/netinet6/nd6_rtr.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netinet6/nd6_rtr.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_types.h>
 #include <net/if_dl.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 #include <net/radix.h>
 #include <net/vnet.h>
 

Modified: projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c
==============================================================================
--- projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c	Tue Nov  4 17:24:13 2014	(r274095)
+++ projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c	Tue Nov  4 17:28:13 2014	(r274096)
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if.h>	/* ip_fw.h requires IFNAMSIZ */
 #include <net/radix.h>
 #include <net/route.h>
+#include <net/route_internal.h>
 
 #include <netinet/in.h>
 #include <netinet/ip_var.h>	/* struct ipfw_rule_ref */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411041728.sA4HSET4099060>