diff options
author | Martin Mares <mj@ucw.cz> | 1998-10-19 17:46:45 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-10-19 17:46:45 +0000 |
commit | 36f2caf147fb80e2b3db59d367e07f5d143f3710 (patch) | |
tree | a55ac4f318381e277f63f5bbc2ed1c65c8f92570 /nest | |
parent | f184ea6f7e1233403d06fa4615cb9f27f9d9a839 (diff) |
Fixed generation of device routes for unnumbered point-to-point links.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/rt-dev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c index 81dd0377..1794b90a 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -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); |