summaryrefslogtreecommitdiffstats
path: root/ripngd/ripng_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 /ripngd/ripng_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 'ripngd/ripng_routemap.c')
-rw-r--r--ripngd/ripng_routemap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ripngd/ripng_routemap.c b/ripngd/ripng_routemap.c
index 6ecf08466..52aae9aff 100644
--- a/ripngd/ripng_routemap.c
+++ b/ripngd/ripng_routemap.c
@@ -519,6 +519,7 @@ DEFUN (no_match_metric,
"Match metric of route\n"
"Metric value\n")
{
+ /* CHECK ME argc referenced below */
char *mval = (argc == 4) ? argv[3]->arg : NULL;
return ripng_route_match_delete (vty, vty->index, "metric", mval);
}
@@ -543,6 +544,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 ripng_route_match_delete (vty, vty->index, "interface", iface);
}
@@ -567,6 +569,7 @@ DEFUN (no_match_tag,
"Match tag of route\n"
"Metric value\n")
{
+ /* CHECK ME argc referenced below */
char *mval = (argc == 4) ? argv[3]->arg : NULL;
return ripng_route_match_delete (vty, vty->index, "tag", mval);
}
@@ -593,6 +596,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 ripng_route_set_delete (vty, vty->index, "metric", mval);
}
@@ -637,6 +641,7 @@ DEFUN (no_set_ipv6_nexthop_local,
"IPv6 local address\n"
"IPv6 address of next hop\n")
{
+ /* CHECK ME argc referenced below */
char *addr = (argc == 6) ? argv[5]->arg : NULL;
return ripng_route_set_delete (vty, vty->index, "ipv6 next-hop local", addr);
}
@@ -661,6 +666,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 ripng_route_set_delete (vty, vty->index, "tag", tag);
}