summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_routemap.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 19:48:57 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-29 19:48:57 +0200
commit67656e9b65ab7c6bb979be72b4917cfd4a2241b6 (patch)
tree823937fe0aded2bcfad54dfdea570259bd4820ac /ospfd/ospf_routemap.c
parentospfd: minor parser fixes (diff)
downloadfrr-67656e9b65ab7c6bb979be72b4917cfd4a2241b6.tar.xz
frr-67656e9b65ab7c6bb979be72b4917cfd4a2241b6.zip
all: added CHECK ME for DEFUNs that look at argc
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r--ospfd/ospf_routemap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c
index 33ddc67fc..1cb29f3ef 100644
--- a/ospfd/ospf_routemap.c
+++ b/ospfd/ospf_routemap.c
@@ -715,6 +715,7 @@ DEFUN (no_match_ip_nexthop,
"IP access-list number (expanded range)\n"
"IP access-list name\n")
{
+ /* CHECK ME argc referenced below */
char *al = (argc == 5) ? argv[4]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "ip next-hop", al);
}
@@ -744,6 +745,7 @@ DEFUN (no_match_ip_next_hop_prefix_list,
"Match entries of prefix-lists\n"
"IP prefix-list name\n")
{
+ /* CHECK ME argc referenced below */
char *pl = (argc == 6) ? argv[5]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "ip next-hop prefix-list", pl);
}
@@ -774,6 +776,7 @@ DEFUN (no_match_ip_address,
"IP access-list number (expanded range)\n"
"IP access-list name\n")
{
+ /* CHECK ME argc referenced below */
char *al = (argc == 5) ? argv[4]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "ip address", al);
}
@@ -802,6 +805,7 @@ DEFUN (no_match_ip_address_prefix_list,
"Match entries of prefix-lists\n"
"IP prefix-list name\n")
{
+ /* CHECK ME argc referenced below */
char *pl = (argc == 6) ? argv[5]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "ip address prefix-list", pl);
}
@@ -825,6 +829,7 @@ DEFUN (no_match_interface,
"Match first hop interface of route\n"
"Interface name\n")
{
+ /* CHECK ME argc referenced below */
char *iface = (argc == 4) ? argv[3]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "interface", iface);
}
@@ -848,6 +853,7 @@ DEFUN (no_match_tag,
"Match tag of route\n"
"Tag value\n")
{
+ /* CHECK ME argc referenced below */
char *tag = (argc == 4) ? argv[3]->arg : NULL;
return ospf_route_match_delete (vty, vty->index, "tag", tag);
}
@@ -871,6 +877,7 @@ DEFUN (no_set_metric,
"Metric value for destination routing protocol\n"
"Metric value\n")
{
+ /* CHECK ME argc referenced below */
char *mval = (argc == 4) ? argv[3]->arg : NULL;
return ospf_route_set_delete (vty, vty->index, "metric", mval);
}
@@ -896,6 +903,7 @@ DEFUN (no_set_metric_type,
"OSPF[6] external type 1 metric\n"
"OSPF[6] external type 2 metric\n")
{
+ /* CHECK ME argc referenced below */
char *ext = (argc == 4) ? argv[3]->text : NULL;
return ospf_route_set_delete (vty, vty->index, "metric-type", ext);
}
@@ -919,6 +927,7 @@ DEFUN (no_set_tag,
"Tag value for routing protocol\n"
"Tag value\n")
{
+ /* CHECK ME argc referenced below */
char *tag = (argc == 4) ? argv[3]->arg : NULL;
return ospf_route_set_delete (vty, vty->index, "tag", tag);
}