]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BSD: Fix of the previous commit
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 27 Jun 2018 15:08:59 +0000 (17:08 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 27 Jun 2018 15:10:01 +0000 (17:10 +0200)
sysdep/bsd/krt-sock.c

index 8522e41521a8ca077df92f5defa3e3fb73b14791..e646c41429741ae1b88a3d1545a5f16c6121e123 100644 (file)
@@ -532,7 +532,7 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan)
     if (ipa_is_link_local(a.nh.gw))
       _I0(a.nh.gw) = 0xfe800000;
 
-    ng = neigh_find2(&p->p, &a.nh.gw, a.nh.iface, 0);
+    ng = neigh_find(&p->p, a.nh.gw, a.nh.iface, 0);
     if (!ng || (ng->scope == SCOPE_HOST))
       {
        /* Ignore routes with next-hop 127.0.0.1, host routes with such