Factored out special TCP validation logic