Index | Thread | Search

From:
Klemens Nanni <kn@openbsd.org>
Subject:
Re: w(1): get rid of inet_aton
To:
Florian Obser <florian@openbsd.org>
Cc:
tech <tech@openbsd.org>
Date:
Mon, 19 Aug 2024 06:49:15 +0000

Download raw body.

Thread
18 авг. 2024 г. 17:04:07 Florian Obser <florian@openbsd.org>:

> inet_aton(3) is not a good interface to figure out if something looks
> like an IP address and a reverse DNS lookup should be performed.
>
> The modern way to do this is to chain getaddrinfo(3) with
> getnameinfo(3). As a bonus this gives us reverse lookup for IPv6, too.

OK kn