]> git.puffer.fish Git - mirror/frr.git/commitdiff
vnc/eigrpd/isisd: check for the correct message types
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 19 Aug 2017 14:28:21 +0000 (11:28 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 23 Aug 2017 20:45:17 +0000 (17:45 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/rfapi/vnc_zebra.c
eigrpd/eigrp_zebra.c
isisd/isis_zebra.c

index 8f4a550bdeb55d912606a4a192990c104d421ef2..29652e59db7c42a13824614843ac39de86fba15b 100644 (file)
@@ -367,7 +367,7 @@ static int vnc_zebra_read_ipv4(int command, struct zclient *zclient,
        else
                api.metric = 0;
 
-       if (command == ZEBRA_IPV4_ROUTE_ADD) {
+       if (command == ZEBRA_REDISTRIBUTE_IPV4_ADD) {
                if (BGP_DEBUG(zebra, ZEBRA)) {
                        char buf[2][INET_ADDRSTRLEN];
                        vnc_zlog_debug_verbose(
@@ -456,7 +456,7 @@ static int vnc_zebra_read_ipv6(int command, struct zclient *zclient,
        if (IN6_IS_ADDR_LINKLOCAL(&p.prefix))
                return 0;
 
-       if (command == ZEBRA_IPV6_ROUTE_ADD) {
+       if (command == ZEBRA_REDISTRIBUTE_IPV6_ADD) {
                if (BGP_DEBUG(zebra, ZEBRA)) {
                        char buf[INET6_ADDRSTRLEN];
                        vnc_zlog_debug_verbose(
index 00b269b4897e25f7db01cac34f95d916ccfc4ee4..0ee89eb675a86d87c0f4967c9a56d5cfb17d7380 100644 (file)
@@ -162,9 +162,9 @@ static int eigrp_zebra_read_ipv4(int command, struct zclient *zclient,
        if (eigrp == NULL)
                return 0;
 
-       if (command == ZEBRA_IPV4_ROUTE_ADD) {
+       if (command == ZEBRA_REDISTRIBUTE_IPV4_ADD) {
 
-       } else /* if (command == ZEBRA_IPV4_ROUTE_DELETE) */
+       } else /* if (command == ZEBRA_REDISTRIBUTE_IPV4_DEL) */
        {
        }
 
index c1d558fc2248735b4ed93e3aca300d060652732c..5fc3a24c30544ff3bea87c9d2bc25e73a7ae008d 100644 (file)
@@ -568,7 +568,7 @@ static int isis_zebra_read_ipv4(int command, struct zclient *zclient,
         * without this check)
         */
        if (p.prefixlen == 0 && api.type == ZEBRA_ROUTE_ISIS)
-               command = ZEBRA_IPV4_ROUTE_DELETE;
+               command = ZEBRA_REDISTRIBUTE_IPV4_DEL;
 
        if (command == ZEBRA_REDISTRIBUTE_IPV4_ADD)
                isis_redist_add(api.type, p_generic, api.distance, api.metric);
@@ -637,7 +637,7 @@ static int isis_zebra_read_ipv6(int command, struct zclient *zclient,
         * without this check)
         */
        if (p.prefixlen == 0 && api.type == ZEBRA_ROUTE_ISIS)
-               command = ZEBRA_IPV6_ROUTE_DELETE;
+               command = ZEBRA_REDISTRIBUTE_IPV6_DEL;
 
        if (command == ZEBRA_REDISTRIBUTE_IPV6_ADD)
                isis_redist_add(api.type, p_generic, api.distance, api.metric);