aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-20 22:21:44 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-20 22:21:44 -0500
commit91f0ebf7b6d5cb2b6e818d48587566144821babe (patch)
tree505c66f36bd72014d7eacb7a04ea011bae2e9a3a /include
parentf38c39d6ce8226519455a6dfe91c2ad84f363f6f (diff)
[DCCP] CCID: Improve CCID infrastructure
1. No need for ->ccid_init nor ->ccid_exit, this is what module_{init,exit} does and anynways neither ccid2 nor ccid3 were using it. 2. Rename struct ccid to struct ccid_operations and introduce struct ccid with a pointer to ccid_operations and rigth after it the rx or tx private state. 3. Remove the pointer to the state of the half connections from struct dccp_sock, now its derived thru ccid_priv() from the ccid pointer. Now we also can implement the setsockopt for changing the CCID easily as no ccid init routines can affect struct dccp_sock in any way that prevents other CCIDs from working if a CCID switch operation is asked by apps. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dccp.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h
index a70d1a27e7fc..bdd756cc60b1 100644
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -478,8 +478,6 @@ struct dccp_sock {
478 __u32 dccps_mss_cache; 478 __u32 dccps_mss_cache;
479 struct dccp_options dccps_options; 479 struct dccp_options dccps_options;
480 struct dccp_ackvec *dccps_hc_rx_ackvec; 480 struct dccp_ackvec *dccps_hc_rx_ackvec;
481 void *dccps_hc_rx_ccid_private;
482 void *dccps_hc_tx_ccid_private;
483 struct ccid *dccps_hc_rx_ccid; 481 struct ccid *dccps_hc_rx_ccid;
484 struct ccid *dccps_hc_tx_ccid; 482 struct ccid *dccps_hc_tx_ccid;
485 struct dccp_options_received dccps_options_received; 483 struct dccp_options_received dccps_options_received;