]> git.puffer.fish Git - mirror/frr.git/commitdiff
Fix bgp_route.c missing code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 23 Jul 2015 00:20:41 +0000 (17:20 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 23 Jul 2015 00:20:41 +0000 (17:20 -0700)
bgpd/bgp_route.c

index 0c4b79cf9842eeaed0e61d698545f1329ff3a913..9e02b311e798359c20c704c47d49a42879c2fc04 100644 (file)
@@ -1484,7 +1484,7 @@ subgroup_announce_check (struct bgp_info *ri, struct update_subgroup *subgrp,
    * the global nexthop here; the link-local nexthop would have been cleared
    * already, and if not, it is required by the update formation code.
    * Also see earlier comments in this function.
-  */
+   */
   /*
    * If route-map has performed some operation on the nexthop or the peer
    * configuration says to pass it unchanged, we cannot reset the nexthop
@@ -1496,14 +1496,13 @@ subgroup_announce_check (struct bgp_info *ri, struct update_subgroup *subgrp,
                              riattr->rmap_change_flags) &&
       !transparent &&
       !CHECK_FLAG (peer->af_flags[afi][safi], PEER_FLAG_NEXTHOP_UNCHANGED))
-
     {
       /* We can reset the nexthop, if setting (or forcing) it to 'self' */
       if (CHECK_FLAG (peer->af_flags[afi][safi], PEER_FLAG_NEXTHOP_SELF))
         {
           if (!reflect ||
               CHECK_FLAG (peer->af_flags[afi][safi],
-                          PEER_FLAG_NEXTHOP_SELF_ALL))
+                          PEER_FLAG_FORCE_NEXTHOP_SELF))
             subgroup_announce_reset_nhop ((peer_cap_enhe(peer) ?
                           AF_INET6 : p->family), attr);
         }