summaryrefslogtreecommitdiffstats
path: root/zebra/router-id.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 21:26:31 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 21:26:31 +0200
commit7c022376c83e8eb72ee02ff22916e925ef68430c (patch)
treee7593b90fa2a3bbf6a1d3b8d9c4043c2167a0950 /zebra/router-id.c
parentzebra: fix vrf argv index numbers (diff)
downloadfrr-7c022376c83e8eb72ee02ff22916e925ef68430c.tar.xz
frr-7c022376c83e8eb72ee02ff22916e925ef68430c.zip
zebra: add 'int idx_foo' argv index variables
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'zebra/router-id.c')
-rw-r--r--zebra/router-id.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c
index 05eee8ad3..6e1d434ec 100644
--- a/zebra/router-id.c
+++ b/zebra/router-id.c
@@ -228,10 +228,11 @@ DEFUN (router_id,
"Manually set the router-id\n"
"IP address to use for router-id\n")
{
+ int idx_ipv4 = 1;
struct prefix rid;
vrf_id_t vrf_id = VRF_DEFAULT;
- rid.u.prefix4.s_addr = inet_addr (argv[1]->arg);
+ rid.u.prefix4.s_addr = inet_addr (argv[idx_ipv4]->arg);
if (!rid.u.prefix4.s_addr)
return CMD_WARNING;