summaryrefslogtreecommitdiff
path: root/staticd/static_routes.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-30 10:09:22 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-01-31 15:15:42 -0500
commit7c734d80209a3cf36e3b31e667a53fdef6afd47a (patch)
treea7e1d8b29b2526a1423a3172760cfaa739fa0b5e /staticd/static_routes.c
parentd0038397b7c3d20a3c14c9fab5c8d012d145faae (diff)
staticd: Add missing enum's to switch statement
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'staticd/static_routes.c')
-rw-r--r--staticd/static_routes.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c
index ccbb98bd11..0c39058a8d 100644
--- a/staticd/static_routes.c
+++ b/staticd/static_routes.c
@@ -209,7 +209,8 @@ bool static_add_nexthop_validate(const char *nh_vrf_name,
vrf->vrf_id))
return false;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
@@ -302,7 +303,8 @@ struct static_nexthop *static_add_nexthop(struct static_path *pn,
case STATIC_IPV6_GATEWAY_IFNAME:
nh->addr.ipv6 = ipaddr->ipaddr_v6;
break;
- default:
+ case STATIC_IFNAME:
+ case STATIC_BLACKHOLE:
break;
}
/*