Re: dig(1): replace inet_net_pton(3)

2021-01-20 Thread Florian Obser
On Wed, Jan 20, 2021 at 11:38:40AM +0100, Claudio Jeker wrote: > On Tue, Jan 19, 2021 at 07:49:29PM +0100, Florian Obser wrote: > > When we converted isc_sockaddr_t to sockaddr_storage we also moved to > > inet_net_pton(3). It turns out that was a mistake, at least it's not > > portable for

Re: dig(1): replace inet_net_pton(3)

2021-01-20 Thread Claudio Jeker
On Tue, Jan 19, 2021 at 07:49:29PM +0100, Florian Obser wrote: > When we converted isc_sockaddr_t to sockaddr_storage we also moved to > inet_net_pton(3). It turns out that was a mistake, at least it's not > portable for AF_INET6. Effectively revert that part and hand-roll it > using inet_pton(3).

dig(1): replace inet_net_pton(3)

2021-01-19 Thread Florian Obser
When we converted isc_sockaddr_t to sockaddr_storage we also moved to inet_net_pton(3). It turns out that was a mistake, at least it's not portable for AF_INET6. Effectively revert that part and hand-roll it using inet_pton(3). OK? p.s. it is kinda telling that isc, who introduced the API is (no