summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-04-10 11:51:38 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-04-10 11:51:38 +0000
commit5cca97d0d1219eb41fb3e9a49f8a4218e61501f3 (patch)
tree31de06314e10cd865c5f9b926a1002b6a36b20d5 /usr.bin
parentefc8cc3da44b94a4a140e2f4df81eee28f9fac61 (diff)
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>
Diffstat (limited to 'usr.bin')
-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 } }, \