static void dccp_v6_hash(struct sock *sk) { if (sk->sk_state != DCCP_CLOSED) { if (inet_csk(sk)->icsk_af_ops == &dccp_ipv6_mapped) { inet_hash(sk); return; } local_bh_disable(); __inet6_hash(sk, NULL); local_bh_enable(); } }
void dccp_hash(struct sock *sk) { inet_hash(&dccp_hashinfo, sk); }
static void tcp_v4_hash(struct sock *sk) { inet_hash(&tcp_hashinfo, sk); }