From db1326aa5e39711d88d305ac08a0afa137ab77f0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 1 Mar 2000 11:32:23 +0000 Subject: Dynamic attributes are now declared in per-protocol grammar files instead of filter/config.Y. Bird now compiles even if you disable RIP. Removed RTA and IMPOSSIBLE tokens (unused). Removed superfluous comment in filter.h. I've tried to do my best, but Pavel, please check these changes. --- proto/rip/config.Y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'proto/rip/config.Y') diff --git a/proto/rip/config.Y b/proto/rip/config.Y index 1bc6720..e1094a5 100644 --- a/proto/rip/config.Y +++ b/proto/rip/config.Y @@ -25,7 +25,8 @@ CF_DECLS CF_KEYWORDS(RIP, INFINITY, METRIC, PORT, PERIOD, GARBAGETIME, PASSWORDS, MODE, BROADCAST, QUIET, NOLISTEN, VERSION1, AUTHENTICATION, NONE, PLAINTEXT, MD5, - HONOUR, NEVER, NEIGHBOUR, ALWAYS) + HONOUR, NEVER, NEIGHBOUR, ALWAYS, + RIP_METRIC, RIP_TAG) %type rip_mode rip_auth @@ -97,6 +98,9 @@ rip_iface_list: | rip_iface_list ',' rip_iface ; +CF_ADDTO(dynamic_attr, RIP_METRIC { $$ = f_new_dynamic_attr(EA_RIP_METRIC); }) +CF_ADDTO(dynamic_attr, RIP_TAG { $$ = f_new_dynamic_attr(EA_RIP_TAG); }) + CF_CODE CF_END -- cgit v1.2.3