From 3738d8cab744b1e11148d23ce16db5891b5e747e Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 27 Oct 2003 22:02:00 +0000 Subject: 2003-10-27 Simon * ospfd/ospfd.c: if_is_pointopoint() takes (struct interface *), was being called with struct connected. Change to co->ifp. --- ospfd/ospfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index ff9f6343..50cb49b7 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -714,7 +714,7 @@ ospf_network_match_iface(struct connected *co, struct prefix *net) * PtP special case: network specified == iface peer addr -> ospf */ return ( - ((if_is_pointopoint (co) && + ((if_is_pointopoint (co->ifp) && IPV4_ADDR_SAME ( &(co->destination->u.prefix4), &(net->u.prefix4))) || prefix_match (net, co->address)) ? 1 : 0 @@ -756,7 +756,7 @@ ospf_network_run (struct ospf *ospf, struct prefix *p, struct ospf_area *area) if (CHECK_FLAG(co->flags,ZEBRA_IFA_SECONDARY)) continue; - if (if_is_pointopoint (co)) + if (if_is_pointopoint (co->ifp)) addr = co->destination; else addr = co->address; -- cgit v1.2.1