[DCCP]: Move dccp_v4_{init,destroy}_sock to the core

Removing one more ipv6 uses ipv4 stuff case in dccp land.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Arnaldo Carvalho de Melo
2006-03-20 21:23:15 -08:00
committed by David S. Miller
parent 017487d7d1
commit 3e0fadc51f
4 changed files with 112 additions and 104 deletions
+2 -2
View File
@@ -1146,7 +1146,7 @@ static struct inet_connection_sock_af_ops dccp_ipv6_mapped = {
*/
static int dccp_v6_init_sock(struct sock *sk)
{
int err = dccp_v4_init_sock(sk);
int err = dccp_init_sock(sk);
if (err == 0)
inet_csk(sk)->icsk_af_ops = &dccp_ipv6_af_ops;
@@ -1156,7 +1156,7 @@ static int dccp_v6_init_sock(struct sock *sk)
static int dccp_v6_destroy_sock(struct sock *sk)
{
dccp_v4_destroy_sock(sk);
dccp_destroy_sock(sk);
return inet6_destroy_sock(sk);
}