Hi,

On Mon, Jun 17, 2013 at 04:36:44PM +0200, Alberto Gonzalez Iniesta wrote:
> Seems like "cmsg_len" went nuts...

Seems your compiler grew too much smarts and optimized that bug to death :-)

> Again, only happens with multihome, if that helps...

That code path is only used for multihome.  Bugfix is here (if it's indeed
*that* problem):

commit 8c431f960357d776cfd0961192214ad1b0942bfb
Author: Gert Doering <g...@greenie.muc.de>
List-Post: openvpn-devel@lists.sourceforge.net
Date:   Thu May 30 13:31:24 2013 +0200

    Fix problem with UDP tunneling due to mishandled pktinfo structures.
    
    In link_socket_write_udp_posix_sendmsg(), pktinfo structures for ipv4 and
    ipv6 are going out of scope before actually calling sendmsg(), so depending
    on compiler optimization, garbage is passed to sendmsg() - fix by using
    "union openvpn_pktinfo" and having that in scope all the time.
    
    Problem reported and patch provided by "danta" in trac#297
    
    Signed-off-by: Gert Doering <g...@greenie.muc.de>
    Acked-by: Gert Doering <g...@greenie.muc.de>
    Acked-by: Arne Schwabe <a...@rfc2549.org>
    URL: https://community.openvpn.net/openvpn/ticket/297
    Message-ID: <20130530184427.gp20...@greenie.muc.de>
    URL: http://article.gmane.org/gmane.network.openvpn.devel/7629

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: pgpma8PkvLEkp.pgp
Description: PGP signature

Reply via email to