[TWSK]: Introduce struct timewait_sock_ops
So that we can share several timewait sockets related functions and make the timewait mini sockets infrastructure closer to the request mini sockets one. Next changesets will take advantage of this, moving more code out of TCP and DCCP v4 and v6 to common infrastructure. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fc44b98053
commit
6d6ee43e0b
@ -493,6 +493,7 @@ extern void sk_stream_kill_queues(struct sock *sk);
|
||||
extern int sk_wait_data(struct sock *sk, long *timeo);
|
||||
|
||||
struct request_sock_ops;
|
||||
struct timewait_sock_ops;
|
||||
|
||||
/* Networking protocol blocks we attach to sockets.
|
||||
* socket layer -> transport layer interface
|
||||
@ -557,11 +558,10 @@ struct proto {
|
||||
kmem_cache_t *slab;
|
||||
unsigned int obj_size;
|
||||
|
||||
kmem_cache_t *twsk_slab;
|
||||
unsigned int twsk_obj_size;
|
||||
atomic_t *orphan_count;
|
||||
|
||||
struct request_sock_ops *rsk_prot;
|
||||
struct timewait_sock_ops *twsk_prot;
|
||||
|
||||
struct module *owner;
|
||||
|
||||
|
Reference in New Issue
Block a user