From: Ondrej Filip Date: Tue, 13 Apr 1999 00:46:34 +0000 (+0000) Subject: Small change to stop using loopback. X-Git-Tag: v1.2.0~1603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24eaae9e5d0b154ec47d9d4e13649fb066814ef1;p=thirdparty%2Fbird.git Small change to stop using loopback. --- diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index a37e2c0bf..79d29a99f 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -66,6 +66,7 @@ ospf_open_socket(struct proto *p, struct ospf_iface *ifa) DBG(" OSPF: SK_OPEN: failed\n"); return(NULL); } + DBG(" OSPF: SK_OPEN: open\n"); return(mcsk); } else return(NULL); @@ -78,7 +79,11 @@ ospf_open_socket(struct proto *p, struct ospf_iface *ifa) int 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 */