diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-12-14 02:25:19 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-03 16:10:54 -0500 |
commit | 6d6ee43e0b8b8d4847627fd43739b98ec2b9404f (patch) | |
tree | a2a66381d2351610c81362bf218e743f6ccf56ef /net/dccp/ipv4.c | |
parent | fc44b9805324c0ad2733ea2feea9935cc056709d (diff) |
[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>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index bc28d71905e2..e11cda0cb6b3 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <net/icmp.h> | 20 | #include <net/icmp.h> |
21 | #include <net/inet_hashtables.h> | 21 | #include <net/inet_hashtables.h> |
22 | #include <net/sock.h> | 22 | #include <net/sock.h> |
23 | #include <net/timewait_sock.h> | ||
23 | #include <net/tcp_states.h> | 24 | #include <net/tcp_states.h> |
24 | #include <net/xfrm.h> | 25 | #include <net/xfrm.h> |
25 | 26 | ||
@@ -1309,6 +1310,10 @@ static struct request_sock_ops dccp_request_sock_ops = { | |||
1309 | .send_reset = dccp_v4_ctl_send_reset, | 1310 | .send_reset = dccp_v4_ctl_send_reset, |
1310 | }; | 1311 | }; |
1311 | 1312 | ||
1313 | static struct timewait_sock_ops dccp_timewait_sock_ops = { | ||
1314 | .twsk_obj_size = sizeof(struct inet_timewait_sock), | ||
1315 | }; | ||
1316 | |||
1312 | struct proto dccp_prot = { | 1317 | struct proto dccp_prot = { |
1313 | .name = "DCCP", | 1318 | .name = "DCCP", |
1314 | .owner = THIS_MODULE, | 1319 | .owner = THIS_MODULE, |
@@ -1332,5 +1337,7 @@ struct proto dccp_prot = { | |||
1332 | .max_header = MAX_DCCP_HEADER, | 1337 | .max_header = MAX_DCCP_HEADER, |
1333 | .obj_size = sizeof(struct dccp_sock), | 1338 | .obj_size = sizeof(struct dccp_sock), |
1334 | .rsk_prot = &dccp_request_sock_ops, | 1339 | .rsk_prot = &dccp_request_sock_ops, |
1335 | .twsk_obj_size = sizeof(struct inet_timewait_sock), | 1340 | .twsk_prot = &dccp_timewait_sock_ops, |
1336 | }; | 1341 | }; |
1342 | |||
1343 | EXPORT_SYMBOL_GPL(dccp_prot); | ||