ipv4: Fix ip_getsockopt for IP_PKTOPTIONS
commitdd23198e58cd35259dd09e8892bbdb90f1d57748
authorDaniel Baluta <dbaluta@ixiacom.com>
Mon, 8 Aug 2011 05:31:07 +0000 (7 22:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2011 05:31:07 +0000 (7 22:31 -0700)
tree33dc663c72aa08282e53ccff5049f2598617fcca
parent8bab6f14084460d722f253221efa4148d3fc8b16
ipv4: Fix ip_getsockopt for IP_PKTOPTIONS

IP_PKTOPTIONS is broken for 32-bit applications running
in COMPAT mode on 64-bit kernels.

This happens because msghdr's msg_flags field is always
set to zero. When running in COMPAT mode this should be
set to MSG_CMSG_COMPAT instead.

Signed-off-by: Tiberiu Szocs-Mihai <tszocs@ixiacom.com>
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c