All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] why ./brctl showmacs br0 display nothing?
@ 2007-03-21 11:28 Alex
  2007-03-21 17:38 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Alex @ 2007-03-21 11:28 UTC (permalink / raw)
  To: bridge

[-- Attachment #1: Type: text/plain, Size: 467 bytes --]


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

[-- Attachment #2: Type: text/html, Size: 1776 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bridge] why ./brctl showmacs br0 display nothing?
  2007-03-21 11:28 [Bridge] why ./brctl showmacs br0 display nothing? Alex
@ 2007-03-21 17:38 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2007-03-21 17:38 UTC (permalink / raw)
  To: Alex; +Cc: bridge

On Wed, 21 Mar 2007 19:28:50 +0800
"Alex" <alex@4ever-light.com> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-21 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 11:28 [Bridge] why ./brctl showmacs br0 display nothing? Alex
2007-03-21 17:38 ` Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.