]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix invalid labeled nexthop check
authorEmanuele Di Pascale <emanuele@voltanet.io>
Thu, 22 Apr 2021 17:04:47 +0000 (19:04 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Fri, 23 Apr 2021 09:20:52 +0000 (11:20 +0200)
commitc3b95419ba3a3f7cb6cdcb96e58bcc85b6965557
treeb8049a9ab49bf71708506f2a29cc5f62bc27367c
parentb38f1fd03dacfcd2536d96379f575156d3844ee9
bgpd: fix invalid labeled nexthop check

the code processing an NHT update was only resetting the BGP_NEXTHOP_VALID
flag, so labeled nexthops were considered valid even if there was no
nexthop. Reset the flag in response to the update, and also make the
isvalid_nexthop functions a little more robust by checking the number
of nexthops.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
bgpd/bgp_nht.c