diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2005-05-12 19:10:13 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2005-05-12 19:10:13 +0000 |
commit | 87af8df0cfa319a592cd86ee0f15a509f7f68f4e (patch) | |
tree | 87e7d594ec73db7e00fb2c6f56e1a330fc16f031 /usr.sbin/ospfctl/parser.c | |
parent | 0d2ea09ba3d08079bffd80802508fce862db44e6 (diff) |
Add "show database asbr/external/network/router/self-originate/summary"
to ospfctl.
Show detailed information about the LSAs in the Link State Database.
ok claudio@
Diffstat (limited to 'usr.sbin/ospfctl/parser.c')
-rw-r--r-- | usr.sbin/ospfctl/parser.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/ospfctl/parser.c b/usr.sbin/ospfctl/parser.c index 313e2ea5082..b281f855b6b 100644 --- a/usr.sbin/ospfctl/parser.c +++ b/usr.sbin/ospfctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.7 2005/03/26 13:37:16 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.8 2005/05/12 19:10:12 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -82,11 +82,15 @@ static const struct token t_show_iface[] = { }; static const struct token t_show_db[] = { - {NOTOKEN, "", NONE, NULL}, - {KEYWORD, "area", SHOW_DBBYAREA, t_show_area}, -/* {KEYWORD, "router", NONE, NULL}, - {KEYWORD, "network", NONE, NULL}, */ - {ENDTOKEN, "", NONE, NULL} + {NOTOKEN, "", NONE, NULL}, + {KEYWORD, "area", SHOW_DBBYAREA, t_show_area}, + {KEYWORD, "asbr", SHOW_DBASBR, NULL}, + {KEYWORD, "external", SHOW_DBEXT, NULL}, + {KEYWORD, "network", SHOW_DBNET, NULL}, + {KEYWORD, "router", SHOW_DBRTR, NULL}, + {KEYWORD, "self-originated", SHOW_DBSELF, NULL}, + {KEYWORD, "summary", SHOW_DBSUM, NULL}, + {ENDTOKEN, "", NONE, NULL} }; static const struct token t_show_area[] = { |