aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-08-10 22:44:41 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-08-10 22:44:41 +0000
commit8fccb7e95469dbfe41d7095fe6a4cd0204b025de (patch)
tree7746c3abf9457357250b1479e5afedea6b1be286
parent7b3bf3f9aac680e6827641619ea9fb60ddc934e2 (diff)
downloadsrc-8fccb7e95469dbfe41d7095fe6a4cd0204b025de.tar.gz
src-8fccb7e95469dbfe41d7095fe6a4cd0204b025de.zip
- Make statistics unsigned.
- Add new control message to atomically get and clear statistics.
Notes
Notes: svn path=/head/; revision=64507
-rw-r--r--sys/netgraph/ng_tee.h9
1 files changed, 5 insertions, 4 deletions
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_ */