summaryrefslogtreecommitdiffstats
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-01-24 04:47:33 +0000
committerbde <bde@FreeBSD.org>1995-01-24 04:47:33 +0000
commit2ad610963e43a989d95ad9d22f038c9f21112c8b (patch)
treeeb837fbc22f2b83fcd4f342c460662ca92834493 /sys/net/route.h
parent5147f4c4ea83b9ea1f451eaac45983bbf29535c6 (diff)
downloadFreeBSD-src-2ad610963e43a989d95ad9d22f038c9f21112c8b.zip
FreeBSD-src-2ad610963e43a989d95ad9d22f038c9f21112c8b.tar.gz
Declare `struct mbuf' with the correct scope to avoid lots of warnings
for compiling routed... Previously a kernel function pointer that is bogusly visible to applications was incompletely declared to hide the problem.
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index fd6ead9..97ec9e4 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.h 8.3 (Berkeley) 4/19/94
- * $Id: route.h,v 1.6 1994/12/13 22:31:48 wollman Exp $
+ * $Id: route.h,v 1.7 1995/01/23 02:00:35 wollman Exp $
*/
#ifndef _NET_ROUTE_H_
@@ -81,6 +81,11 @@ struct rt_metrics {
#define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ))
/*
+ * XXX kernel function pointer `rt_output' is visible to applications.
+ */
+struct mbuf;
+
+/*
* We distinguish between routes to hosts and routes to networks,
* preferring the former if available. For each route we infer
* the interface to use from the gateway address supplied when
OpenPOWER on IntegriCloud