summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hoststatectl/parser.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2007-09-07 08:33:31 +0000
committerreyk <reyk@openbsd.org>2007-09-07 08:33:31 +0000
commitfa0d847854056a3b54918baa214bcc60a955f502 (patch)
tree71755078fe2af1a3afe6accc70c1163668fa3e55 /usr.sbin/hoststatectl/parser.c
parentsimple style change in the switch (diff)
downloadwireguard-openbsd-fa0d847854056a3b54918baa214bcc60a955f502.tar.xz
wireguard-openbsd-fa0d847854056a3b54918baa214bcc60a955f502.zip
add a "show sessions" command to dump the complete list of running relay
sessions.
Diffstat (limited to 'usr.sbin/hoststatectl/parser.c')
-rw-r--r--usr.sbin/hoststatectl/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststatectl/parser.c b/usr.sbin/hoststatectl/parser.c
index 70983b0d64a..6f507d1335e 100644
--- a/usr.sbin/hoststatectl/parser.c
+++ b/usr.sbin/hoststatectl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.11 2007/05/29 22:41:48 pyr Exp $ */
+/* $OpenBSD: parser.c,v 1.12 2007/09/07 08:33:31 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -78,6 +78,7 @@ static const struct token t_show[] = {
{KEYWORD, "summary", SHOW_SUM, NULL},
{KEYWORD, "hosts", SHOW_HOSTS, NULL},
{KEYWORD, "relays", SHOW_RELAYS, NULL},
+ {KEYWORD, "sessions", SHOW_SESSIONS, NULL},
{ENDTOKEN, "", NONE, NULL}
};