summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2018-05-11 20:33:54 +0000
committerreyk <reyk@openbsd.org>2018-05-11 20:33:54 +0000
commita49b8563304b44b374aafc0a3ada7016b28f8a0b (patch)
tree5267e578deadec0ffe8fe14c83b4e7522158712d
parentWrite out updated dhclient.leases.<if>, /etc/resolv.conf and any -L (diff)
downloadwireguard-openbsd-a49b8563304b44b374aafc0a3ada7016b28f8a0b.tar.xz
wireguard-openbsd-a49b8563304b44b374aafc0a3ada7016b28f8a0b.zip
Make help output of relayctl redirect|host|table friendlier.
From Kapetanakis Giannis OK benno@
-rw-r--r--usr.sbin/relayctl/parser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/relayctl/parser.c b/usr.sbin/relayctl/parser.c
index 0b97aa6ce6c..95c2ff23d1b 100644
--- a/usr.sbin/relayctl/parser.c
+++ b/usr.sbin/relayctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.27 2015/01/22 17:42:09 reyk Exp $ */
+/* $OpenBSD: parser.c,v 1.28 2018/05/11 20:33:54 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -81,21 +81,18 @@ static const struct token t_show[] = {
};
static const struct token t_rdr[] = {
- {NOTOKEN, "", NONE, NULL},
{KEYWORD, "disable", RDR_DISABLE, t_rdr_id},
{KEYWORD, "enable", RDR_ENABLE, t_rdr_id},
{ENDTOKEN, "", NONE, NULL}
};
static const struct token t_table[] = {
- {NOTOKEN, "", NONE, NULL},
{KEYWORD, "disable", TABLE_DISABLE, t_table_id},
{KEYWORD, "enable", TABLE_ENABLE, t_table_id},
{ENDTOKEN, "", NONE, NULL}
};
static const struct token t_host[] = {
- {NOTOKEN, "", NONE, NULL},
{KEYWORD, "disable", HOST_DISABLE, t_host_id},
{KEYWORD, "enable", HOST_ENABLE, t_host_id},
{ENDTOKEN, "", NONE, NULL}