Skip to content

Commit 9b49adf

Browse files
committed
tcp: Don't skip holes in datastream
1 parent 75837f0 commit 9b49adf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/net/tcp/connection_states.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,11 @@ bool Connection::State::check_seq(Connection& tcp, const Packet& in)
123123
if( in.seq() == tcb.RCV.NXT ) {
124124
goto acceptable;
125125
}
126+
/// TODO: FIXME: reordering issues solved by this
127+
else goto unacceptable;
128+
126129
// #2
127-
else if( tcb.RCV.NXT <= in.seq() and in.seq() < tcb.RCV.NXT + tcb.RCV.WND ) {
130+
if( tcb.RCV.NXT <= in.seq() and in.seq() < tcb.RCV.NXT + tcb.RCV.WND ) {
128131
goto acceptable;
129132
}
130133
// #3 (INVALID)

0 commit comments

Comments
 (0)