Fix TCP stack and connection table

Make connection reuse actually work.