linux/net/dccp/ccids
Gerrit Renker b2e317f4b5 dccp ccid-3: No more CCID control blocks in LISTEN state
The CCIDs are activated as last of the features, at the end of the handshake,
were the LISTEN state of the master socket is inherited into the server
state of the child socket. Thus, the only states visible to CCIDs now are
OPEN/PARTOPEN, and the closing states.

This allows to remove tests which were previously necessary to protect
against referencing a socket in the listening state (in CCID3), but which
now have become redundant.

As a further byproduct of enabling the CCIDs only after the connection has been
fully established, several typecast-initialisations of ccid3_hc_{rx,tx}_sock
can now be eliminated:
 * the CCID is loaded, so it is not necessary to test if it is NULL,
 * if it is possible to load a CCID and leave the private area NULL, then this
    is a bug, which should crash loudly - and earlier,
 * the test for state==OPEN || state==PARTOPEN now reduces only to the closing
   phase (e.g. when the node has received an unexpected Reset).		  

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
2008-09-04 07:45:33 +02:00
..
lib dccp ccid-3: Replace lazy BUG_ON with condition 2008-09-04 07:45:25 +02:00
ccid2.c dccp ccid-2: Remove ccid2hc{tx,rx}_ prefixes 2008-09-04 07:45:33 +02:00
ccid2.h dccp ccid-2: Remove ccid2hc{tx,rx}_ prefixes 2008-09-04 07:45:33 +02:00
ccid3.c dccp ccid-3: No more CCID control blocks in LISTEN state 2008-09-04 07:45:33 +02:00
ccid3.h dccp ccid-3: Remove ccid3hc{tx,rx}_ prefixes 2008-09-04 07:45:33 +02:00
Kconfig [TFRC]: Provide central source file and debug facility 2008-01-28 14:56:39 -08:00
Makefile [DCCP] CCID2: Initial CCID2 (TCP-Like) implementation 2006-03-20 17:41:47 -08:00