native/pointer-for: fix setting
tcp: fix use of getsockname and getpeername