diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-21 00:23:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 00:23:39 -0500 |
commit | c985ed705ffc682ce40d46a5f7bf98db86b27899 (patch) | |
tree | 20272a6d8f7b896e9b31397d4c4ff563bfdf16b2 /net/dccp/proto.c | |
parent | 3e0fadc51f2fde01e0e22f481370a9b5f073bfc3 (diff) |
[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>
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r-- | net/dccp/proto.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c index 1c32def26533..64806fbf44de 100644 --- a/net/dccp/proto.c +++ b/net/dccp/proto.c | |||
@@ -97,6 +97,20 @@ const char *dccp_state_name(const int state) | |||
97 | 97 | ||
98 | EXPORT_SYMBOL_GPL(dccp_state_name); | 98 | EXPORT_SYMBOL_GPL(dccp_state_name); |
99 | 99 | ||
100 | void dccp_hash(struct sock *sk) | ||
101 | { | ||
102 | inet_hash(&dccp_hashinfo, sk); | ||
103 | } | ||
104 | |||
105 | EXPORT_SYMBOL_GPL(dccp_hash); | ||
106 | |||
107 | void dccp_unhash(struct sock *sk) | ||
108 | { | ||
109 | inet_unhash(&dccp_hashinfo, sk); | ||
110 | } | ||
111 | |||
112 | EXPORT_SYMBOL_GPL(dccp_unhash); | ||
113 | |||
100 | int dccp_init_sock(struct sock *sk) | 114 | int dccp_init_sock(struct sock *sk) |
101 | { | 115 | { |
102 | struct dccp_sock *dp = dccp_sk(sk); | 116 | struct dccp_sock *dp = dccp_sk(sk); |