diff options
author | mlaier <mlaier@FreeBSD.org> | 2005-07-14 22:22:51 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2005-07-14 22:22:51 +0000 |
commit | a390027dcd1a460c262d92b75b0845f321b582e7 (patch) | |
tree | c0b90ef07ca0fc0656a43a66a46adf7543d9847e /sys/contrib | |
parent | 841c5ac424184f3ed263a8eefaf9b19018d912de (diff) | |
download | FreeBSD-src-a390027dcd1a460c262d92b75b0845f321b582e7.zip FreeBSD-src-a390027dcd1a460c262d92b75b0845f321b582e7.tar.gz |
Export pfsyncstats via sysctl "net.inet.pfsync" in order to print them with
netstat (seperate commit).
Requested by: glebius
MFC after: 1 week
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 76af305..77b4b5f 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -56,6 +56,7 @@ #include <sys/sockio.h> #include <sys/lock.h> #include <sys/mutex.h> +#include <sys/sysctl.h> #else #include <sys/ioctl.h> #include <sys/timeout.h> @@ -119,8 +120,11 @@ int pfsyncdebug; struct pfsync_softc pfsyncif; #endif struct pfsyncstats pfsyncstats; - #ifdef __FreeBSD__ +SYSCTL_DECL(_net_inet_pfsync); +SYSCTL_STRUCT(_net_inet_pfsync, 0, stats, CTLFLAG_RW, + &pfsyncstats, pfsyncstats, + "PFSYNC statistics (struct pfsyncstats, net/if_pfsync.h)"); /* * Locking notes: |