1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

- Make statistics unsigned.

- Add new control message to atomically get and clear statistics.
This commit is contained in:
Archie Cobbs 2000-08-10 22:44:41 +00:00
parent 7b3bf3f9aa
commit 8fccb7e954
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64507

View File

@ -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_ */