lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210614142029.56ad4421@hermes.local>
Date:   Mon, 14 Jun 2021 14:20:29 -0700
From:   Stephen Hemminger <stephen@...workplumber.org>
To:     Scott Fields <slfields66@...il.com>
Cc:     netdev@...r.kernel.org
Subject: Re: "ip addr show" returns interface names that won't work with "ip
 addr show dev <ifname>"

On Mon, 14 Jun 2021 14:52:50 -0500
Scott Fields <slfields66@...il.com> wrote:

> Has this been received? I’ve not seen any response.
> 
> > On Jun 11, 2021, at 5:27 AM, Scott Fields <slfields66@...il.com> wrote:
> > 
> > “ip addr show” will return a list of devices that may not work with “ip addr show dev <ifname>”.
> > 
> > If you have list vlan device, it will return it as “<vlan ifname>@<parent ifname>”.
> > 
> > However, “ip addr show dev <ifname>” will not work with that name.
> > 
> > “ip addr show dev <ifname>” should work with interface names that “ip addr show” returns.  
> 

The % syntax is how ip commands show the link field of the device.
It has been that way since the initial versions of iproute2 back in 2.4 Linux kernel.
So it is a historical behavior that won't change.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ