diff options
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 14 |
1 files changed, 14 insertions, 0 deletions
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 <s> optsym %type <ra> r_args %type <i> echo_mask echo_size +%type <t> proto_patt CF_GRAMMAR @@ -287,6 +288,19 @@ echo_size: } ; +CF_CLI(DISABLE, proto_patt, <protocol> | <pattern> | all, [[Disable protocol]]) +{ proto_xxable($2, 0); } ; +CF_CLI(ENABLE, proto_patt, <protocol> | <pattern> | all, [[Enable protocol]]) +{ proto_xxable($2, 1); } ; +CF_CLI(RESTART, proto_patt, <protocol> | <pattern> | all, [[Restart protocol]]) +{ proto_xxable($2, 2); } ; + +proto_patt: + SYM { $$ = $1->name; } + | ALL { $$ = "*"; } + | TEXT + ; + CF_CODE CF_END |