ipv6: fix IPV6_PKTINFO with v4 mapped
authorEric Dumazet <edumazet@google.com>
Tue, 11 Nov 2014 01:54:25 +0000 (17:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2014 20:32:45 +0000 (15:32 -0500)
commit5337b5b75cd9bd3624a6820e3c2a084d2480061c
tree78be425cd2e3994db2d6420f3042ca06e5bdec9d
parent4184b2a79a7612a9272ce20d639934584a1f3786
ipv6: fix IPV6_PKTINFO with v4 mapped

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>
net/ipv4/ip_sockglue.c