summaryrefslogtreecommitdiffstats
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-30 16:05:58 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-01-31 21:15:42 +0100
commita98701f0531c54e425ef4ffa5f3f2c67aad2ae17 (patch)
treea687a0a3d59723339d3e6f111ce9539e73b9382e /zebra/connected.c
parentbgpd: Add missing enum's to case statement (diff)
downloadfrr-a98701f0531c54e425ef4ffa5f3f2c67aad2ae17.tar.xz
frr-a98701f0531c54e425ef4ffa5f3f2c67aad2ae17.zip
zebra: Add missing enums to switch statements
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/connected.c')
-rw-r--r--zebra/connected.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index c01be58e8..9c207acf3 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -247,7 +247,9 @@ void connected_up(struct interface *ifp, struct connected *ifc)
return;
#endif
break;
- default:
+ case AFI_UNSPEC:
+ case AFI_L2VPN:
+ case AFI_MAX:
flog_warn(EC_ZEBRA_CONNECTED_AFI_UNKNOWN,
"Received unknown AFI: %s", afi2str(afi));
return;
@@ -435,7 +437,9 @@ void connected_down(struct interface *ifp, struct connected *ifc)
if (IN6_IS_ADDR_UNSPECIFIED(&p.u.prefix6))
return;
break;
- default:
+ case AFI_UNSPEC:
+ case AFI_L2VPN:
+ case AFI_MAX:
zlog_warn("Unknown AFI: %s", afi2str(afi));
break;
}