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

@@ -70,6 +70,7 @@ struct proto_config {
struct protocol *proto; /* Protocol */
char *name;
unsigned debug, preference, disabled; /* Generic parameters */
struct filter *in_filter, *out_filter; /* Attached filters */
/* Protocol-specific data follow... */
};
@@ -97,7 +98,9 @@ struct proto {
void (*rte_insert)(struct network *, struct rte *);
void (*rte_remove)(struct network *, struct rte *);
/* Input/output filters */
struct filter *in_filter; /* Input filter */
struct filter *out_filter; /* Output filter */
/* Connection to routing tables? */
/* Hic sunt protocol-specific data */