Skip to content

if inet_ntop() is available, use it for IPv4 addresses as well

Alan Coopersmith requested to merge alanc/xscope:inet_ntop into master

Support for using inet_ntop() was originally added to support IPv6, and only used for IPv6 addresses in PrintHOST(). Two decades later, support for inet_ntop() is ubiquitous and OS'es have marked inet_ntoa() as deprecated, so use the modern interface for IPv4 as well now.

Merge request reports

Loading