1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Allow input and output filters (only accept/reject style as we didn't define

modifying filters yet) to be attached to protocol instances.
This commit is contained in:
Martin Mares
1999-03-17 14:31:26 +00:00
parent e0f2e42f4f
commit 529c414953
5 changed files with 42 additions and 4 deletions

View File

@@ -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 <i> 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 */