summaryrefslogtreecommitdiff
path: root/zebra/zebra_routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_routemap.c')
-rw-r--r--zebra/zebra_routemap.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c
index 5d1cbbe781..f48bf3b033 100644
--- a/zebra/zebra_routemap.c
+++ b/zebra/zebra_routemap.c
@@ -705,6 +705,9 @@ DEFPY (ip_protocol,
{
int ret, rtype;
+ assert(proto);
+ assert(rmap);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -737,6 +740,8 @@ DEFPY (no_ip_protocol,
{
int ret, rtype;
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -781,6 +786,9 @@ DEFPY (ipv6_protocol,
{
int ret, rtype;
+ assert(rmap);
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -813,6 +821,8 @@ DEFPY (no_ipv6_protocol,
{
int ret, rtype;
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -858,6 +868,9 @@ DEFPY (ip_protocol_nht_rmap,
int ret, rtype;
+ assert(proto);
+ assert(rmap);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -890,6 +903,8 @@ DEFPY (no_ip_protocol_nht_rmap,
{
int ret, rtype;
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -935,6 +950,9 @@ DEFPY (ipv6_protocol_nht_rmap,
{
int ret, rtype;
+ assert(rmap);
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -967,6 +985,8 @@ DEFPY (no_ipv6_protocol_nht_rmap,
{
int ret, rtype;
+ assert(proto);
+
ZEBRA_DECLVAR_CONTEXT(vrf, zvrf);
if (!zvrf)
@@ -1798,8 +1818,7 @@ static void zebra_route_map_delete(const char *rmap_name)
route_map_notify_dependencies(rmap_name, RMAP_EVENT_MATCH_DELETED);
}
-static void zebra_route_map_event(route_map_event_t event,
- const char *rmap_name)
+static void zebra_route_map_event(const char *rmap_name)
{
if (route_map_mark_updated(rmap_name) == 0)
zebra_route_map_mark_update(rmap_name);