Skip to content

Avoid some deprecated networking functions

David King requested to merge wip/davidk/old-networking into master

rpminspect trips up on some old networking functions in libgtop, which are mentioned as deprecated in the Linux man pages.

inet_ntoa() only works on IPv4 addresses, whereas the newer inet_ntop() works on both IPv4 and IPv6 addresses, so use inet_ntop() instead. Similarly, use getaddrinfo() rather than inet_addr().

https://bugzilla.redhat.com/show_bug.cgi?id=2050712

Merge request reports