function. The comparison cannot be done just byte-by-byte, because
different parts of the sockaddr will be meaningful depending on the
protocol. It looks like on some systems the library sets the unused
parts to 0, but this is not reliable. IPv6 not implemented yet.