commit | dd23198e58cd35259dd09e8892bbdb90f1d57748 | [log] [tgz] |
---|---|---|
author | Daniel Baluta <dbaluta@ixiacom.com> | Sun Aug 07 22:31:07 2011 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 07 22:31:07 2011 -0700 |
tree | 33dc663c72aa08282e53ccff5049f2598617fcca | |
parent | 8bab6f14084460d722f253221efa4148d3fc8b16 [diff] |
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>