]> bbs.cooldavid.org Git - net-next-2.6.git/commit
dccp ccid-3: Remove duplicate RX states
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Sep 2008 05:30:19 +0000 (07:30 +0200)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Thu, 4 Sep 2008 05:45:41 +0000 (07:45 +0200)
commit2f3e3bbad917c426d3aba03a535809e5699de156
treee00bd5c8ccfad4444e8cc6ee8eb0d90223292390
parent34a081be8e14b7ada70e069b65b05d54db4af497
dccp ccid-3: Remove duplicate RX states

The only state information that the CCID-3 receiver keeps is whether initial
feedback has been sent or not. Further, this overlaps with use of feedback:

 * state == TFRC_RSTATE_NO_DATA as long as no feedback has been sent;
 * state == TFRC_RSTATE_DATA    as soon as the first feedback has been sent.

This patch reduces the duplication, by memorising the type of the last feedback.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
net/dccp/ccids/ccid3.c
net/dccp/ccids/ccid3.h