Skip to contentSkip to conversation

batctl: add isolation_mark support

PATCH Superseded Antonio Quartulli 2 participants 2 messages Feb 20, 2014 – Feb 22, 2014

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batctl: add isolation_mark support

From: Antonio Quartulli <[email protected]>

With this patch it is now possible to set/unset the value of the isolation_mark used by the Extended Isolation feature in batman-adv.

---
 sys.c | 9 +++++++--
 sys.h | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)
sys.c +7 -2
index 5cebf52..fd6e107 100644
@@ -96,8 +96,13 @@ const struct settings_data batctl_settings[BATCTL_SETTINGS_NUM] = {
 		.opt_short = "nc",
 		.sysfs_name = "network_coding",
 		.params = sysfs_param_enable,
-	}
-
+	},
+	{
+		.opt_long = "isolation_mark",
+		.opt_short = "mark",
+		.sysfs_name = "isolation_mark",
+		.params = NULL,
+	},
 };
 
 static void interface_usage(void)
sys.h +1 -0
index 2cbbcfb..5633822 100644
@@ -46,6 +46,7 @@ enum batctl_settings_list {
 	BATCTL_SETTINGS_BONDING,
 	BATCTL_SETTINGS_FRAGMENTATION,
 	BATCTL_SETTINGS_NETWORK_CODING,
+	BATCTL_SETTINGS_ISOLATION_MARK,
 	BATCTL_SETTINGS_NUM,
 };
 
Signature · 1 line
1.8.5.5
#1 lore raw
Quoted 11 lines · On Thursday 20 February 2014 16:00:22 Antonio Quartulli wrote:

From: Antonio Quartulli <[email protected]>

With this patch it is now possible to set/unset the value of the isolation_mark used by the Extended Isolation feature in batman-adv.

---
 sys.c | 9 +++++++--
 sys.h | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

What about the manpage documentation ?

Cheers,
Marek