fixed list_tcps bug: ipaddr_ntoa isn't reentrant.