addrmask_to_string(): specify explicit structure sizes to getnameinfo() call.
addrmask_to_string(): use NI_MAXHOST for buffer size, even if for an ip we will never need it.