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/dccp/ipv4.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/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 80d450ba6219..8a33c8498d9c 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -994,6 +994,10 @@ static struct inet_connection_sock_af_ops dccp_ipv4_af_ops = { | |||
994 | .net_header_len = sizeof(struct iphdr), | 994 | .net_header_len = sizeof(struct iphdr), |
995 | .setsockopt = ip_setsockopt, | 995 | .setsockopt = ip_setsockopt, |
996 | .getsockopt = ip_getsockopt, | 996 | .getsockopt = ip_getsockopt, |
997 | #ifdef CONFIG_COMPAT | ||
998 | .compat_setsockopt = compat_ip_setsockopt, | ||
999 | .compat_getsockopt = compat_ip_getsockopt, | ||
1000 | #endif | ||
997 | .addr2sockaddr = inet_csk_addr2sockaddr, | 1001 | .addr2sockaddr = inet_csk_addr2sockaddr, |
998 | .sockaddr_len = sizeof(struct sockaddr_in), | 1002 | .sockaddr_len = sizeof(struct sockaddr_in), |
999 | }; | 1003 | }; |
@@ -1040,6 +1044,10 @@ static struct proto dccp_v4_prot = { | |||
1040 | .init = dccp_v4_init_sock, | 1044 | .init = dccp_v4_init_sock, |
1041 | .setsockopt = dccp_setsockopt, | 1045 | .setsockopt = dccp_setsockopt, |
1042 | .getsockopt = dccp_getsockopt, | 1046 | .getsockopt = dccp_getsockopt, |
1047 | #ifdef CONFIG_COMPAT | ||
1048 | .compat_setsockopt = compat_dccp_setsockopt, | ||
1049 | .compat_getsockopt = compat_dccp_getsockopt, | ||
1050 | #endif | ||
1043 | .sendmsg = dccp_sendmsg, | 1051 | .sendmsg = dccp_sendmsg, |
1044 | .recvmsg = dccp_recvmsg, | 1052 | .recvmsg = dccp_recvmsg, |
1045 | .backlog_rcv = dccp_v4_do_rcv, | 1053 | .backlog_rcv = dccp_v4_do_rcv, |
@@ -1079,6 +1087,10 @@ static const struct proto_ops inet_dccp_ops = { | |||
1079 | .shutdown = inet_shutdown, | 1087 | .shutdown = inet_shutdown, |
1080 | .setsockopt = sock_common_setsockopt, | 1088 | .setsockopt = sock_common_setsockopt, |
1081 | .getsockopt = sock_common_getsockopt, | 1089 | .getsockopt = sock_common_getsockopt, |
1090 | #ifdef CONFIG_COMPAT | ||
1091 | .compat_setsockopt = compat_sock_common_setsockopt, | ||
1092 | .compat_getsockopt = compat_sock_common_getsockopt, | ||
1093 | #endif | ||
1082 | .sendmsg = inet_sendmsg, | 1094 | .sendmsg = inet_sendmsg, |
1083 | .recvmsg = sock_common_recvmsg, | 1095 | .recvmsg = sock_common_recvmsg, |
1084 | .mmap = sock_no_mmap, | 1096 | .mmap = sock_no_mmap, |