summaryrefslogtreecommitdiff
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-04-21 11:52:47 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-04-21 11:52:47 +0000
commitbcd4275e3c286d594aba601d86cd7abc8577d4d0 (patch)
treeef84a03d1e45f01e694a9785abf42f95ba5f19e1 /sys/net/route.h
parentdf71122422fb3534850dc8927f64c126a80aae22 (diff)
Implement a way to get information about a rtable. Currently only the rtableid
and rdomainid are returned. This is necessary to know where L2 information of a table is stored (which will be needed soon by bgpd). Also while there change the errno for non-existing routing tables to ENOENT. 'Fine' deraadt@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r--sys/net/route.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index ca4940d16e7..72d8927dc8b 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.66 2010/02/09 16:31:14 claudio Exp $ */
+/* $OpenBSD: route.h,v 1.67 2010/04/21 11:52:46 claudio Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -183,6 +183,14 @@ struct rtstat {
};
/*
+ * Routing Table Info.
+ */
+struct rt_tableinfo {
+ u_short rti_tableid; /* routing table id */
+ u_short rti_domainid; /* routing domain id */
+};
+
+/*
* Structures for routing messages.
*/
struct rt_msghdr {