mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 05:55:27 +01:00
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.
This commit is contained in:
parent
0a17153035
commit
6670942f71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5833
@ -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_
|
||||
@ -80,6 +80,11 @@ struct rt_metrics {
|
||||
#define RTM_RTTUNIT 1000000 /* units for rtt, rttvar, as units per sec */
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user