What's new

Missing brctl argument

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Denna

Senior Member
Why doesn't brctl recognize the showmacs argument ?

upload_2017-10-8_15-5-29.png
 
They may have removed support in the SDK for the AC88 (it's up to ASUS what subcommands to support). It does work on the AC68U on my fork.
Code:
admin@RT-AC68P-0000:/tmp/home/root# brctl showmacs br0 | pfilter
port no mac addr                is local?       ageing timer
  1     xx:xx:xx:xx:25:89       no                 3.19
  1     xx:xx:xx:xx:4c:ba       no                 6.67
  1     xx:xx:xx:xx:8b:17       no                18.11
  1     xx:xx:xx:xx:0e:56       no                 4.65
  1     xx:xx:xx:xx:ec:58       yes                0.00
  4     xx:xx:xx:xx:ec:59       yes                0.00
  3     xx:xx:xx:xx:ec:5c       yes                0.00
  5     xx:xx:xx:xx:ec:5d       yes                0.00
  1     xx:xx:xx:xx:25:93       no                31.95
  3     xx:xx:xx:xx:a7:ac       no                 1.00
  1     xx:xx:xx:xx:d9:55       no                 0.01
  2     xx:xx:xx:xx:14:e6       no                 1.83
  1     xx:xx:xx:xx:55:03       no                 9.34
  3     xx:xx:xx:xx:00:a8       no                 0.13
  1     xx:xx:xx:xx:fe:71       no                 1.40
  1     xx:xx:xx:xx:6b:a7       no                 1.83
  1     xx:xx:xx:xx:b4:cc       no                37.59
 
Using the latest firmware, this argument isn't supported.
 
Using the latest firmware, this argument isn't supported.

Then you have a different copy of brctl on your router. I'm obviously also using "the latest firmware"...
 
All good on AC66U_B1.

Code:
ASUSWRT-Merlin RT-AC68U 380.68-4 Wed Oct  4 19:01:14 UTC 2017
Veky@Antares:/tmp/home/root# brctl showmacs br0
port no mac addr                is local?       ageing timer
  1     xx:xx:xx:xx:xx:xx       no                13.71
  1     xx:xx:xx:xx:xx:xx       no                 0.11
  1     xx:xx:xx:xx:xx:xx       no                 0.01
  1     xx:xx:xx:xx:xx:xx       no                30.15
  1     xx:xx:xx:xx:xx:xx       no                 1.20
 
The firmware contains two versions.

There's a /usr/sbin/brctl and another included in busybox.

If you don't specify ./usr/sbin/brctl, then the default version is the reduced functionality brctl in busybox.

Really? o_O

This is what I get on my system
Code:
which   brctl

/usr/sbin/brctl

ls   -lah /usr/sbin  | grep   -E   "brctl|busybox"

lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 arping -> ../../bin/busybox
-rwxr-xr-x    1 admin    root       20.4K Oct  4 21:00 brctl
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 chpasswd -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 chroot -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 crond -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 ether-wake -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 ntpd -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 sendmail -> ../../bin/busybox
lrwxrwxrwx    1 admin    root          17 Oct  4 20:59 telnetd -> ../../bin/busybox
 
My guess is he installed a different busybox build through Entware, and he's ending up running that one instead of the one provided by the firmware.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top