diff options
| author | 2005-03-12 11:03:05 +0000 | |
|---|---|---|
| committer | 2005-03-12 11:03:05 +0000 | |
| commit | 3735523097595f2ae9c7910298932db42ce27cd7 (patch) | |
| tree | c5cc71dfd289721a7196f956a90fd3b83948f4c5 /usr.sbin/ospfctl/parser.c | |
| parent | Small K&F. (diff) | |
| download | wireguard-openbsd-3735523097595f2ae9c7910298932db42ce27cd7.tar.xz wireguard-openbsd-3735523097595f2ae9c7910298932db42ce27cd7.zip | |
Add "show rib" and "show rib detail" to ospfctl.
ok henning@
Diffstat (limited to 'usr.sbin/ospfctl/parser.c')
| -rw-r--r-- | usr.sbin/ospfctl/parser.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/parser.c b/usr.sbin/ospfctl/parser.c index 02c9d8762bf..1ab0e16a81b 100644 --- a/usr.sbin/ospfctl/parser.c +++ b/usr.sbin/ospfctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.3 2005/02/02 19:08:42 henning Exp $ */ +/* $OpenBSD: parser.c,v 1.4 2005/03/12 11:03:05 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -53,6 +53,7 @@ static const struct token t_show_iface[]; static const struct token t_show_db[]; static const struct token t_show_area[]; static const struct token t_show_nbr[]; +static const struct token t_show_rib[]; static const struct token t_main[] = { /* {KEYWORD, "reload", RELOAD, NULL}, */ @@ -66,6 +67,7 @@ static const struct token t_show[] = { {KEYWORD, "database", SHOW_DB, t_show_db}, {KEYWORD, "neighbor", SHOW_NBR, t_show_nbr}, /* {KEYWORD, "summary", SHOW_SUMMARY, NULL}, */ + {KEYWORD, "rib", SHOW_RIB, t_show_rib}, {ENDTOKEN, "", NONE, NULL} }; @@ -94,6 +96,12 @@ static const struct token t_show_nbr[] = { {ENDTOKEN, "", NONE, NULL} }; +static const struct token t_show_rib[] = { + {NOTOKEN, "", NONE, NULL}, + {KEYWORD, "detail", SHOW_RIB_DTAIL, NULL}, + {ENDTOKEN, "", NONE, NULL} +}; + static struct parse_result res; struct parse_result * |
