]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed generation of device routes for unnumbered point-to-point links.
authorMartin Mares <mj@ucw.cz>
Mon, 19 Oct 1998 17:46:45 +0000 (17:46 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 19 Oct 1998 17:46:45 +0000 (17:46 +0000)
nest/rt-dev.c

index 81dd037787b32ef82fbedc77dbfdbdfec69a3738..1794b90a82c9bbd9e47e7d944f691b89d7edea46 100644 (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);