diff options
author | David L Stevens <dlstevens@us.ibm.com> | 2008-04-29 06:23:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-29 06:23:22 -0400 |
commit | 42908c69f61f75dd70e424263ab89ee52040382b (patch) | |
tree | 7c4333d2159d19cb33ae18f718259df258d7d137 /net/ipv6 | |
parent | be666e0a1345ed80f29cb30c73da0ec2ea5c5863 (diff) |
net: Add compat support for getsockopt (MCAST_MSFILTER)
This patch adds support for getsockopt for MCAST_MSFILTER for
both IPv4 and IPv6. It depends on the previous setsockopt patch,
and uses the same method.
Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index db6fdc1498aa..b4a26f2505f8 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -1089,6 +1089,10 @@ int ipv6_getsockopt(struct sock *sk, int level, int optname, | |||
1089 | if(level != SOL_IPV6) | 1089 | if(level != SOL_IPV6) |
1090 | return -ENOPROTOOPT; | 1090 | return -ENOPROTOOPT; |
1091 | 1091 | ||
1092 | if (optname == MCAST_MSFILTER) | ||
1093 | return compat_mc_getsockopt(sk, level, optname, optval, optlen, | ||
1094 | ipv6_getsockopt); | ||
1095 | |||
1092 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); | 1096 | err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); |
1093 | #ifdef CONFIG_NETFILTER | 1097 | #ifdef CONFIG_NETFILTER |
1094 | /* we need to exclude all possible ENOPROTOOPTs except default case */ | 1098 | /* we need to exclude all possible ENOPROTOOPTs except default case */ |