summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_bfd.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 22:01:26 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 22:01:26 +0200
commit8d769265c422f5428ca3eb1ac2ab9daa43fd6f74 (patch)
treeb5d7d83be5e79a2786e27a84ddfa2b03071c4a0a /ospfd/ospf_bfd.c
parentospf6d: add 'int idx_foo' argv index variables (diff)
downloadfrr-8d769265c422f5428ca3eb1ac2ab9daa43fd6f74.tar.xz
frr-8d769265c422f5428ca3eb1ac2ab9daa43fd6f74.zip
ospfd: add 'int idx_foo' argv index variables
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_bfd.c')
-rw-r--r--ospfd/ospf_bfd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c
index 2689cecc4..d8fefab9c 100644
--- a/ospfd/ospf_bfd.c
+++ b/ospfd/ospf_bfd.c
@@ -387,6 +387,9 @@ DEFUN (ip_ospf_bfd_param,
"Required min receive interval\n"
"Desired min transmit interval\n")
{
+ int idx_number = 3;
+ int idx_number_2 = 4;
+ int idx_number_3 = 5;
struct interface *ifp = (struct interface *) vty->index;
u_int32_t rx_val;
u_int32_t tx_val;
@@ -395,7 +398,7 @@ DEFUN (ip_ospf_bfd_param,
assert (ifp);
- if ((ret = bfd_validate_param (vty, argv[3]->arg, argv[4]->arg, argv[5]->arg, &dm_val,
+ if ((ret = bfd_validate_param (vty, argv[idx_number]->arg, argv[idx_number_2]->arg, argv[idx_number_3]->arg, &dm_val,
&rx_val, &tx_val)) != CMD_SUCCESS)
return ret;