Commit de14a7c7 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Ignore routes with next-hop on BSD.

parent a9f380fe
......@@ -381,6 +381,11 @@ krt_read_rt(struct ks_msg *msg, struct krt_proto *p, int scan)
ng = neigh_find2(&p->p, &, a.iface, 0);
if (!ng || (ng->scope == SCOPE_HOST))
/* Ignore routes with next-hop, host routes with such
next-hop appear on OpenBSD for address aliases. */
if (ipa_classify( == (IADDR_HOST | SCOPE_HOST))
log(L_ERR "KRT: Received route %I/%d with strange next-hop %I",
net->n.prefix, net->n.pxlen,;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment