From f14a4becbe77cfb3c2e4243d6fc383b0acd8956f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 16 Jan 2000 23:30:06 +0000 Subject: Reworked proto lists -- each proto is now in two lists: the global one (proto_list) and per-type one (original lists). A lot of things simplified. Implemented `disable', `enable' and `restart' CLI commands. --- nest/config.Y | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'nest/config.Y') diff --git a/nest/config.Y b/nest/config.Y index b90b77d..0cb1108 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -30,6 +30,7 @@ CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIREC %type optsym %type r_args %type echo_mask echo_size +%type proto_patt CF_GRAMMAR @@ -287,6 +288,19 @@ echo_size: } ; +CF_CLI(DISABLE, proto_patt, | | all, [[Disable protocol]]) +{ proto_xxable($2, 0); } ; +CF_CLI(ENABLE, proto_patt, | | all, [[Enable protocol]]) +{ proto_xxable($2, 1); } ; +CF_CLI(RESTART, proto_patt, | | all, [[Restart protocol]]) +{ proto_xxable($2, 2); } ; + +proto_patt: + SYM { $$ = $1->name; } + | ALL { $$ = "*"; } + | TEXT + ; + CF_CODE CF_END -- cgit v1.2.3