network: don't check seq/ack numbers on packets that arrive in TIME_WAIT (as these packets are the exact reason TIME_WAIT exists) - the fact we are in TIME_WAIT indicates the segments are already acked.
network: fix TCP state transitions for entering FIN_WAIT_1 from ESTABLISHED, and CLOSED from LAST_ACK.
network: TCP passive and simultaneous close do things more correctly now.