]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Inactive sticky neighbors have no scope.
authorMartin Mares <mj@ucw.cz>
Thu, 1 Jun 2000 13:13:49 +0000 (13:13 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 1 Jun 2000 13:13:49 +0000 (13:13 +0000)
nest/neighbor.c

index 8ebdd3adac69a560b327887bd6c9a5768bcc6dbf..0c7a4ae030cbd604f9230ac1245d2249594a5c0e 100644 (file)
@@ -92,7 +92,10 @@ neigh_find(struct proto *p, ip_addr *a, unsigned flags)
       add_tail(&j->neighbors, &n->if_n);
     }
   else
-    add_tail(&sticky_neigh_list, &n->n);
+    {
+      add_tail(&sticky_neigh_list, &n->n);
+      scope = 0;
+    }
   n->proto = p;
   n->data = NULL;
   n->aux = 0;