Bug#1067760: libc6: Curious behavior of inet_pton() on IPv4 mapped numbers
Hi,
Thanks for your bug report.
On 2024-03-26 12:53, Alessandro Vesely wrote:
> Package: libc6
> Version: 2.36-9+deb12u4
> Severity: normal
> Tags: ipv6
>
> Dear Maintainer,
>
> I compiled the example program given in the inet_pton(3) man page, and obtain
> the following:
>
> $ ./a.out i6 0:0:0:ffff:5:6:7:8
> ::ffff:5:6:7:8
> $ ./a.out i6 0:0:0:ffff:5.6.7.8
> Not in presentation format
> $ ./a.out i6 0:0:0:0:0:ffff:5.6.7.8
> ::ffff:5.6.7.8
Could you please tell me what do you find curious and what do you expect
instead? Thanks.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://aurel32.net
Reply to: