]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[DCCP]: Send Reset upon Sync in state REQUEST
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 26 Sep 2007 13:30:05 +0000 (10:30 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:40 +0000 (16:52 -0700)
commit08831700cc65f85a497d6b32b1c83ca84d71de4a
tree419a08b43e529f211dbdc7224283ed560334b4b3
parent53465eb4ab16660eab0a7be168a087a97172e650
[DCCP]: Send Reset upon Sync in state REQUEST

This fixes the code to correspond to RFC 4340, 7.5.4, which states the
exception that a Sync received in state REQUEST generates a Reset (not
a SyncAck).

To achieve this, only a small change is required. Since
dccp_rcv_request_sent_state_process() already uses the correct Reset Code
number 4 ("Packet Error"), we only need to shift the if-statement a few
lines further down.

(To test this case: replace DCCP_PKT_RESPONSE with DCCP_PKT_SYNC
                    in dccp_make_response.)

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
net/dccp/input.c