Fixup a pair of bugs in TCP parsing.
Add a TCP parsing test.