aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2005-08-09 23:15:09 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 18:49:50 -0400
commita019d6fe2b9da68ea4ba6cf3c4e86fc1dbf554c3 (patch)
treef82f0523c313228d64998fac30790edcfd0785c3 /include/net/inet_connection_sock.h
parent7c657876b63cb1d8a2ec06f8fc6c37bb8412e66c (diff)
[ICSK]: Move generalised functions from tcp to inet_connection_sock
This also improves reqsk_queue_prune and renames it to inet_csk_reqsk_queue_prune, as it deals with both inet_connection_sock and inet_request_sock objects, not just with request_sock ones thus belonging to inet_request_sock. 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_connection_sock.h')
-rw-r--r--include/net/inet_connection_sock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h
index 692825fc8135..bec19d5cff26 100644
--- a/include/net/inet_connection_sock.h
+++ b/include/net/inet_connection_sock.h
@@ -239,6 +239,13 @@ static inline void inet_csk_reqsk_queue_drop(struct sock *sk,
239 reqsk_free(req); 239 reqsk_free(req);
240} 240}
241 241
242extern void inet_csk_reqsk_queue_prune(struct sock *parent,
243 const unsigned long interval,
244 const unsigned long timeout,
245 const unsigned long max_rto);
246
247extern void inet_csk_destroy_sock(struct sock *sk);
248extern int inet_csk_listen_start(struct sock *sk, const int nr_table_entries);
242extern void inet_csk_listen_stop(struct sock *sk); 249extern void inet_csk_listen_stop(struct sock *sk);
243 250
244#endif /* _INET_CONNECTION_SOCK_H */ 251#endif /* _INET_CONNECTION_SOCK_H */