use portable switch_inet_ntop