inet_pton() may wipe out port and address family.