dccp: fix bug in sequence number validation during connection setup
authorSamuel Jero <sj323707@ohio.edu>
Mon, 27 Feb 2012 01:22:02 +0000 (18:22 -0700)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Sat, 3 Mar 2012 16:02:52 +0000 (09:02 -0700)
commitf541fb7e20c848f947ca65fbf169efe69400c942
tree689f3a7a46ca00b6610667e33313f339645b229d
parent793734b587a670e47a8d65f9e5211ba2188bb904
dccp: fix bug in sequence number validation during connection setup

This fixes a bug in the sequence number validation during the initial handshake.

The code did not treat the initial sequence numbers ISS and ISR as read-only and
did not keep state for GSR and GSS as required by the specification. This causes
problems with retransmissions during the initial handshake, causing the
budding connection to be reset.

This patch now treats ISS/ISR as read-only and tracks GSS/GSR as required.

Signed-off-by: Samuel Jero <sj323707@ohio.edu>
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
include/linux/dccp.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/dccp/minisocks.c
net/dccp/output.c