Ondrej Zajicek <[email protected]> wrote on 2010/12/21 01:13:10: > > On Tue, Dec 21, 2010 at 12:35:17AM +0100, Joakim Tjernlund wrote: > > I meant a #define OSPF_IT_MPTP xx so one knows > > if it is a ptmp and ptp link. > > It would need more work to really support PTMP, as there > are places where it is assumed that neighbor list for > PTP iface contains at most one entry. > > > For ptp links you don't have to > > scan the neighbour list in calc_next_hop > > For PTP iface, the list contains at most one entry (so the scan is fast > :-) ) and you have to examine it anyways to know neighbor's IP address.
Yes, it is a small improvement I guess and you would find the remote IP address, if there is one, by following the ifa ptr. Jocke
