From 529c414953c24c326d9063a8f06fa652f0dfbc30 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Mar 1999 14:31:26 +0000 Subject: Allow input and output filters (only accept/reject style as we didn't define modifying filters yet) to be attached to protocol instances. --- nest/config.Y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nest/config.Y') diff --git a/nest/config.Y b/nest/config.Y index a19cce6..8300132 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -17,7 +17,7 @@ void rt_dev_add_iface(char *); CF_DECLS CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DEVICE) -CF_KEYWORDS(INTERFACE) +CF_KEYWORDS(INTERFACE, INPUT, OUTPUT, FILTER) %type idval @@ -67,6 +67,8 @@ proto_item: | DEBUG expr { this_proto->debug = $2; } | DEBUG ALL { this_proto->debug = ~0; } | DEBUG OFF { this_proto->debug = 0; } + | INPUT FILTER filter { this_proto->in_filter = $3; } + | OUTPUT FILTER filter { this_proto->out_filter = $3; } ; /* Device protocol */ -- cgit v1.2.3