summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2015-07-21 05:43:46 +0000
committerrenato <renato@openbsd.org>2015-07-21 05:43:46 +0000
commitfe91619e3f3cc520135ded95e076f0829fe21c8b (patch)
treeef6121c80d35d196874d60c2c91cd11bf24ef683
parentImprove the show lib command. (diff)
downloadwireguard-openbsd-fe91619e3f3cc520135ded95e076f0829fe21c8b.tar.xz
wireguard-openbsd-fe91619e3f3cc520135ded95e076f0829fe21c8b.zip
Re-enable the reload command.
ok claudio@
-rw-r--r--usr.sbin/ldpctl/ldpctl.86
-rw-r--r--usr.sbin/ldpctl/parser.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/ldpctl/ldpctl.8 b/usr.sbin/ldpctl/ldpctl.8
index 552db6f59d7..630697207e6 100644
--- a/usr.sbin/ldpctl/ldpctl.8
+++ b/usr.sbin/ldpctl/ldpctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ldpctl.8,v 1.6 2010/09/01 13:59:17 claudio Exp $
+.\" $OpenBSD: ldpctl.8,v 1.7 2015/07/21 05:43:46 renato Exp $
.\"
.\" Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
.\" Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: September 1 2010 $
+.Dd $Mdocdate: July 21 2015 $
.Dt LDPCTL 8
.Os
.Sh NAME
@@ -48,6 +48,8 @@ the kernel routing table.
Disable verbose debug logging.
.It Cm log verbose
Enable verbose debug logging.
+.It Cm reload
+Reload the configuration file.
.It Cm show fib Op Ar destination | filter
Show the Label Forwarding Information Base.
.Ar destination
diff --git a/usr.sbin/ldpctl/parser.c b/usr.sbin/ldpctl/parser.c
index 3312de06f08..660e023ed7f 100644
--- a/usr.sbin/ldpctl/parser.c
+++ b/usr.sbin/ldpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.6 2013/06/04 02:40:17 claudio Exp $ */
+/* $OpenBSD: parser.c,v 1.7 2015/07/21 05:43:46 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -63,7 +63,7 @@ static const struct token t_show_fib[];
static const struct token t_log[];
static const struct token t_main[] = {
-/* {KEYWORD, "reload", RELOAD, NULL}, */
+ {KEYWORD, "reload", RELOAD, NULL},
{KEYWORD, "fib", FIB, t_fib},
{KEYWORD, "show", SHOW, t_show},
{KEYWORD, "log", NONE, t_log},