update network/inet_ntop: support ipv6