diff options
Diffstat (limited to 'proto/static')
-rw-r--r-- | proto/static/static.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index 8dfa6f35..40096c16 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -205,10 +205,9 @@ static_add_rte(struct static_proto *p, struct static_route *r) for (r2 = r; r2; r2 = r2->mp_next) { - n = ipa_nonzero(r2->via) ? - neigh_find2(&p->p, &r2->via, r2->iface, - NEF_STICKY | (r2->onlink ? NEF_ONLINK : 0)) : - neigh_find_iface(&p->p, r2->iface); + n = neigh_find(&p->p, r2->via, r2->iface, NEF_STICKY | + (r2->onlink ? NEF_ONLINK : 0) | + (ipa_zero(r2->via) ? NEF_IFACE : 0)); if (!n) { |