On Friday 29 November 2013 19:43:23 Stephen Hemminger wrote:
> On Thu, 28 Nov 2013 07:24:14 -0800
> 
> Jean-Baptiste Rouault <[email protected]> wrote:
> > Package: iproute
> > Version: 20120521-3+b3
> > Severity: normal
> > 
> > --- Please enter the report below this line. ---
> > When a large number of network interfaces has been created, "ip link" and
> > "ip addr" output is in the wrong order, as can be seen below.
> > 
> > It looks like a uint8_t overflow or something like that.
> > 
> > 257: hns0000002: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
> > state UP mode DEFAULT
> > 
> >     link/ether de:89:0a:54:e3:79 brd ff:ff:ff:ff:ff:ff
> > 
> > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
> > DEFAULT
> > 
> >     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> > 
> > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
> > mode DEFAULT qlen 1000
> > 
> >     link/ether 69:40:f3:99:40:0d brd ff:ff:ff:ff:ff:ff
> > 
> > 259: hns0000002v: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> > pfifo_fast master hns0000002 state UP mode DEFAULT qlen 1000
> > 
> >     link/ether de:89:0a:54:e3:79 brd ff:ff:ff:ff:ff:ff
> > 
> > 3: vboxtap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc
> > pfifo_fast state DOWN mode DEFAULT qlen 500
> > 
> >     link/ether 62:36:54:33:27:40 brd ff:ff:ff:ff:ff:ff
> > 
> > --- System information. ---
> > Architecture: amd64
> > Kernel:       Linux 3.10-0.bpo.3-amd64
> > 
> > Debian Release: 7.2
> > 
> >   990 stable          repository.hynesim.org
> >   500 wheezy-backports mozilla.debian.net
> >   500 wheezy          apt.puppetlabs.com
> >   500 stable          security.debian.org
> >   500 stable          repository.spotify.com
> >   500 stable          ftp.fr.debian.org
> >   500 stable          dl.google.com
> >   500 isv:ownCloud:community download.opensuse.org
> >   100 wheezy-backports ftp.fr.debian.org
> >   
> >     1 unstable        ftp.fr.debian.org
> >     1 testing         ftp.fr.debian.org
> >     1 experimental    ftp.fr.debian.org
> > 
> > --- Package information. ---
> > Depends       (Version) | Installed
> > =======================-+-===========
> > libc6          (>= 2.4) |
> > libdb5.1                |
> > 
> > 
> > Recommends      (Version) | Installed
> > =========================-+-===========
> > libatm1                   |
> > 
> > 
> > Suggests         (Version) | Installed
> > ==========================-+-===========
> > iproute-doc                |
> 
> The interfaces are returned in order sent by the kernel.
> The kernel never guaranteed any particular order, it happens to maintain
> the interfaces in a linked list in order they are created.

Shouldn't they be sorted by ifindex if they are put in the list in the order 
they are created ?


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to