diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 23:09:59 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:42:26 -0400 |
commit | c676270bcd25015b978722ec0352c330dcc87883 (patch) | |
tree | 098cc52c71d68465e7ee5fbae462d58126b68885 /include/net/inet_timewait_sock.h | |
parent | e48c414ee61f4ac8d5cff2973e66a7cbc8a93aa5 (diff) |
[INET_TWSK]: Introduce inet_twsk_alloc
With the parts of tcp_time_wait that are not TCP specific, tcp_time_wait uses
it and so will dccp_time_wait.
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_timewait_sock.h')
-rw-r--r-- | include/net/inet_timewait_sock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h index 020f28058fd4..e00861b16696 100644 --- a/include/net/inet_timewait_sock.h +++ b/include/net/inet_timewait_sock.h | |||
@@ -142,6 +142,9 @@ static inline void inet_twsk_put(struct inet_timewait_sock *tw) | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | 144 | ||
145 | extern struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, | ||
146 | const int state); | ||
147 | |||
145 | extern void __inet_twsk_kill(struct inet_timewait_sock *tw, | 148 | extern void __inet_twsk_kill(struct inet_timewait_sock *tw, |
146 | struct inet_hashinfo *hashinfo); | 149 | struct inet_hashinfo *hashinfo); |
147 | 150 | ||