Hi,

On Sat, Jun 10, 2017 at 08:11:26PM +0200, Gert Doering wrote:
> > I merely copy/pasted the NetBSD code.
> 
> Uh?  Is this from the NetBSD ports tree?  Because our tun.c does not
> have a single memcpy() today... :-)
> 
> Actually, my tun.c's TARGET_NETBSD version of write_tun() has something
> similar to what I suggested:
> 
>         struct openvpn_iphdr *iph;
> 
>         iph = (struct openvpn_iphdr *) buf;
> 
>         if (OPENVPN_IPH_GET_VER(iph->version_len) == 6)
> 
> ... slightly more speaking, and since "openvpn_iphdr" is a locally 
> defined structure with "uchar version_len" at the very beginning, this
> amounts to the same thing.

Aaaah.  I have been enlightened - there was a second patch, which does
exactly this :-) - and I had not seen the mail yet.

Thanks, will give it a closer look.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
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