[2/3] batctl: add switch for setting multicast_mode
Commit Message
This patch adds a switch for the new multicast_mode setting in
batman-adv.
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
---
README | 7 +++++++
man/batctl.8 | 4 ++++
sys.c | 6 ++++++
sys.h | 1 +
4 files changed, 18 insertions(+)
@@ -392,6 +392,13 @@ Usage: batctl network_coding|nc [0|1]
Note that network coding requires a working promiscuous mode on all interfaces.
+batctl multicast_mode
+=====================
+
+display or modify the multicast mode setting
+
+Usage: batctl multicast_mode|mm [0|1]
+
batctl aggregation
==================
@@ -88,6 +88,10 @@ disable fragmentation.
If no parameter is given the current network coding mode setting is displayed. Otherwise the parameter is used to enable or
disable network coding.
.br
+.IP "\fBmulticast_mode\fP|\fBmm\fP [\fB0\fP|\fB1\fP]"
+If no parameter is given the current multicast mode setting is displayed. Otherwise the parameter is used to enable or
+disable multicast optimizations (i.e. disabling means always sending own multicast frames via classic flooding).
+.br
.IP "\fBloglevel\fP|\fBll\fP [\fBlevel\fP[ \fBlevel\fP[ \fBlevel\fP]] \fB...\fP]"
If no parameter is given the current log level settings are displayed otherwise the parameter(s) is/are used to set the log
level. Level 'none' disables all verbose logging. Level 'batman' enables messages related to routing / flooding / broadcasting.
@@ -96,6 +96,12 @@ const struct settings_data batctl_settings[BATCTL_SETTINGS_NUM] = {
.opt_short = "nc",
.sysfs_name = "network_coding",
.params = sysfs_param_enable,
+ },
+ {
+ .opt_long = "multicast_mode",
+ .opt_short = "mm",
+ .sysfs_name = "multicast_mode",
+ .params = sysfs_param_enable,
}
};
@@ -46,6 +46,7 @@ enum batctl_settings_list {
BATCTL_SETTINGS_BONDING,
BATCTL_SETTINGS_FRAGMENTATION,
BATCTL_SETTINGS_NETWORK_CODING,
+ BATCTL_SETTINGS_MULTICAST_MODE,
BATCTL_SETTINGS_NUM,
};