]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Zebra: Fix log related to delete notification for IPv6 route
authorvivek <vivek@cumulusnetworks.com>
Wed, 2 Sep 2015 23:43:33 +0000 (16:43 -0700)
committervivek <vivek@cumulusnetworks.com>
Wed, 2 Sep 2015 23:43:33 +0000 (16:43 -0700)
Ticket: CM-7204
Reviewed By: CCR-3449
Testing Done: Verified the log manually

Port of patch zebra-fix-ipv6-route-delete-log.patch from 2.5-br

zebra/zebra_rib.c

index 416c1dcf7bb410a6885405e908e90deaa1f00a18..83ae03eb1f317b3543f48964fc9d5bcc60ac7961 100644 (file)
@@ -3459,7 +3459,7 @@ rib_delete_ipv6 (int type, u_short instance, int flags, struct prefix_ipv6 *p,
           if (IS_ZEBRA_DEBUG_KERNEL)
             {
               zlog_debug ("Zebra route %s/%d was deleted by others from kernel",
-                         inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
+                         inet_ntop (AF_INET6, &p->prefix, buf1, INET6_ADDRSTRLEN),
                          p->prefixlen);
             }
          if (allow_delete)