On Tue, Dec 15, 2015 at 01:08:22AM -0800, [email protected] wrote:
> >Synopsis: getaddrinfo() fails 32bit decimal IP addresses (i.e. no octets)
> >Category: library
> >Environment:
> System : OpenBSD 5.8
> Details : OpenBSD 5.8 (GENERIC) #1170: Sun Aug 16 02:26:00 MDT 2015
>
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
>
> Architecture: OpenBSD.amd64
> Machine : amd64
> >Description:
> Please reference NetBSD PR #50552 for a thorough description.
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=50552
> >How-To-Repeat:
> OpenBSD doesn't have the getaddrinfo(1) utility (see above referenced
> NetBSD PR), so it's a little less easy to exhibit the issue on OpenBSD,
> but basically just pass a 32bit decimal IP address (e.g. 1755800511) to
> getaddrinfo(3) via any expeditions means.
> >Fix:
> The fix is well covered in the foregoing reference.
>
This seems to have been fixed in -current. Verified by running:
openbsd:~ sparkhom$ getent hosts 1755800511
104.167.99.19 11755800511