Skip to content
Commit 2e041728 authored by Al Viro's avatar Al Viro
Browse files

ipv4: do compat setsockopt for MCAST_MSFILTER directly



Parallel to what the native setsockopt() does, except that unlike
the native setsockopt() we do not use memdup_user() - we want
the sockaddr_storage fields properly aligned, so we allocate
4 bytes more and copy compat_group_filter at the offset 4,
which yields the proper alignments.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e986d4da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment