BGP refactoring in commit f3cfc46450cccc5ac035a5a97c5a1a5484205705
introduced an error which broke route map processing for IPv6 where
AFI_IP was used instead of AFI_IP6.

This patch fixes the typo.

Signed-off-by: Andrej Ota <[email protected]>
---
 bgpd/bgp_routemap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 39fa08c..98d5f1f 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -2389,7 +2389,7 @@ bgp_route_map_update (const char *unused)
              route_map_lookup_by_name (bgp->rmap[AFI_IP][i].name);
          if (bgp->rmap[AFI_IP6][i].name)
            bgp->rmap[AFI_IP6][i].map =
-             route_map_lookup_by_name (bgp->rmap[AFI_IP][i].name);
+             route_map_lookup_by_name (bgp->rmap[AFI_IP6][i].name);
        }
     }
 }
-- 
2.5.5


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to