summaryrefslogtreecommitdiffstats
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-17 15:31:26 +0100
committerMartin Mares <mj@ucw.cz>1999-03-17 15:31:26 +0100
commit529c414953c24c326d9063a8f06fa652f0dfbc30 (patch)
tree805c97ac7b12e7a5d81ab2e69e7138c314855881 /nest/protocol.h
parente0f2e42f4f420f7bbdda3d4656c9dda585f1297a (diff)
downloadbird-529c414953c24c326d9063a8f06fa652f0dfbc30.tar
bird-529c414953c24c326d9063a8f06fa652f0dfbc30.zip
Allow input and output filters (only accept/reject style as we didn't define
modifying filters yet) to be attached to protocol instances.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index a168b41..1e641a5 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -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 */