]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Make ospf_if_lookup_recv_if() find the right unnumbered i/f
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 27 Jul 2009 10:42:30 +0000 (12:42 +0200)
committerPaul Jakma <paul@quagga.net>
Tue, 28 Jul 2009 17:47:43 +0000 (18:47 +0100)
commit05cf46badbad99b76c4e974c7306c14494d1000e
treedd1fd18afc3d7ef6f92281c1c6fb0bc8ebd6a58b
parentf0f63841582ed97362619a53fb711747f09d961b
ospfd: Make ospf_if_lookup_recv_if() find the right unnumbered i/f

This function will return the interface for the first matching
remote address for PtP i/f's. That won't work for multiple
unnumbered i/f's as these may all have the same address.

Pass in the struct interface pointer, ifp, to find the
correct set of oi's to search in. This also reduces the
size of the search list, making it faster.

* ospfd/ospf_interface.c: Add struct interface * param to
  ospf_if_lookup_recv_if() to select the right list to search in.
* ospfd/ospf_interface.h: ditto.
* ospfd/ospf_packet.c: Pass new ifp argument to ospf_if_lookup_recv_if()
ospfd/ospf_interface.c
ospfd/ospf_interface.h
ospfd/ospf_packet.c