diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-06-16 16:52:09 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-06-16 16:52:09 +0000 |
commit | a2301df6e3c29a4111a860fa0491d261af5e0252 (patch) | |
tree | cdd33a094c633a6763d1bbc79e181c5ffce6878c /sys/net/route.h | |
parent | 9812d2fe804b7eef6fe9c72ce9b46280bb295ed0 (diff) |
pass the routing table ID over the routing socket, so we can start to
manipulate alternate tables from userland. new tables are created
implicitely when an RTM_ADD for that table is seen.
ok norby claudio hshoexer
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index ae338488b6f..230b016f51d 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.44 2006/06/16 16:49:39 henning Exp $ */ +/* $OpenBSD: route.h,v 1.45 2006/06/16 16:52:08 henning Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -82,6 +82,7 @@ struct rt_metrics { }; /* XXX overloading some values that are no longer used. */ #define rmx_refcnt rmx_rttvar /* # held references only used by sysctl */ +#define rmx_rt_tableid rmx_rtt /* routing table ID */ /* * rmx_rtt and rmx_rttvar are stored as microseconds; @@ -182,6 +183,8 @@ struct rt_msghdr { u_long rtm_inits; /* which metrics we are initializing */ struct rt_metrics rtm_rmx; /* metrics themselves */ }; +/* overload no longer used field */ +#define rtm_tableid rtm_rmx.rmx_rt_tableid #define RTM_VERSION 3 /* Up the ante and ignore older versions */ |