ip: Fix ip -o link
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Sat, 30 Mar 2019 17:24:46 +0000 (18:24 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 30 Mar 2019 17:24:46 +0000 (18:24 +0100)
commitbb3a9531b28f5c946452b92c8ac5a0951c5eab03
treecc0d7aff32e66d994a2daa814a436993adc94c12
parenta2fd1aaf86e2adc16101bdf95770a2783830727a
ip: Fix ip -o link

Commit db169f253854db572c0c2b7e3d74ebbe6afdb97f breaks the "ip -o link"
command, no output is displayed.. Fix by only excluding the link info if
in oneline mode and if the address family is not AF_PACKET.

function                                             old     new   delta
ipaddr_list_or_flush                                1232    1202     -30

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/ipaddress.c