summaryrefslogtreecommitdiffstats
path: root/proto/static
diff options
context:
space:
mode:
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 e15a43b..07dafa3 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -56,7 +56,7 @@ static_install(struct proto *p, struct static_route *r, struct iface *ifa)
a.iface = ifa;
aa = rta_lookup(&a);
- n = net_get2(p->table, r->net, r->masklen, r->cast);
+ n = net_get_cast(p->table, r->net, r->masklen, r->cast);
e = rte_get_temp(aa);
e->net = n;
e->pflags = 0;
@@ -73,7 +73,7 @@ static_remove(struct proto *p, struct static_route *r)
return;
DBG("Removing static route %I/%d%s\n", r->net, r->masklen, (r->cast == RTC_MULTICAST) ? ", multicast" : "");
- n = net_find2(p->table, r->net, r->masklen, r->cast);
+ n = net_find_cast(p->table, r->net, r->masklen, r->cast);
if (n)
rte_update(p->table, n, p, p, NULL);
r->installed = 0;