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/ipv6/tcp_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/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index af6a0c60f903..2f8975e0150a 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1308,6 +1308,10 @@ static struct inet_connection_sock_af_ops ipv6_specific = { | |||
1308 | 1308 | ||
1309 | .setsockopt = ipv6_setsockopt, | 1309 | .setsockopt = ipv6_setsockopt, |
1310 | .getsockopt = ipv6_getsockopt, | 1310 | .getsockopt = ipv6_getsockopt, |
1311 | #ifdef CONFIG_COMPAT | ||
1312 | .compat_setsockopt = compat_ipv6_setsockopt, | ||
1313 | .compat_getsockopt = compat_ipv6_getsockopt, | ||
1314 | #endif | ||
1311 | .addr2sockaddr = inet6_csk_addr2sockaddr, | 1315 | .addr2sockaddr = inet6_csk_addr2sockaddr, |
1312 | .sockaddr_len = sizeof(struct sockaddr_in6) | 1316 | .sockaddr_len = sizeof(struct sockaddr_in6) |
1313 | }; | 1317 | }; |
@@ -1327,6 +1331,10 @@ static struct inet_connection_sock_af_ops ipv6_mapped = { | |||
1327 | 1331 | ||
1328 | .setsockopt = ipv6_setsockopt, | 1332 | .setsockopt = ipv6_setsockopt, |
1329 | .getsockopt = ipv6_getsockopt, | 1333 | .getsockopt = ipv6_getsockopt, |
1334 | #ifdef CONFIG_COMPAT | ||
1335 | .compat_setsockopt = compat_ipv6_setsockopt, | ||
1336 | .compat_getsockopt = compat_ipv6_getsockopt, | ||
1337 | #endif | ||
1330 | .addr2sockaddr = inet6_csk_addr2sockaddr, | 1338 | .addr2sockaddr = inet6_csk_addr2sockaddr, |
1331 | .sockaddr_len = sizeof(struct sockaddr_in6) | 1339 | .sockaddr_len = sizeof(struct sockaddr_in6) |
1332 | }; | 1340 | }; |
@@ -1566,6 +1574,10 @@ struct proto tcpv6_prot = { | |||
1566 | .shutdown = tcp_shutdown, | 1574 | .shutdown = tcp_shutdown, |
1567 | .setsockopt = tcp_setsockopt, | 1575 | .setsockopt = tcp_setsockopt, |
1568 | .getsockopt = tcp_getsockopt, | 1576 | .getsockopt = tcp_getsockopt, |
1577 | #ifdef CONFIG_COMPAT | ||
1578 | .compat_setsockopt = compat_tcp_setsockopt, | ||
1579 | .compat_getsockopt = compat_tcp_getsockopt, | ||
1580 | #endif | ||
1569 | .sendmsg = tcp_sendmsg, | 1581 | .sendmsg = tcp_sendmsg, |
1570 | .recvmsg = tcp_recvmsg, | 1582 | .recvmsg = tcp_recvmsg, |
1571 | .backlog_rcv = tcp_v6_do_rcv, | 1583 | .backlog_rcv = tcp_v6_do_rcv, |