summaryrefslogtreecommitdiff
path: root/zebra/zebra_srte.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_srte.c')
-rw-r--r--zebra/zebra_srte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_srte.c b/zebra/zebra_srte.c
index 746158c4b3..d50d3dfe89 100644
--- a/zebra/zebra_srte.c
+++ b/zebra/zebra_srte.c
@@ -140,7 +140,7 @@ static int zebra_sr_policy_notify_update_client(struct zebra_sr_policy *policy,
stream_putc(s, IPV6_MAX_BITLEN);
stream_put(s, &policy->endpoint.ipaddr_v6, IPV6_MAX_BYTELEN);
break;
- default:
+ case IPADDR_NONE:
flog_warn(EC_LIB_DEVELOPMENT,
"%s: unknown policy endpoint address family: %u",
__func__, policy->endpoint.ipa_type);
@@ -202,7 +202,7 @@ static void zebra_sr_policy_notify_update(struct zebra_sr_policy *policy)
p.prefixlen = IPV6_MAX_BITLEN;
p.u.prefix6 = policy->endpoint.ipaddr_v6;
break;
- default:
+ case IPADDR_NONE:
flog_warn(EC_LIB_DEVELOPMENT,
"%s: unknown policy endpoint address family: %u",
__func__, policy->endpoint.ipa_type);