[tcp] Fix typos by changing ntohl() to htonl() where appropriate