diff options
author | ru <ru@FreeBSD.org> | 2004-05-19 11:26:33 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-05-19 11:26:33 +0000 |
commit | 63a58dc2d2db4c7d8f82237a7e949a7d09c4fc23 (patch) | |
tree | 813a70bb3f57fe0d147478e182c21ed456c78183 /share/man/man4/ng_hole.4 | |
parent | db8317e9835a860ed49308bf8be0b919371d1faa (diff) | |
download | FreeBSD-src-63a58dc2d2db4c7d8f82237a7e949a7d09c4fc23.zip FreeBSD-src-63a58dc2d2db4c7d8f82237a7e949a7d09c4fc23.tar.gz |
Maintain statistics about the received frames.
Diffstat (limited to 'share/man/man4/ng_hole.4')
-rw-r--r-- | share/man/man4/ng_hole.4 | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/share/man/man4/ng_hole.4 b/share/man/man4/ng_hole.4 index 65a6a09..fd956ad 100644 --- a/share/man/man4/ng_hole.4 +++ b/share/man/man4/ng_hole.4 @@ -35,7 +35,7 @@ .\" $FreeBSD$ .\" $Whistle: ng_hole.8,v 1.4 1999/01/25 23:46:26 archie Exp $ .\" -.Dd January 19, 1999 +.Dd May 19, 2004 .Dt NG_HOLE 4 .Os .Sh NAME @@ -54,8 +54,25 @@ A node accepts any request to connect, regardless of the hook name, as long as the name is unique. .Sh CONTROL MESSAGES -This node type supports only the generic control messages. -Other control messages are silently discarded. +This node type supports the generic control messages, plus the +following: +.Bl -tag -width indent +.It Dv NGM_BPF_GET_STATS +This command takes an +.Tn ASCII +string argument, the hook name, and returns the statistics +associated with the hook as a +.Vt "struct ng_hole_hookstat" . +.It Dv NGM_BPF_CLR_STATS +This command takes an +.Tn ASCII +string argument, the hook name, and clears the statistics +associated with the hook. +.It Dv NGM_BPF_GETCLR_STATS +This command is identical to +.Dv NGM_BPF_GET_STATS , +except that the statistics are also atomically cleared. +.El .Sh SHUTDOWN This node shuts down upon receipt of a .Dv NGM_SHUTDOWN |