]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Merge pull request #6191 from NaveenThanikachalam/ibgp_connected
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 21 Apr 2020 20:16:03 +0000 (23:16 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Apr 2020 20:16:03 +0000 (23:16 +0300)
bgpd: Enforce self-next-hop check in next-hop update.

1  2 
bgpd/bgp_route.c

index 09eb6fcf82ce1b2fb3a3c542da5d80c129888585,95b18f4e6dbbbc95ab78d352b6aec47c1190dd55..18343231b5208bed858591cab625b479c2d637c7
@@@ -3234,11 -3226,11 +3234,11 @@@ static bool overlay_index_equal(afi_t a
  }
  
  /* Check if received nexthop is valid or not. */
static bool bgp_update_martian_nexthop(struct bgp *bgp, afi_t afi, safi_t safi,
-                                      uint8_t type, uint8_t stype,
-                                      struct attr *attr, struct bgp_node *rn)
+ bool bgp_update_martian_nexthop(struct bgp *bgp, afi_t afi, safi_t safi,
+                               uint8_t type, uint8_t stype, struct attr *attr,
+                               struct bgp_node *rn)
  {
 -      bool ret = 0;
 +      bool ret = false;
  
        /* Only validated for unicast and multicast currently. */
        /* Also valid for EVPN where the nexthop is an IP address. */