diff options
author | Martin Mares <mj@ucw.cz> | 1999-03-26 21:50:43 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-03-26 21:50:43 +0000 |
commit | 7dc4827c968053e45bcb7f145e9986eeb20c993b (patch) | |
tree | 81363b40e7ed12b7a40d00752680bd694afcdf0d /nest/rt-dev.c | |
parent | 7e5f5ffdda7232048c4baf3fdec358afb494a29d (diff) |
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/rt-dev.c')
-rw-r--r-- | nest/rt-dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c index c122b967..a92fe6f9 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -31,7 +31,7 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old) net *n; debug("dev_if_notify: %s going down\n", old->name); - n = net_find(&master_table, 0, old->prefix, old->pxlen); + n = net_find(p->table, 0, old->prefix, old->pxlen); if (!n) { debug("dev_if_notify: device shutdown: prefix not found\n"); @@ -56,9 +56,9 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old) A.attrs = NULL; a = rta_lookup(&A); if (new->flags & IF_UNNUMBERED) - n = net_get(&master_table, 0, new->opposite, new->pxlen); + n = net_get(p->table, 0, new->opposite, new->pxlen); else - n = net_get(&master_table, 0, new->prefix, new->pxlen); + n = net_get(p->table, 0, new->prefix, new->pxlen); e = rte_get_temp(a); e->net = n; e->pflags = 0; |