]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Distinguish source/destination PBR IP in zlog_warn messages 6000/head
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Sat, 14 Mar 2020 12:23:40 +0000 (14:23 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Sat, 14 Mar 2020 12:23:40 +0000 (14:23 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
zebra/zapi_msg.c

index 88e3ce68d3cc3bdc4fcb0f08dec1c8be3ff694a5..f1c181438eebb011dc7859d517149a92964df167 100644 (file)
@@ -2418,9 +2418,11 @@ static inline void zread_rule(ZAPI_HANDLER_ARGS)
                }
                if (!(zpr.rule.filter.dst_ip.family == AF_INET
                      || zpr.rule.filter.dst_ip.family == AF_INET6)) {
-                       zlog_warn("Unsupported PBR IP family: %s (%" PRIu8 ")",
-                                 family2str(zpr.rule.filter.dst_ip.family),
-                                 zpr.rule.filter.dst_ip.family);
+                       zlog_warn(
+                               "Unsupported PBR destination IP family: %s (%" PRIu8
+                               ")",
+                               family2str(zpr.rule.filter.dst_ip.family),
+                               zpr.rule.filter.dst_ip.family);
                        return;
                }
 
@@ -2512,14 +2514,18 @@ static inline void zread_ipset_entry(ZAPI_HANDLER_ARGS)
 
                if (!(zpi.dst.family == AF_INET
                      || zpi.dst.family == AF_INET6)) {
-                       zlog_warn("Unsupported PBR IP family: %s (%" PRIu8 ")",
-                                 family2str(zpi.dst.family), zpi.dst.family);
+                       zlog_warn(
+                               "Unsupported PBR destination IP family: %s (%" PRIu8
+                               ")",
+                               family2str(zpi.dst.family), zpi.dst.family);
                        goto stream_failure;
                }
                if (!(zpi.src.family == AF_INET
                      || zpi.src.family == AF_INET6)) {
-                       zlog_warn("Unsupported PBR IP family: %s (%" PRIu8 ")",
-                                 family2str(zpi.src.family), zpi.src.family);
+                       zlog_warn(
+                               "Unsupported PBR source IP family: %s (%" PRIu8
+                               ")",
+                               family2str(zpi.src.family), zpi.src.family);
                        goto stream_failure;
                }