• Martin Pool's avatar
    Split out code to compare addrinfo and sockaddr into it's own · 974f27e7
    Martin Pool authored
    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.
    974f27e7
clientname.c 7.14 KB