diff options
author | Dmitry Mishin <dim@openvz.org> | 2006-03-21 01:45:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:45:21 -0500 |
commit | 3fdadf7d27e3fbcf72930941884387d1f4936f04 (patch) | |
tree | 167072cf1e60b6b307610563614b435ff0caa52d /net/sctp/ipv6.c | |
parent | c750360938b403e6cc193d293cfbcb099dd6c60e (diff) |
[NET]: {get|set}sockopt compatibility layer
This patch extends {get|set}sockopt compatibility layer in order to
move protocol specific parts to their place and avoid huge universal
net/compat.c file in the future.
Signed-off-by: Dmitry Mishin <dim@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 2e266129a764..bbee14d01c9b 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -875,6 +875,10 @@ static const struct proto_ops inet6_seqpacket_ops = { | |||
875 | .shutdown = inet_shutdown, | 875 | .shutdown = inet_shutdown, |
876 | .setsockopt = sock_common_setsockopt, | 876 | .setsockopt = sock_common_setsockopt, |
877 | .getsockopt = sock_common_getsockopt, | 877 | .getsockopt = sock_common_getsockopt, |
878 | #ifdef CONFIG_COMPAT | ||
879 | .compat_setsockopt = compat_sock_common_setsockopt, | ||
880 | .compat_getsockopt = compat_sock_common_getsockopt, | ||
881 | #endif | ||
878 | .sendmsg = inet_sendmsg, | 882 | .sendmsg = inet_sendmsg, |
879 | .recvmsg = sock_common_recvmsg, | 883 | .recvmsg = sock_common_recvmsg, |
880 | .mmap = sock_no_mmap, | 884 | .mmap = sock_no_mmap, |
@@ -914,6 +918,10 @@ static struct sctp_af sctp_ipv6_specific = { | |||
914 | .sctp_xmit = sctp_v6_xmit, | 918 | .sctp_xmit = sctp_v6_xmit, |
915 | .setsockopt = ipv6_setsockopt, | 919 | .setsockopt = ipv6_setsockopt, |
916 | .getsockopt = ipv6_getsockopt, | 920 | .getsockopt = ipv6_getsockopt, |
921 | #ifdef CONFIG_COMPAT | ||
922 | .compat_setsockopt = compat_ipv6_setsockopt, | ||
923 | .compat_getsockopt = compat_ipv6_getsockopt, | ||
924 | #endif | ||
917 | .get_dst = sctp_v6_get_dst, | 925 | .get_dst = sctp_v6_get_dst, |
918 | .get_saddr = sctp_v6_get_saddr, | 926 | .get_saddr = sctp_v6_get_saddr, |
919 | .copy_addrlist = sctp_v6_copy_addrlist, | 927 | .copy_addrlist = sctp_v6_copy_addrlist, |