[quagga-dev 8514] Re: [PATCH 3/3] ospfd: use setsockopt_so_bindtodevice to specify out interface.

Joakim Tjernlund joakim.tjernlund at transmode.se
Wed Feb 9 13:54:11 GMT 2011


paul at jakma.org wrote on 2011/02/09 13:35:30:
>
> On Wed, 9 Feb 2011, Joakim Tjernlund wrote:
>
> >> hmm, but oi->ifp->name isn't updated to match the local I/F I think.
> >> It is still VLINK%d, isn't it?
> >>
> >> So to get at the real IF something else is needed. We don't use VLINKS
> >> so I haven't looked into this area.
> >
> > Possibly one could use oi->vl_data->nexthop.oi->ifp->name ?
>
> I think so yes.

OK, but then this test for vlink should go too, I think:
if (oi->type != OSPF_IFTYPE_VIRTUALLINK)
    if (!IN_MULTICAST (htonl (op->dst.s_addr)))
      flags = MSG_DONTROUTE;

Not sure what this test is for?
if (!IN_MULTICAST (htonl (op->dst.s_addr)))
      flags = MSG_DONTROUTE;

 Jocke




More information about the Quagga-dev mailing list