Hi Stephen,

After discussing this issue with the Debian maintainer of iproute, I am
bringing this issue to you to see if it can be fixed in upstream.

You can see the bug report and discussion at http://bugs.debian.org/726417

Basically, the issue is that there is an inconsistency in the output of
"ip addr show" when the -oneline option is used.

If the option is not present, ip shows all interfaces, including DOWN
ones. When the option is used, these interfaces do not show. This is a
regression from previous versions, as the iproute package in Debian
Wheezy does not have this behaviour.

An example:

$ sudo modprobe dummy

$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state
DOWN group default qlen 1000
[..]
3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN group default qlen 1000
[..]
10: wwan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
[..]
358: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
    link/ether 42:39:cf:86:bb:39 brd ff:ff:ff:ff:ff:ff


$ ip -o addr show
1: lo    inet 127.0.0.1/8 scope host lo\       valid_lft forever
preferred_lft forever
1: lo    inet6 ::1/128 scope host \       valid_lft forever
preferred_lft forever
10: wwan0    inet XXX/29 brd XXX scope global wwan0\       valid_lft
forever preferred_lft forever
10: wwan0    inet6 XXX/64 scope link \       valid_lft forever
preferred_lft forever


As Andreas (the Debian maintainer) suggested, a simple patch would be to
remove the two lines at
http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/tree/ip/ipaddress.c#n1179

Thanks for your time.

On 15/10/13 18:13, Andreas Henriksson wrote:

> Please convince upstream ( Stephen Hemminger <step...@networkplumber.org> )
> of your case or we'll end up with a bug tagged "wontfix", because I don't
> have any intention to diverge from upstream.


-- 
Martín Ferrari

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to