NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/59741



The following reply was made to PR lib/59741; it has been noted by GNATS.

From: Lexi Winter <ivy%freebsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/59741
Date: Thu, 30 Oct 2025 21:37:55 +0000

 --h1ZS1hTjWKMN5HL7
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 NB, after this change there is at least one remaining bug in inet_net_pton:
 for IPv4 the input "1.2.3.4/24" produces the output "1.2.3.4/24", while
 for IPv6 the input "2001:db8::1/64" produces the output "2001:db8::/64".
 
 i.e., for IPv6 it is stripping the host bits from the output, but for
 IPv4, it does not do this.  one of these behaviours is wrong, but i have
 not yet worked out which.
 
 a couple of trivial utilities which might be useful for testing this:
 
 * https://people.freebsd.org/~ivy/tmp/inet_pton.c
 * https://people.freebsd.org/~ivy/tmp/inet_pton6.c
 
 --h1ZS1hTjWKMN5HL7
 Content-Type: application/pgp-signature; name=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaQPasAAKCRD1nT63mIK/
 YFKlAQCRFWzuAZNIdox1dg3ZJCaJBr2OFeDYvIwv/xDTaJMMOgD/Wf4Fdof/ycDJ
 ZH3x3DfcvQOxr981bL5LG8rYz7rE1Qg=
 =h/cN
 -----END PGP SIGNATURE-----
 
 --h1ZS1hTjWKMN5HL7--
 


Home | Main Index | Thread Index | Old Index