TCP stack state type error
Fix compile errors