Move struct route inside of #ifdef _KERNEL to protect userland from
it.
This commit is contained in:
parent
b120166d53
commit
58eb3d1bbb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: route.h,v 1.65 2008/01/21 09:11:24 dyoung Exp $ */
|
||||
/* $NetBSD: route.h,v 1.66 2008/01/21 20:04:37 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1986, 1993
|
||||
@ -46,18 +46,6 @@
|
||||
* are set by making entries for all directly connected interfaces.
|
||||
*/
|
||||
|
||||
/*
|
||||
* A route consists of a destination address and a reference
|
||||
* to a routing entry. These are often held by protocols
|
||||
* in their control blocks, e.g. inpcb.
|
||||
*/
|
||||
struct route {
|
||||
struct rtentry *_ro_rt;
|
||||
struct sockaddr *ro_sa;
|
||||
LIST_ENTRY(route) ro_rtcache_next;
|
||||
bool ro_invalid;
|
||||
};
|
||||
|
||||
/*
|
||||
* These numbers are used by reliable protocols for determining
|
||||
* retransmission behavior and are included in the routing structure.
|
||||
@ -284,6 +272,18 @@ struct rttimer_queue {
|
||||
#define RT_DPRINTF(__fmt, ...) /* do nothing */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* A route consists of a destination address and a reference
|
||||
* to a routing entry. These are often held by protocols
|
||||
* in their control blocks, e.g. inpcb.
|
||||
*/
|
||||
struct route {
|
||||
struct rtentry *_ro_rt;
|
||||
struct sockaddr *ro_sa;
|
||||
LIST_ENTRY(route) ro_rtcache_next;
|
||||
bool ro_invalid;
|
||||
};
|
||||
|
||||
struct rtwalk {
|
||||
int (*rw_f)(struct rtentry *, void *);
|
||||
void *rw_v;
|
||||
|
Loading…
Reference in New Issue
Block a user