Anno domini 2017 Maximilian Wilhelm scripsit:

Hi,

for the record:

I've updated the PR on github and addressed the issues raised here before.

-> https://github.com/OpenVPN/openvpn/pull/65#issuecomment-330715591

The point remaining is the support for FreeBSD:

[...]
> > > +  if (sock->bind_dev)
> > > +    {
> > > +#if defined(TARGET_LINUX)
> > > +      setsockopt (sock->sd, SOL_SOCKET, SO_BINDTODEVICE, sock->bind_dev, 
> > > strlen (sock->bind_dev) + 1);
> > > +#elif defined(TARGET_FREEBSD)
> > > +      setsockopt(fd, SOL_SOCKET, IP_SENDIF, sock->bind_dev, strlen 
> > > (sock->bind_dev) + 1);
> > > +#endif
> > > +    }
[...]
> > I cannot find that IP_SENDIF in any freebsd man page or /usr/include on
> > a 10.3 system. I don't think this option exists.
> 
> I just googled for this part as I don't have any BSD-ish machines
> here. That part is purely theoretical, that's why I asked for testers :)
> 
> If this turns out to be wrong I'd just remove this. My understanding
> on what I found on the net was that this would have the same effect as
> the Linux version so I considered it worth a try.

As discussed within the PR, https://wiki.freebsd.org/Networking still
references IP_SENDIF, so it seems to at least have existed some time
in the past.

Can anyone shed some more light on this part?

Best
Max
-- 
"I have to admit I've always suspected that MTBWTF would be a more useful
 metric of real-world performance."
 -- Valdis Kletnieks on NANOG


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to