summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorpaul <paul>2003-10-27 22:02:00 +0000
committerpaul <paul>2003-10-27 22:02:00 +0000
commit3738d8cab744b1e11148d23ce16db5891b5e747e (patch)
tree51c4a93b2443450d43eccc0fe8d32529433d9e4a /ospfd
parent70cf3f10892321b87a25be31052657b39d595137 (diff)
2003-10-27 Simon <lists@routemeister.net>
* ospfd/ospfd.c: if_is_pointopoint() takes (struct interface *), was being called with struct connected. Change to co->ifp.
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospfd.c4
1 files 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;