why ./brctl showmacs br0 display nothing?
hi:
my box use eth0 connect my pc. but I type command "./brctl showmacs br0", no mac addr display and the" brctl showmacs program" not exit,always exec
# ./brctl show
bridge name bridge id STP enabled interfaces
br0 8000.000123456789 no eth0
hdlc0
# ./brctl showmacs br0
port no mac addr is local? ageing timerAlex
2007-03-21
Quoted 10 lines · On Wed, 21 Mar 2007 19:28:50 +0800 "Alex" <[email protected]> wrote:
hi:
my box use eth0 connect my pc. but I type command "./brctl showmacs br0", no mac addr display and the" brctl showmacs program" not exit,always exec# ./brctl show bridge name bridge id STP enabled interfaces br0 8000.000123456789 no eth0 hdlc0 # ./brctl showmacs br0 port no mac addr is local? ageing timer
What kernel version?
Showmacs tries to get the information by reading /sys/class/br0/brforward Does your system not support sysfs? Does that file exist?
For older 2.4 system it uses an ioctl.