Fixed generation of device routes for unnumbered point-to-point links.
This commit is contained in:
parent
f184ea6f7e
commit
36f2caf147
1 changed files with 4 additions and 1 deletions
|
@ -48,6 +48,9 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
|
||||||
A.iface = new;
|
A.iface = new;
|
||||||
A.attrs = NULL;
|
A.attrs = NULL;
|
||||||
a = rta_lookup(&A);
|
a = rta_lookup(&A);
|
||||||
|
if (new->flags & IF_UNNUMBERED)
|
||||||
|
n = net_get(&master_table, 0, new->opposite, new->pxlen);
|
||||||
|
else
|
||||||
n = net_get(&master_table, 0, new->prefix, new->pxlen);
|
n = net_get(&master_table, 0, new->prefix, new->pxlen);
|
||||||
e = rte_get_temp(a);
|
e = rte_get_temp(a);
|
||||||
e->pflags = 0;
|
e->pflags = 0;
|
||||||
|
|
Loading…
Reference in a new issue