Package: ifupdown-scripts-zg2 Severity: normal In kernel 3.2, /proc/net/dev is sorted differently from what it used to be in older kernels:
kernel 2.6:
$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
lo: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth1: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth2: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth3: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth4: 0 0 0 0 0 0 0 0 1404
18 0 0 0 0 0 0
eth5: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth6: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth7: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth8: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth9: 77687 790 0 337 0 0 0 0 46484
308 0 0 0 0 0 0
per201: 0 0 0 0 0 0 0 0 468
6 0 0 0 0 0 0
per203: 0 0 0 0 0 0 0 0 468
6 0 0 0 0 0 0
Kernel 3.2:
$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
eth3: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
per201: 0 0 0 0 0 0 0 0 816
10 0 0 0 0 0 0
eth7: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
lo: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth2: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth6: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth1: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth5: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
per203: 0 0 0 0 0 0 0 0 398
5 0 0 0 0 0 0
eth9: 21200 116 0 0 0 0 0 0 12358
99 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
eth4: 0 0 0 0 0 0 0 0 1214
15 0 0 0 0 0 0
eth8: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
When searching for a vlan master by MAC address, ifupdown-scripts-zg2
assumes that hardware interfaces are listed first, and takes the first
found interface with this MAC address to be the Master. That's wrong.
We either need to check in /proc/net/vlan/ whether the found interface
is a VLAN interface, or check in "ip link" output whether we have a
per201@dotqb interface name.
Greetings
Marc
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.6-zgws1 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

