aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2004-08-03 06:52:55 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2004-08-03 06:52:55 +0000
commit4807330cff739386d338a825e316678d888d8a3b (patch)
tree976c9696cf76c92273abe7826705ce192e51891e /share
parent2c8509577d551312b99cdd83fb4047be2c942502 (diff)
downloadsrc-4807330cff739386d338a825e316678d888d8a3b.tar.gz
src-4807330cff739386d338a825e316678d888d8a3b.zip
Implement minimalistic L2TP sessions statistics and correct man page
for L2TP tunnel statistics (which do not take an argument sessionID). Reviewed by: archie Approved by: pjd (mentor)
Notes
Notes: svn path=/head/; revision=133060
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/ng_l2tp.418
1 files changed, 14 insertions, 4 deletions
diff --git a/share/man/man4/ng_l2tp.4 b/share/man/man4/ng_l2tp.4
index a54cd3a32b8e..f45484f31407 100644
--- a/share/man/man4/ng_l2tp.4
+++ b/share/man/man4/ng_l2tp.4
@@ -261,17 +261,27 @@ the current configuration for the corresponding data session as a
.Vt "struct ng_l2tp_sess_config" .
The corresponding session hook must be connected.
.It Dv NGM_L2TP_GET_STATS
-This command takes a two byte session ID as an argument and returns a
+This command returns a
.Vt "struct ng_l2tp_stats"
+containing statistics of the L2TP tunnel.
+.It Dv NGM_L2TP_CLR_STATS
+This command clears the statistics for the L2TP tunnel.
+.It Dv NGM_L2TP_GETCLR_STATS
+Same as
+.Dv NGM_L2TP_GET_STATS ,
+but also atomically clears the statistics as well.
+.It Dv NGM_L2TP_GET_SESSION_STATS
+This command takes a two byte session ID as an argument and returns a
+.Vt "struct ng_l2tp_session_stats"
containing statistics for the corresponding data session.
The corresponding session hook must be connected.
-.It Dv NGM_L2TP_CLR_STATS
+.It Dv NGM_L2TP_CLR_SESSION_STATS
This command takes a two byte session ID as an argument and
clears the statistics for that data session.
The corresponding session hook must be connected.
-.It Dv NGM_L2TP_GETCLR_STATS
+.It Dv NGM_L2TP_GETCLR_SESSION_STATS
Same as
-.Dv NGM_L2TP_GET_STATS ,
+.Dv NGM_L2TP_GET_SESSION_STATS ,
but also atomically clears the statistics as well.
.It Dv NGM_L2TP_SET_SEQ
This command sets the sequence numbers of a not yet enabled node.