X-Git-Url: https://git.distorted.org.uk/~mdw/yaid/blobdiff_plain/3bfd21ff72dfd7f04c786e49de9c13998d1ed8d4..c3794524deb80d18c5b3be72a7572b34fad409a1:/addr.c diff --git a/addr.c b/addr.c index e72a7fd..bfbbabf 100644 --- a/addr.c +++ b/addr.c @@ -114,10 +114,12 @@ static const union addr any_ipv6 = { .ipv6 = IN6ADDR_ANY_INIT }; /*----- General utilities -------------------------------------------------*/ +/* Answer whether the sockets SA and SB are equal. */ int sockeq(const struct addrops *ao, const struct socket *sa, const struct socket *sb) { return (ao->addreq(&sa->addr, &sb->addr) && sa->port == sb->port); } +/* Write a textual description of S to the string D. */ void dputsock(dstr *d, const struct addrops *ao, const struct socket *s) { char buf[ADDRLEN];