aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/libiproute/ipaddress.c4
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)
574 } 574 }
575 575
576 for (l = linfo; l; l = l->next) { 576 for (l = linfo; l; l = l->next) {
577 if (no_link 577 if ((oneline && G_filter.family != AF_PACKET)
578 || (oneline || print_linkinfo(&l->h) == 0) 578 || (print_linkinfo(&l->h) == 0)
579 /* ^^^^^^^^^ "ip -oneline a" does not print link info */ 579 /* ^^^^^^^^^ "ip -oneline a" does not print link info */
580 ) { 580 ) {
581 struct ifinfomsg *ifi = NLMSG_DATA(&l->h); 581 struct ifinfomsg *ifi = NLMSG_DATA(&l->h);