]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - include/net/ip.h
ipv6: honor IPV6_PKTINFO with v4 mapped addresses on sendmsg
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 18 Feb 2014 20:38:08 +0000 (21:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Feb 2014 21:28:42 +0000 (16:28 -0500)
commitc8e6ad0829a723a74cd2fea9996a3392d2579a18
tree370dd2b5d5ad64cabef6fa837aac4ca8a1b9a958
parent21f374c6cfbf98c1efceee0b528ce784d215935c
ipv6: honor IPV6_PKTINFO with v4 mapped addresses on sendmsg

In case we decide in udp6_sendmsg to send the packet down the ipv4
udp_sendmsg path because the destination is either of family AF_INET or
the destination is an ipv4 mapped ipv6 address, we don't honor the
maybe specified ipv4 mapped ipv6 address in IPV6_PKTINFO.

We simply can check for this option in ip_cmsg_send because no calls to
ipv6 module functions are needed to do so.

Reported-by: Gert Doering <gert@space.net>
Cc: Tore Anderson <tore@fud.no>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/ip_sockglue.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c