summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-01 15:13:49 +0200
committerMartin Mares <mj@ucw.cz>2000-06-01 15:13:49 +0200
commita9aa4c1ebb5ccdb2c6c7672267ad32670261a10b (patch)
tree4bc4644431dad3ec2df480e529da6c52b202e96e
parent23df5e4cf3b0ff10e7484fc5ca40cb5ea638078b (diff)
downloadbird-a9aa4c1ebb5ccdb2c6c7672267ad32670261a10b.tar
bird-a9aa4c1ebb5ccdb2c6c7672267ad32670261a10b.zip
Inactive sticky neighbors have no scope.
-rw-r--r--nest/neighbor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/neighbor.c b/nest/neighbor.c
index 8ebdd3a..0c7a4ae 100644
--- a/nest/neighbor.c
+++ b/nest/neighbor.c
@@ -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;