From 24eaae9e5d0b154ec47d9d4e13649fb066814ef1 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 13 Apr 1999 00:46:34 +0000 Subject: Small change to stop using loopback. --- proto/ospf/ospf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'proto/ospf') diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index a37e2c0..79d29a9 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 */ -- cgit v1.2.3