summaryrefslogtreecommitdiffstats
path: root/proto/static
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-06-01 14:07:13 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-06-01 14:07:13 +0200
commitf98e2915794e8641f0704b22cbd9b574514f5b23 (patch)
treede8aa4df32a205df1c093c089d44a790cf3bafde /proto/static
parent2d45e09f58c4ce857e10c241cf0e89b51b9ec49c (diff)
downloadbird-f98e2915794e8641f0704b22cbd9b574514f5b23.tar
bird-f98e2915794e8641f0704b22cbd9b574514f5b23.zip
The pipe cleanup.
Diffstat (limited to 'proto/static')
-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 c532479..c71d1da 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -60,7 +60,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(p->table, n, p, e);
+ rte_update(p->table, n, p, p, e);
r->installed = 1;
}
@@ -75,7 +75,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(p->table, n, p, NULL);
+ rte_update(p->table, n, p, p, NULL);
r->installed = 0;
}