mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
[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.
This commit is contained in:
parent
6f0e3f6e17
commit
5dcf71df96
@ -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>
|
2007-05-07 Paul Jakma <paul.jakma@sun.com>
|
||||||
|
|
||||||
* ospf_spf.c: (ospf_vertex_new) Dont init vertices to infinity,
|
* ospf_spf.c: (ospf_vertex_new) Dont init vertices to infinity,
|
||||||
|
@ -4403,7 +4403,7 @@ DEFUN (ip_ospf_authentication,
|
|||||||
|
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
{
|
{
|
||||||
ret = inet_aton(argv[1], &addr);
|
ret = inet_aton(argv[0], &addr);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
vty_out (vty, "Please specify interface address by A.B.C.D%s",
|
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)
|
if (argc == 1)
|
||||||
{
|
{
|
||||||
ret = inet_aton(argv[1], &addr);
|
ret = inet_aton(argv[0], &addr);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
vty_out (vty, "Please specify interface address by A.B.C.D%s",
|
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;
|
ifp = vty->index;
|
||||||
params = IF_DEF_PARAMS (ifp);
|
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)
|
if (!ret)
|
||||||
{
|
{
|
||||||
vty_out (vty, "Please specify interface address by A.B.C.D%s",
|
vty_out (vty, "Please specify interface address by A.B.C.D%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user