summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-04-10 11:51:37 +0000
committerhenning <henning@openbsd.org>2007-04-10 11:51:37 +0000
commitdd9373d51dbe7ed38ce1142f6bb0815f1ec874d3 (patch)
tree99017aef8ffcbb543ebbda4dca596e03dcbf263c
parentNo need to use umount -f now that both cases of vnode leakage were fixed (diff)
downloadwireguard-openbsd-dd9373d51dbe7ed38ce1142f6bb0815f1ec874d3.tar.xz
wireguard-openbsd-dd9373d51dbe7ed38ce1142f6bb0815f1ec874d3.zip
restricts some of the commands that produce too much output when run
without arguments. (eg. Show rib etc. etc, the sort of thing people can run far too casually). From: Adam Chappell <Adam.Chappell at interoute dot com>
-rw-r--r--usr.bin/bgplg/bgplg.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/bgplg/bgplg.h b/usr.bin/bgplg/bgplg.h
index 16ac4e30471..2274c8dd298 100644
--- a/usr.bin/bgplg/bgplg.h
+++ b/usr.bin/bgplg/bgplg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgplg.h,v 1.2 2006/12/25 00:02:25 claudio Exp $ */
+/* $OpenBSD: bgplg.h,v 1.3 2007/04/10 11:51:37 henning Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net>
@@ -35,7 +35,7 @@ struct cmd {
};
#define CMDS { \
- { "show ip bgp", 0, 1, NULL, \
+ { "show ip bgp", 1, 1, "&lt;prefix&gt;", \
{ BGPCTL, "show", "ip", "bgp", NULL } }, \
{ "show ip bgp as", 1, 1, "&lt;asnum&gt;", \
{ BGPCTL, "show", "ip", "bgp", "as", NULL } }, \
@@ -47,11 +47,11 @@ struct cmd {
{ BGPCTL, "show", "ip", "bgp", "empty-as", NULL } }, \
{ "show ip bgp summary", 0, 0, NULL, \
{ BGPCTL, "show", "ip", "bgp", "summary", NULL } }, \
- { "show ip bgp detail", 0, 1, NULL, \
+ { "show ip bgp detail", 1, 1, "&lt;prefix&gt;", \
{ BGPCTL, "show","ip", "bgp", "detail", NULL } }, \
- { "show ip bgp in", 0, 1, NULL, \
+ { "show ip bgp in", 1, 1, "&lt;prefix&gt;", \
{ BGPCTL, "show","ip", "bgp", "in", NULL } }, \
- { "show ip bgp out", 0, 1, NULL, \
+ { "show ip bgp out", 1, 1, "&lt;prefix&gt;", \
{ BGPCTL, "show","ip", "bgp", "out", NULL } }, \
{ "show ip bgp memory", 0, 0, NULL, \
{ BGPCTL, "show", "ip", "bgp", "memory", NULL } }, \