diff options
Diffstat (limited to 'net/dccp/ipv6.c')
-rw-r--r-- | net/dccp/ipv6.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 7c8233f6d3c2..89106c7d3247 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c | |||
@@ -1114,6 +1114,10 @@ static struct inet_connection_sock_af_ops dccp_ipv6_af_ops = { | |||
1114 | .net_header_len = sizeof(struct ipv6hdr), | 1114 | .net_header_len = sizeof(struct ipv6hdr), |
1115 | .setsockopt = ipv6_setsockopt, | 1115 | .setsockopt = ipv6_setsockopt, |
1116 | .getsockopt = ipv6_getsockopt, | 1116 | .getsockopt = ipv6_getsockopt, |
1117 | #ifdef CONFIG_COMPAT | ||
1118 | .compat_setsockopt = compat_ipv6_setsockopt, | ||
1119 | .compat_getsockopt = compat_ipv6_getsockopt, | ||
1120 | #endif | ||
1117 | .addr2sockaddr = inet6_csk_addr2sockaddr, | 1121 | .addr2sockaddr = inet6_csk_addr2sockaddr, |
1118 | .sockaddr_len = sizeof(struct sockaddr_in6) | 1122 | .sockaddr_len = sizeof(struct sockaddr_in6) |
1119 | }; | 1123 | }; |
@@ -1130,6 +1134,10 @@ static struct inet_connection_sock_af_ops dccp_ipv6_mapped = { | |||
1130 | .net_header_len = sizeof(struct iphdr), | 1134 | .net_header_len = sizeof(struct iphdr), |
1131 | .setsockopt = ipv6_setsockopt, | 1135 | .setsockopt = ipv6_setsockopt, |
1132 | .getsockopt = ipv6_getsockopt, | 1136 | .getsockopt = ipv6_getsockopt, |
1137 | #ifdef CONFIG_COMPAT | ||
1138 | .compat_setsockopt = compat_ipv6_setsockopt, | ||
1139 | .compat_getsockopt = compat_ipv6_getsockopt, | ||
1140 | #endif | ||
1133 | .addr2sockaddr = inet6_csk_addr2sockaddr, | 1141 | .addr2sockaddr = inet6_csk_addr2sockaddr, |
1134 | .sockaddr_len = sizeof(struct sockaddr_in6) | 1142 | .sockaddr_len = sizeof(struct sockaddr_in6) |
1135 | }; | 1143 | }; |
@@ -1167,6 +1175,10 @@ static struct proto dccp_v6_prot = { | |||
1167 | .init = dccp_v6_init_sock, | 1175 | .init = dccp_v6_init_sock, |
1168 | .setsockopt = dccp_setsockopt, | 1176 | .setsockopt = dccp_setsockopt, |
1169 | .getsockopt = dccp_getsockopt, | 1177 | .getsockopt = dccp_getsockopt, |
1178 | #ifdef CONFIG_COMPAT | ||
1179 | .compat_setsockopt = compat_dccp_setsockopt, | ||
1180 | .compat_getsockopt = compat_dccp_getsockopt, | ||
1181 | #endif | ||
1170 | .sendmsg = dccp_sendmsg, | 1182 | .sendmsg = dccp_sendmsg, |
1171 | .recvmsg = dccp_recvmsg, | 1183 | .recvmsg = dccp_recvmsg, |
1172 | .backlog_rcv = dccp_v6_do_rcv, | 1184 | .backlog_rcv = dccp_v6_do_rcv, |
@@ -1204,6 +1216,10 @@ static struct proto_ops inet6_dccp_ops = { | |||
1204 | .shutdown = inet_shutdown, | 1216 | .shutdown = inet_shutdown, |
1205 | .setsockopt = sock_common_setsockopt, | 1217 | .setsockopt = sock_common_setsockopt, |
1206 | .getsockopt = sock_common_getsockopt, | 1218 | .getsockopt = sock_common_getsockopt, |
1219 | #ifdef CONFIG_COMPAT | ||
1220 | .compat_setsockopt = compat_sock_common_setsockopt, | ||
1221 | .compat_getsockopt = compat_sock_common_getsockopt, | ||
1222 | #endif | ||
1207 | .sendmsg = inet_sendmsg, | 1223 | .sendmsg = inet_sendmsg, |
1208 | .recvmsg = sock_common_recvmsg, | 1224 | .recvmsg = sock_common_recvmsg, |
1209 | .mmap = sock_no_mmap, | 1225 | .mmap = sock_no_mmap, |