Commit b21955e0 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes a bug related to mixed up neighbor events in BGP.

Neighbor events related to received route next hops got mixed up with
sticky neighbor node for an IP of the BGP peer. If a neighbor for a next
hop disappears, BGP session is shut down.
parent 00192d5a
......@@ -743,6 +743,9 @@ bgp_neigh_notify(neighbor *n)
struct bgp_proto *p = (struct bgp_proto *) n->proto;
if (! (n->flags & NEF_STICKY))
if (n->scope > 0)
if ((p->p.proto_state == PS_START) && (p->start_state == BSS_PREPARE))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment