net: IP_MULTICAST_IF setsockopt now recognizes struct mreq
authorJiri Pirko <jpirko@redhat.com>
Thu, 3 May 2012 22:37:45 +0000 (22:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 May 2012 03:03:22 +0000 (23:03 -0400)
commit3a084ddb4bf299a6e898a9a07c89f3917f0713f7
treef938915de277b2b9b52ce6dc1308f18d0d083bcd
parent416912a129349788372e6ac27ab86bd9b18c8cc0
net: IP_MULTICAST_IF setsockopt now recognizes struct mreq

Until now, struct mreq has not been recognized and it was worked with
as with struct in_addr. That means imr_multiaddr was copied to
imr_address. So do recognize struct mreq here and copy that correctly.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c