mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Export pfsyncstats via sysctl "net.inet.pfsync" in order to print them with
netstat (seperate commit). Requested by: glebius MFC after: 1 week
This commit is contained in:
parent
b9d3b80521
commit
6de8d9dc52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148015
@ -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:
|
||||
|
@ -301,8 +301,11 @@ SYSCTL_NODE(_net_inet, IPPROTO_AH, ipsec, CTLFLAG_RW, 0, "IPSEC");
|
||||
#endif /* !FAST_IPSEC */
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_RAW, raw, CTLFLAG_RW, 0, "RAW");
|
||||
#ifdef PIM
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_PIM, pim, CTLFLAG_RW, 0, "PIM");
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_PIM, pim, CTLFLAG_RW, 0, "PIM");
|
||||
#endif
|
||||
#ifdef DEV_PFSYNC
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_PFSYNC, pfsync, CTLFLAG_RW, 0, "PFSYNC");
|
||||
#endif
|
||||
#ifdef DEV_CARP
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_CARP, carp, CTLFLAG_RW, 0, "CARP");
|
||||
SYSCTL_NODE(_net_inet, IPPROTO_CARP, carp, CTLFLAG_RW, 0, "CARP");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user