summaryrefslogtreecommitdiffstats
path: root/proto/static/static.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-05-17 22:16:53 +0200
committerMartin Mares <mj@ucw.cz>1999-05-17 22:16:53 +0200
commit4f1a6d27b9a44f61329bc7b6779a0c645362e181 (patch)
tree4c77601930c97a225f42aaf9ce5dcc378459d1ec /proto/static/static.c
parent0e02abfd5770062768eeb4c75061b7d2f656489d (diff)
downloadbird-4f1a6d27b9a44f61329bc7b6779a0c645362e181.tar
bird-4f1a6d27b9a44f61329bc7b6779a0c645362e181.zip
Kill remaining master_table relics in KRT code.
Make all protocols pass routing table to rte_update and rte_discard.
Diffstat (limited to 'proto/static/static.c')
-rw-r--r--proto/static/static.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index b136b31..d245be2 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -40,7 +40,7 @@ static_install(struct proto *p, struct static_route *r, struct iface *ifa)
e = rte_get_temp(aa);
e->net = n;
e->pflags = 0;
- rte_update(n, p, e);
+ rte_update(p->table, n, p, e);
}
static void
@@ -51,7 +51,7 @@ static_remove(struct proto *p, struct static_route *r)
DBG("Removing static route %I/%d\n", r->net, r->masklen);
n = net_find(p->table, r->net, r->masklen);
if (n)
- rte_update(n, p, NULL);
+ rte_update(p->table, n, p, NULL);
}
static int