0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

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

This commit is contained in:
Martin Mares 1998-10-19 17:46:45 +00:00
parent f184ea6f7e
commit 36f2caf147

View File

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