[ih] 13 the unlucky number
Joseph Touch
touch at strayalpha.com
Tue Aug 11 12:29:28 PDT 2020
FYI - inet_addr() is where I found the different versions using scanf() and %i and stroul() with a base of “0”.
Joe
> On Aug 11, 2020, at 12:06 PM, Michael Kjörling via Internet-history <internet-history at elists.isoc.org> wrote:
>
> Just for fun, I looked at the source code for _ping_ in Debian Buster
> (because I could do that easily).
>
> It uses getaddrinfo() to map from the target given on the command line
> to an IP address (either IPv4 or IPv6, depending on usage). In the
> version packaged as 3:20180629-2+deb10u1, this appears to happen in
> ping.c on lines 482 and 512.
>
> getaddrinfo(), in turn, is specified[1] to accept "address strings
> using Internet standard dot notation as specified in inet_addr".
>
> inet_addr(), next, actually specifies[2] four different forms of "IPv4
> dotted decimal notation": a.b.c.d, a.b.c, a.b and a.
More information about the Internet-history
mailing list