diff options
author | 2006-03-31 17:30:39 +0000 | |
---|---|---|
committer | 2006-03-31 17:30:39 +0000 | |
commit | 111ae881f033340efffe0ce7ade8445ecbe225b0 (patch) | |
tree | a15e83f2fa8646e47e6ad3db0ab08a83f1a6b815 /sys/sys/socket.h | |
parent | Backout, causes panics (diff) | |
download | wireguard-openbsd-111ae881f033340efffe0ce7ade8445ecbe225b0.tar.xz wireguard-openbsd-111ae881f033340efffe0ce7ade8445ecbe225b0.zip |
Add sysctl to retrieve the routing table statisitcs. Will be used by netstat
instead of kvm access. OK henning@
Diffstat (limited to 'sys/sys/socket.h')
-rw-r--r-- | sys/sys/socket.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index 2ef396b5947..e42d62a5975 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.52 2005/05/27 04:55:28 mcbride Exp $ */ +/* $OpenBSD: socket.h,v 1.53 2006/03/31 17:30:39 claudio Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -297,13 +297,15 @@ struct sockcred { #define NET_RT_DUMP 1 /* dump; may limit to a.f. */ #define NET_RT_FLAGS 2 /* by flags, e.g. RESOLVING */ #define NET_RT_IFLIST 3 /* survey interface list */ -#define NET_RT_MAXID 4 +#define NET_RT_STATS 4 /* routing table statistics */ +#define NET_RT_MAXID 5 #define CTL_NET_RT_NAMES { \ { 0, 0 }, \ { "dump", CTLTYPE_STRUCT }, \ { "flags", CTLTYPE_STRUCT }, \ { "iflist", CTLTYPE_STRUCT }, \ + { "stats", CTLTYPE_STRUCT }, \ } /* |