summaryrefslogtreecommitdiff
path: root/networking/brctl.c
diff options
context:
space:
mode:
authorDenys Vlasenko2019-04-13 15:48:31 +0200
committerDenys Vlasenko2019-04-13 15:48:31 +0200
commit2945822f8680c10bd6930c752c10849a725b5ef7 (patch)
tree9f60c4fe0cdbd24ca9510965ee6936d47eb577aa /networking/brctl.c
parent94356088049a29c81dc29e448e621d81ccd43bfc (diff)
downloadbusybox-2945822f8680c10bd6930c752c10849a725b5ef7.zip
busybox-2945822f8680c10bd6930c752c10849a725b5ef7.tar.gz
brctl: add TODO: "showmacs BR"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/brctl.c')
-rw-r--r--networking/brctl.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index 0f2c10f..f44ad9c 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -9,9 +9,6 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-/* This applet currently uses only the ioctl interface and no sysfs at all.
- * At the time of this writing this was considered a feature.
- */
//config:config BRCTL
//config: bool "brctl (4.7 kb)"
//config: default y
@@ -46,7 +43,7 @@
//usage:#define brctl_trivial_usage
//usage: "COMMAND [BRIDGE [ARGS]]"
//usage:#define brctl_full_usage "\n\n"
-//usage: "Manage ethernet bridges\n"
+//usage: "Manage ethernet bridges"
//usage: "\nCommands:"
//usage: IF_FEATURE_BRCTL_SHOW(
//usage: "\n show [BRIDGE]... Show bridges"
@@ -364,6 +361,23 @@ int brctl_main(int argc UNUSED_PARAM, char **argv)
//goto done_next_argv;
return EXIT_SUCCESS;
}
+
+/* TODO: "showmacs BR"
+ * port no\tmac addr\t\tis local?\tageing timer
+ * <sp><sp>1\txx:xx:xx:xx:xx:xx\tno\t\t<sp><sp><sp>1.31
+ * port no mac addr is local? ageing timer
+ * 1 xx:xx:xx:xx:xx:xx no 1.31
+ * Read fixed-sized records from /sys/class/net/BR/brforward:
+ * struct __fdb_entry {
+ * uint8_t mac_addr[ETH_ALEN];
+ * uint8_t port_no; //lsb
+ * uint8_t is_local;
+ * uint32_t ageing_timer_value;
+ * uint8_t port_hi;
+ * uint8_t pad0;
+ * uint16_t unused;
+ * };
+ */
#endif
/* always true: if (key == ARG_addif || key == ARG_delif) */ {
/* addif or delif */