netstat: produce numeric-ip output for non-resolved names
authorMark Marshall <mark.marshall@omicronenergy.com>
Mon, 19 Mar 2018 09:45:40 +0000 (10:45 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Mar 2018 21:28:53 +0000 (23:28 +0200)
commit98592db3231caa905e6d54129c621f3e8e9bbaa3
treeb8f135f0b8abc6a7932f9a05b68eb0f71682a215
parentb5820d9fd88bb6cb1dfd1a934a3d346336d5cac2
netstat: produce numeric-ip output for non-resolved names

If we don't ask for numerical output, and the symbolic look-up failed
we used to get "(null)", but the numeric output would be better.

function                                             old     new   delta
ip_port_str                                          109     121     +12

Signed-off-by: Mark Marshall <mark.marshall@omicronenergy.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/netstat.c