summaryrefslogtreecommitdiffstats
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-26 22:50:43 +0100
committerMartin Mares <mj@ucw.cz>1999-03-26 22:50:43 +0100
commit7dc4827c968053e45bcb7f145e9986eeb20c993b (patch)
tree81363b40e7ed12b7a40d00752680bd694afcdf0d /nest/protocol.h
parent7e5f5ffdda7232048c4baf3fdec358afb494a29d (diff)
downloadbird-7dc4827c968053e45bcb7f145e9986eeb20c993b.tar
bird-7dc4827c968053e45bcb7f145e9986eeb20c993b.zip
Added everything protocols need to know about multiple routing tables,
i.e. struct proto now contains field 'table' pointing to routing table the protocol is attached to. Use this instead of &master_table. Modified all protocols except the kernel syncer to use this field.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 626dd99..1e62765 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -99,11 +99,10 @@ struct proto {
void (*rte_insert)(struct network *, struct rte *);
void (*rte_remove)(struct network *, struct rte *);
+ struct rtable *table; /* Routing table we're connected to */
struct filter *in_filter; /* Input filter */
struct filter *out_filter; /* Output filter */
- /* Connection to routing tables? */
-
/* Hic sunt protocol-specific data */
};