lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 31 Jul 2014 21:49:37 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	jgunthorpe@...idianresearch.com
Cc:	nhorman@...driver.com, dborkman@...hat.com,
	linux-sctp@...r.kernel.org, vyasevich@...il.com,
	netdev@...r.kernel.org
Subject: Re: [PATCH v2] sctp: Fixup v4mapped behaviour to comply with Sock
 API

From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
Date: Wed, 30 Jul 2014 12:40:53 -0600

> The SCTP socket extensions API document describes the v4mapping option as
> follows:
> 
> 8.1.15.  Set/Clear IPv4 Mapped Addresses (SCTP_I_WANT_MAPPED_V4_ADDR)
> 
>    This socket option is a Boolean flag which turns on or off the
>    mapping of IPv4 addresses.  If this option is turned on, then IPv4
>    addresses will be mapped to V6 representation.  If this option is
>    turned off, then no mapping will be done of V4 addresses and a user
>    will receive both PF_INET6 and PF_INET type addresses on the socket.
>    See [RFC3542] for more details on mapped V6 addresses.
> 
> This description isn't really in line with what the code does though.
 ...
> Tested bind, getpeername, getsockname, connect, and recvmsg for proper
> behaviour in v4mapped = 1 and 0 cases.
> 
> Signed-off-by: Neil Horman <nhorman@...driver.com>
> Tested-by: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
> Signed-off-by: Jason Gunthorpe <jgunthorpe@...idianresearch.com>

This has been this way since pre-GIT times, so I'm applying this to net-next,
thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ