bug-inetutils
[Top][All Lists]
Advanced

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

traceroute: Modernize time functions.


From: Collin Funk
Subject: traceroute: Modernize time functions.
Date: Wed, 26 Jun 2024 16:34:56 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

I mentioned using more modern time functions in a previous mail and then
forgot about it.

I've applied this patch using modern gnulib timespec functions instead
of rolling our own versions (atleast for traceroute).

Also, Bruno Haible mentioned in gnulib that inet_ntoa only works for
IPv4 [1]. For some reason I forgot about this limitation. It would be
nice to move to inet_ntop everywhere at some point.

In a similar vein, should probably get rid of gethostbyname and
gethostbyaddr. They were marked obsolete in POSIX 2001 and removed in
POSIX 2008. Perhaps I will find time to do that and improve the
getaddrinfo gnulib module.

Collin

[1] https://lists.gnu.org/archive/html/bug-gnulib/2024-06/msg00268.html

Attachment: 0001-traceroute-Modernize-time-functions.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]