Skip to contentSkip to conversation

why ./brctl showmacs br0 display nothing?

Bridge Alex 2 participants 2 messages Mar 21, 2007 Ethernet bridge

lore
Share & tools
lore

Alex

author
#0 lore raw

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

Alex
2007-03-21

#1 lore raw
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.