Silly bug in sh interface. Now I test ALL interfaces. :-)
This commit is contained in:
parent
489f800b45
commit
a489f0ce8b
1 changed files with 21 additions and 14 deletions
|
@ -328,9 +328,12 @@ ospf_sh_neigh(struct proto *p, char *iff)
|
||||||
{
|
{
|
||||||
WALK_LIST(f, po->iface_list)
|
WALK_LIST(f, po->iface_list)
|
||||||
{
|
{
|
||||||
if(strcmp(iff,f->iface->name)==0) ifa=f;
|
if(strcmp(iff,f->iface->name)==0)
|
||||||
|
{
|
||||||
|
ifa=f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(ifa==NULL)
|
if(ifa==NULL)
|
||||||
{
|
{
|
||||||
cli_msg(0,"");
|
cli_msg(0,"");
|
||||||
|
@ -405,9 +408,13 @@ ospf_sh_iface(struct proto *p, char *iff)
|
||||||
{
|
{
|
||||||
WALK_LIST(f, po->iface_list)
|
WALK_LIST(f, po->iface_list)
|
||||||
{
|
{
|
||||||
if(strcmp(iff,f->iface->name)==0) ifa=f;
|
if(strcmp(iff,f->iface->name)==0)
|
||||||
|
{
|
||||||
|
ifa=f;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(ifa==NULL)
|
if(ifa==NULL)
|
||||||
{
|
{
|
||||||
cli_msg(0,"");
|
cli_msg(0,"");
|
||||||
|
|
Loading…
Reference in a new issue