[PATCH] ip: Fix ip -o link

Xabier Oneca -- xOneca xoneca at gmail.com
Sun Mar 31 12:37:47 UTC 2019


Hi,

> 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 */

Now the comment is misplaced. It refers to the oneline test, not the
print_linkinfo. But whatever...

Cheers,

Xabier Oneca_,,_


More information about the busybox mailing list