diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-23 21:26:31 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-23 21:26:31 +0200 |
commit | 7c022376c83e8eb72ee02ff22916e925ef68430c (patch) | |
tree | e7593b90fa2a3bbf6a1d3b8d9c4043c2167a0950 /zebra/router-id.c | |
parent | zebra: fix vrf argv index numbers (diff) | |
download | frr-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.c | 3 |
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; |