Commit 36f2caf1 authored by Martin Mareš's avatar Martin Mareš
Browse files

Fixed generation of device routes for unnumbered point-to-point links.

parent f184ea6f
......@@ -48,6 +48,9 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
A.iface = new;
A.attrs = NULL;
a = rta_lookup(&A);
if (new->flags & IF_UNNUMBERED)
n = net_get(&master_table, 0, new->opposite, new->pxlen);
n = net_get(&master_table, 0, new->prefix, new->pxlen);
e = rte_get_temp(a);
e->pflags = 0;
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