Small change to stop using loopback.
This commit is contained in:
parent
cb2e8c4970
commit
24eaae9e5d
1 changed files with 6 additions and 1 deletions
|
@ -66,6 +66,7 @@ ospf_open_socket(struct proto *p, struct ospf_iface *ifa)
|
||||||
DBG(" OSPF: SK_OPEN: failed\n");
|
DBG(" OSPF: SK_OPEN: failed\n");
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
DBG(" OSPF: SK_OPEN: open\n");
|
||||||
return(mcsk);
|
return(mcsk);
|
||||||
}
|
}
|
||||||
else return(NULL);
|
else return(NULL);
|
||||||
|
@ -78,7 +79,11 @@ ospf_open_socket(struct proto *p, struct ospf_iface *ifa)
|
||||||
int
|
int
|
||||||
is_good_iface(struct proto *p, struct iface *iface)
|
is_good_iface(struct proto *p, struct iface *iface)
|
||||||
{
|
{
|
||||||
return(iface->flags & IF_UP);
|
if(iface->flags & IF_UP)
|
||||||
|
{
|
||||||
|
if(!(iface->flags & IF_IGNORE)) return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Of course, it's NOT true now */
|
/* Of course, it's NOT true now */
|
||||||
|
|
Loading…
Reference in a new issue