diff options
-rw-r--r-- | networking/brctl.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/networking/brctl.c b/networking/brctl.c index 0f2c10f22..f44ad9c8d 100644 --- a/networking/brctl.c +++ b/networking/brctl.c | |||
@@ -9,9 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | /* This applet currently uses only the ioctl interface and no sysfs at all. | ||
13 | * At the time of this writing this was considered a feature. | ||
14 | */ | ||
15 | //config:config BRCTL | 12 | //config:config BRCTL |
16 | //config: bool "brctl (4.7 kb)" | 13 | //config: bool "brctl (4.7 kb)" |
17 | //config: default y | 14 | //config: default y |
@@ -46,7 +43,7 @@ | |||
46 | //usage:#define brctl_trivial_usage | 43 | //usage:#define brctl_trivial_usage |
47 | //usage: "COMMAND [BRIDGE [ARGS]]" | 44 | //usage: "COMMAND [BRIDGE [ARGS]]" |
48 | //usage:#define brctl_full_usage "\n\n" | 45 | //usage:#define brctl_full_usage "\n\n" |
49 | //usage: "Manage ethernet bridges\n" | 46 | //usage: "Manage ethernet bridges" |
50 | //usage: "\nCommands:" | 47 | //usage: "\nCommands:" |
51 | //usage: IF_FEATURE_BRCTL_SHOW( | 48 | //usage: IF_FEATURE_BRCTL_SHOW( |
52 | //usage: "\n show [BRIDGE]... Show bridges" | 49 | //usage: "\n show [BRIDGE]... Show bridges" |
@@ -364,6 +361,23 @@ int brctl_main(int argc UNUSED_PARAM, char **argv) | |||
364 | //goto done_next_argv; | 361 | //goto done_next_argv; |
365 | return EXIT_SUCCESS; | 362 | return EXIT_SUCCESS; |
366 | } | 363 | } |
364 | |||
365 | /* TODO: "showmacs BR" | ||
366 | * port no\tmac addr\t\tis local?\tageing timer | ||
367 | * <sp><sp>1\txx:xx:xx:xx:xx:xx\tno\t\t<sp><sp><sp>1.31 | ||
368 | * port no mac addr is local? ageing timer | ||
369 | * 1 xx:xx:xx:xx:xx:xx no 1.31 | ||
370 | * Read fixed-sized records from /sys/class/net/BR/brforward: | ||
371 | * struct __fdb_entry { | ||
372 | * uint8_t mac_addr[ETH_ALEN]; | ||
373 | * uint8_t port_no; //lsb | ||
374 | * uint8_t is_local; | ||
375 | * uint32_t ageing_timer_value; | ||
376 | * uint8_t port_hi; | ||
377 | * uint8_t pad0; | ||
378 | * uint16_t unused; | ||
379 | * }; | ||
380 | */ | ||
367 | #endif | 381 | #endif |
368 | /* always true: if (key == ARG_addif || key == ARG_delif) */ { | 382 | /* always true: if (key == ARG_addif || key == ARG_delif) */ { |
369 | /* addif or delif */ | 383 | /* addif or delif */ |