diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-01 14:07:13 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-01 14:07:13 +0200 |
commit | f98e2915794e8641f0704b22cbd9b574514f5b23 (patch) | |
tree | de8aa4df32a205df1c093c089d44a790cf3bafde /proto/static | |
parent | 2d45e09f58c4ce857e10c241cf0e89b51b9ec49c (diff) |
The pipe cleanup.
Diffstat (limited to 'proto/static')
-rw-r--r-- | proto/static/static.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index c5324796..c71d1da9 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; } |