net: tcp: Remove the Syn_received state
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 20 Jun 2017 19:05:18 +0000 (15:05 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 21 Jul 2017 15:52:24 +0000 (11:52 -0400)
commit59d87b257a803194170607b7402840af927b816e
treec3bf83911ca396946e5358158da2b498b70a10e0
parentcee628d71c41694e316da02c514adf81cafd5c35
net: tcp: Remove the Syn_received state

I think Presotto's note was right: you should send a reset.  The situation
is when we sent a SYN, then we receive a SYN without an ACK.  That was the
only time we'd set Syn_received, and a reset is safer.  I think.

It also removes a bunch of code that pretty much never runs, except during
exceptions/attacks.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/tcp.c