diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2020-06-24 23:34:18 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2020-06-30 22:36:45 +0300 |
commit | dc43f7e807a8bd9cc7deecf1980fcb3349477646 (patch) | |
tree | 08a7f782adbaa03b353810ca04d87f7ca8b32344 /include/net/rawv6.h | |
parent | fea864489c90a07e7e84f8f6f5c531b313ad6593 (diff) | |
download | linux-dc43f7e807a8bd9cc7deecf1980fcb3349477646.tar.xz |
sctp: Don't advertise IPv4 addresses if ipv6only is set on the socket
[ Upstream commit 471e39df96b9a4c4ba88a2da9e25a126624d7a9c ]
If a socket is set ipv6only, it will still send IPv4 addresses in the
INIT and INIT_ACK packets. This potentially misleads the peer into using
them, which then would cause association termination.
The fix is to not add IPv4 addresses to ipv6only sockets.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Reported-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tested-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/rawv6.h')
0 files changed, 0 insertions, 0 deletions