Subject: Re: sockaddr_snprintf
To: None <firstname.lastname@example.org>
From: Jun-ichiro itojun Hagino <email@example.com>
Date: 11/16/2004 13:24:12
> > Hi,
> > I was missing a sockaddr pretty printer, and it was some amount of work
> > on each program to write one... So I came up with this. Is this useful?
> > Any suggestions on the interface? I was thinking of putting it in libutil.
> please use getnameinfo(3) to get string representation of
> AF_INET and AF_INET6 sockaddr. (for AF_INET6, it is a hard requirement)
inet_ntop() against AF_INET6 sin6_addr yields incomplete result
as sin6_scope_id will be ignored.