X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/yaid/blobdiff_plain/3b1bed1dc06df72338b0ff180169525681c114d0..HEAD:/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];