]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix occassional turn off of extended-nexthop for an if
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 Nov 2016 14:39:35 +0000 (09:39 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 17 May 2017 12:48:46 +0000 (08:48 -0400)
commit1f0a6ed1f1270a1a3c12bd67675c434c6f05be69
treed2744a5cfa73508b30346a00a97d21979f6db72d
parent77566facad2070deda29fc636de5a6526110c792
bgpd: Fix occassional turn off of extended-nexthop for an if

Sometimes, like once every 400 iterations, when you restart
Quagga, extended-nexthop has been turned off for interface
based config( for 5549 ).

Examining the code, there is only 1 real path to setting
the PEER_FLAG_CAPABILITITY_ENHE and that is through
peer_conf_interface_get.  Modify this code path
to always set the PEER_FLAG_CAPABILITY_ENHE if it is
not already set.

In addition, fix a possible pointer dereference.

Ticket: CM-12929
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c