summaryrefslogtreecommitdiff
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-06-14 09:44:42 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-06-14 09:44:42 +0000
commit8590c53b6d471542cc30298ac39ac7361157ab52 (patch)
treefd11877216d27f956d4db30ce654c1f7b880a6d8 /sys/net/route.h
parentef7dbacaa471766ec40e170a49d20a27f360197f (diff)
Store the source address associated with a route in its own chunk of
memory. This will allow to unlink 'sruct rtentry' and 'struct ifaddr' to be able to add route entries without needing an address. ok sthen@, visa@, florian@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index 940d473577f..3286f4118bb 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.136 2016/06/03 02:56:59 dlg Exp $ */
+/* $OpenBSD: route.h,v 1.137 2016/06/14 09:44:41 mpi Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -99,6 +99,7 @@ struct rtentry {
struct sockaddr *rt_dest; /* destination */
SRPL_ENTRY(rtentry) rt_next; /* Next multipath entry to our dst. */
#endif
+ struct sockaddr *rt_addr; /* the answer: address to use */
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