summaryrefslogtreecommitdiff
path: root/staticd/static_routes.c
diff options
context:
space:
mode:
Diffstat (limited to 'staticd/static_routes.c')
-rw-r--r--staticd/static_routes.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/staticd/static_routes.c b/staticd/static_routes.c
index ccbb98bd11..3399686a90 100644
--- a/staticd/static_routes.c
+++ b/staticd/static_routes.c
@@ -1,21 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* STATICd - route code
* Copyright (C) 2018 Cumulus Networks, Inc.
* Donald Sharp
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; see the file COPYING; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <zebra.h>
@@ -209,7 +196,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 +290,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;
}
/*