[DCCP]: Move dccp_[un]hash from ipv4.c to the core

As this is used by both ipv4 and ipv6 and is not ipv4 specific.

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:39 -08:00
committed by David S. Miller
parent 3e0fadc51f
commit c985ed705f
4 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ static void dccp_v6_hash(struct sock *sk)
{
if (sk->sk_state != DCCP_CLOSED) {
if (inet_csk(sk)->icsk_af_ops == &dccp_ipv6_mapped) {
dccp_prot.hash(sk);
dccp_hash(sk);
return;
}
local_bh_disable();