summaryrefslogtreecommitdiff
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-04-28 17:59:52 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-04-28 17:59:52 +0000
commit85a27b2729a3964babaadc7ed78346074dbc638c (patch)
treeb103464191657f6a34e3eb09e2f5374f63ddf3d8 /sys/net/route.h
parent3f2496c46638b1e4301b6cec4b38463d763bf812 (diff)
Fix reading route entries via kvm(3).
From Naoki Fukaumi, ok yasuoka@, sthen@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index 41aa5a1ace7..93ed426607c 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.174 2019/02/13 23:47:42 dlg Exp $ */
+/* $OpenBSD: route.h,v 1.175 2019/04/28 17:59:51 mpi Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -93,12 +93,8 @@ struct rt_metrics {
*/
struct rtentry {
-#if !defined(_KERNEL) && !defined(ART)
- struct radix_node rt_nodes[2]; /* tree glue, and other values */
-#else
struct sockaddr *rt_dest; /* destination */
SRPL_ENTRY(rtentry) rt_next; /* Next multipath entry to our dst. */
-#endif
struct sockaddr *rt_gateway; /* value */
struct ifaddr *rt_ifa; /* the answer: interface addr to use */
caddr_t rt_llinfo; /* pointer to link level info cache or
@@ -115,9 +111,7 @@ struct rtentry {
unsigned int rt_ifidx; /* the answer: interface to use */
unsigned int rt_flags; /* up/down?, host/net */
int rt_refcnt; /* # held references */
-#if defined(_KERNEL) || defined(ART)
int rt_plen; /* prefix length */
-#endif
uint16_t rt_labelid; /* route label ID */
uint8_t rt_priority; /* routing priority to use */
};