diff options
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ipaddress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index d088caf4c..0a1b5d798 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c @@ -574,8 +574,8 @@ int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush) } for (l = linfo; l; l = l->next) { - if (no_link - || (oneline || print_linkinfo(&l->h) == 0) + if ((oneline && G_filter.family != AF_PACKET) + || (print_linkinfo(&l->h) == 0) /* ^^^^^^^^^ "ip -oneline a" does not print link info */ ) { struct ifinfomsg *ifi = NLMSG_DATA(&l->h); |