]> git.proxmox.com Git - mirror_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>
Tue, 16 May 2017 19:06:35 +0000 (15:06 -0400)
commitc358f112a6733d3507ad8cdc16fb54235dd065f9
treee2b487fd0752000514908bf444c9d4ff3967b213
parent9b938b384c13440670ac77de47b39a1f53b7bdc9
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