]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-10-27 Simon <lists@routemeister.net>
authorpaul <paul>
Mon, 27 Oct 2003 22:02:00 +0000 (22:02 +0000)
committerpaul <paul>
Mon, 27 Oct 2003 22:02:00 +0000 (22:02 +0000)
        * ospfd/ospfd.c: if_is_pointopoint() takes (struct interface *), was
          being called with struct connected. Change to co->ifp.

ospfd/ospfd.c

index ff9f6343cb54408b97e2acbde55d1d4e539a1948..50cb49b7a924aefa69252ab23d35a0d67610d0c6 100644 (file)
@@ -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;