diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index d1b203e..9bdc04e 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -360,8 +360,7 @@ nl_parse_multipath(struct krt_proto *p, struct rtattr *ra)
 	  memcpy(&rv->gw, RTA_DATA(a[RTA_GATEWAY]), sizeof(ip_addr));
 	  ipa_ntoh(rv->gw);
 
-	  neighbor *ng = neigh_find2(&p->p, &rv->gw, rv->iface,
-				     (nh->rtnh_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0);
+	  neighbor *ng = neigh_find2(&p->p, &rv->gw, rv->iface, NEF_ONLINK);
 	  if (!ng || (ng->scope == SCOPE_HOST))
 	    return NULL;
 	}
@@ -847,8 +846,7 @@ nl_parse_route(struct nlmsghdr *h, int scan)
 	  if (ipa_in_net(ra.gw, IPA_NONE, 96))
 	    return;
 
-	  ng = neigh_find2(&p->p, &ra.gw, ra.iface,
-			   (i->rtm_flags & RTNH_F_ONLINK) ? NEF_ONLINK : 0);
+	  ng = neigh_find2(&p->p, &ra.gw, ra.iface, NEF_ONLINK);
 	  if (!ng || (ng->scope == SCOPE_HOST))
 	    {
 	      log(L_ERR "KRT: Received route %I/%d with strange next-hop %I",
