diff options
author | Paul Jakma <paul.jakma@sun.com> | 2007-05-10 03:00:09 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2007-05-10 03:00:09 +0000 |
commit | 5dcf71df9649cf9c7afd26e0fd3772486ab262f6 (patch) | |
tree | 7d229786e167830813ce5ec5ee7c632cdafa1cfd | |
parent | 6f0e3f6e17687eb25b7b77c4fdc8324837d4700f (diff) |
[ospfd] Fix address qualified 'ip ospf auth' commands
2007-05-09 Milan Kocian <milon@wq.cz>
* ospf_vty.c: Fix commands: 'ip ospf authentication A.B.C.D',
'no ip ospf authentication A.B.C.D', 'no ip ospf
authentication-key A.B.C.D'. Simply fix argv's indexes and
argc check in DEFUN functions.
-rw-r--r-- | ospfd/ChangeLog | 7 | ||||
-rw-r--r-- | ospfd/ospf_vty.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index 153b086e..24c3d290 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,10 @@ +2007-05-09 Milan Kocian <milon@wq.cz> + + * ospf_vty.c: Fix commands: 'ip ospf authentication A.B.C.D', + 'no ip ospf authentication A.B.C.D', 'no ip ospf + authentication-key A.B.C.D'. Simply fix argv's indexes and + argc check in DEFUN functions. + 2007-05-07 Paul Jakma <paul.jakma@sun.com> * ospf_spf.c: (ospf_vertex_new) Dont init vertices to infinity, diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index dd700b0e..5f9fa2cb 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -4403,7 +4403,7 @@ DEFUN (ip_ospf_authentication, if (argc == 1) { - ret = inet_aton(argv[1], &addr); + ret = inet_aton(argv[0], &addr); if (!ret) { vty_out (vty, "Please specify interface address by A.B.C.D%s", @@ -4447,7 +4447,7 @@ DEFUN (no_ip_ospf_authentication, if (argc == 1) { - ret = inet_aton(argv[1], &addr); + ret = inet_aton(argv[0], &addr); if (!ret) { vty_out (vty, "Please specify interface address by A.B.C.D%s", @@ -4551,9 +4551,9 @@ DEFUN (no_ip_ospf_authentication_key, ifp = vty->index; params = IF_DEF_PARAMS (ifp); - if (argc == 2) + if (argc == 1) { - ret = inet_aton(argv[1], &addr); + ret = inet_aton(argv[0], &addr); if (!ret) { vty_out (vty, "Please specify interface address by A.B.C.D%s", |