replace custom address structures with sockaddr
handle multiple addresses per interface