From 8fccb7e95469dbfe41d7095fe6a4cd0204b025de Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Thu, 10 Aug 2000 22:44:41 +0000 Subject: - Make statistics unsigned. - Add new control message to atomically get and clear statistics. --- sys/netgraph/ng_tee.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/netgraph/ng_tee.h') diff --git a/sys/netgraph/ng_tee.h b/sys/netgraph/ng_tee.h index f70b9f3a8684..489c75f74218 100644 --- a/sys/netgraph/ng_tee.h +++ b/sys/netgraph/ng_tee.h @@ -64,10 +64,10 @@ struct ng_tee_hookstat { /* Keep this in sync with the above structure definition */ #define NG_TEE_HOOKSTAT_INFO { \ { \ - { "inOctets", &ng_parse_int64_type }, \ - { "inFrames", &ng_parse_int64_type }, \ - { "outOctets", &ng_parse_int64_type }, \ - { "outFrames", &ng_parse_int64_type }, \ + { "inOctets", &ng_parse_uint64_type }, \ + { "inFrames", &ng_parse_uint64_type }, \ + { "outOctets", &ng_parse_uint64_type }, \ + { "outFrames", &ng_parse_uint64_type }, \ { NULL }, \ } \ } @@ -95,6 +95,7 @@ struct ng_tee_stats { enum { NGM_TEE_GET_STATS = 1, /* get stats */ NGM_TEE_CLR_STATS, /* clear stats */ + NGM_TEE_GETCLR_STATS, /* atomically get and clear stats */ }; #endif /* _NETGRAPH_TEE_H_ */ -- cgit v1.2.3