summaryrefslogtreecommitdiffstats
path: root/nest/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-11-29 15:40:39 +0100
committerMartin Mares <mj@ucw.cz>1998-11-29 15:40:39 +0100
commitbd5d0d62f10c65d56e1900014be5989a3feb8380 (patch)
tree33acdff0db62a4221888232cc23361c3bc830885 /nest/config.Y
parent0cf86f0fc34c7daf020a9189279644af89e273a1 (diff)
downloadbird-bd5d0d62f10c65d56e1900014be5989a3feb8380.tar
bird-bd5d0d62f10c65d56e1900014be5989a3feb8380.zip
Allow setting debug value and `disabled' flag in protocol definition.
Diffstat (limited to 'nest/config.Y')
-rw-r--r--nest/config.Y6
1 files changed, 5 insertions, 1 deletions
diff --git a/nest/config.Y b/nest/config.Y
index f467a1a..9efebbe 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -12,7 +12,7 @@ static struct proto *this_proto;
CF_DECLS
-CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE)
+CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF)
%type <i> idval
@@ -58,6 +58,10 @@ proto_item:
if ($2 < 0 || $2 > 255) cf_error("Invalid preference");
this_proto->preference = $2;
}
+ | DISABLED { this_proto->disabled = 1; }
+ | DEBUG expr { this_proto->debug = $2; }
+ | DEBUG ALL { this_proto->debug = ~0; }
+ | DEBUG OFF { this_proto->debug = 0; }
;
CF_CODE