]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: fix IPV6_PKTINFO with v4 mapped
authorEric Dumazet <edumazet@google.com>
Tue, 11 Nov 2014 01:54:25 +0000 (17:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2014 17:23:07 +0000 (09:23 -0800)
commit1875ee03bfb9a00c9c23efec6208a912b1946f29
treef3bde0ab2350cf0817ffed386f2493f983a9d65b
parent9f92bef53b0f3306abe272be293435d445a4c3b6
ipv6: fix IPV6_PKTINFO with v4 mapped

[ Upstream commit 5337b5b75cd9bd3624a6820e3c2a084d2480061c ]

Use IS_ENABLED(CONFIG_IPV6), to enable this code if IPv6 is
a module.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: c8e6ad0829a7 ("ipv6: honor IPV6_PKTINFO with v4 mapped addresses on sendmsg")
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_sockglue.c