diff options
author | Dinesh G Dutt <ddutt@cumulusnetworks.com> | 2015-02-01 00:56:12 -0800 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2015-09-24 15:26:42 +0100 |
commit | 234e5c8d5a35339fb319affb952581bf5abb48a7 (patch) | |
tree | 1d7c03380a8a9a34e71f52e841bed2a81bece36b /tests/main.c | |
parent | bd4b7f1559ab5cb52bbe9dc2db9e50a032ccdbb7 (diff) | |
download | quagga-234e5c8d5a35339fb319affb952581bf5abb48a7.tar.bz2 quagga-234e5c8d5a35339fb319affb952581bf5abb48a7.tar.xz |
bgpd: Only use routes from Established peers for best path selection
Ensure that routes from a peer are not considered for best path
comparison if the peer is not in an Established state. There can
be a window between a peer being deleted and the background
thread that actually clears the routes (marks them as "removed")
runs during which best path may run. If this path selection
compared two prefixes all the way down to peer IP addresses and
one of these two peers had just been deleted, that peer would
not have its sockunion structures, especially su_remote, resulting
in a BGPD exception.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'tests/main.c')
0 files changed, 0 insertions, 0 deletions