All of lore.kernel.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batctl: added ap_isolation support
@ 2011-06-06 22:10 Antonio Quartulli
  2011-07-25 20:40 ` Marek Lindner
  0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2011-06-06 22:10 UTC (permalink / raw)
  To: B.A.T.M.A.N

This patch introduces the possibility of enabling/disabling the
ap_isolation feature in batman-adv

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 main.c |    6 ++++++
 sys.c  |    7 +++++++
 sys.h  |    2 ++
 3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/main.c b/main.c
index eb67737..059c00f 100644
--- a/main.c
+++ b/main.c
@@ -58,6 +58,7 @@ void print_usage(void) {
 	printf(" \taggregation|ag  [0|1]             \tdisplay or modify the packet aggregation setting\n");
 	printf(" \tbonding|b       [0|1]             \tdisplay or modify the bonding mode setting\n");
 	printf(" \tfragmentation|f [0|1]             \tdisplay or modify the fragmentation mode setting\n");
+	printf(" \tap_isolation|ap [0|1]             \tdisplay or modify the ap isolation mode setting\n");
 	printf("\n");
 	printf(" \tping|p          <destination>     \tping another batman adv host via layer 2\n");
 	printf(" \ttraceroute|tr   <destination>     \ttraceroute another batman adv host via layer 2\n");
@@ -188,6 +189,11 @@ int main(int argc, char **argv)
 		ret = handle_sys_setting(mesh_iface, argc - 1, argv + 1,
 					 SYS_FRAG, fragmentation_usage, sysfs_param_enable);
 
+	} else if ((strcmp(argv[1], "ap_isolation") == 0) || (strcmp(argv[1], "ap") == 0)) {
+
+		ret = handle_sys_setting(mesh_iface, argc - 1, argv + 1,
+					 SYS_AP_ISOLA, ap_isolation_usage, sysfs_param_enable);
+
 	} else if ((strcmp(argv[1], "bisect") == 0)) {
 
 		ret = bisect(argc - 1, argv + 1);
diff --git a/sys.c b/sys.c
index dbf5383..4f2b2c5 100644
--- a/sys.c
+++ b/sys.c
@@ -270,6 +270,13 @@ void fragmentation_usage(void)
 	printf(" \t -h print this help\n");
 }
 
+void ap_isolation_usage(void)
+{
+	printf("Usage: batctl [options] ap_isolation [0|1]\n");
+	printf("options:\n");
+	printf(" \t -h print this help\n");
+}
+
 int handle_sys_setting(char *mesh_iface, int argc, char **argv,
 		       char *file_path, void setting_usage(void),
 		       const char *sysfs_param[])
diff --git a/sys.h b/sys.h
index 2c47550..2df846c 100644
--- a/sys.h
+++ b/sys.h
@@ -34,6 +34,7 @@
 #define SYS_MESH_IFACE_FMT SYS_IFACE_PATH"/%s/batman_adv/mesh_iface"
 #define SYS_IFACE_STATUS_FMT SYS_IFACE_PATH"/%s/batman_adv/iface_status"
 #define SYS_FRAG "fragmentation"
+#define SYS_AP_ISOLA "ap_isolation"
 
 enum gw_modes {
 	GW_MODE_OFF,
@@ -47,6 +48,7 @@ extern const char *sysfs_param_server[];
 void aggregation_usage(void);
 void bonding_usage(void);
 void fragmentation_usage(void);
+void ap_isolation_usage(void);
 void gw_mode_usage(void);
 void vis_mode_usage(void);
 void orig_interval_usage(void);
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batctl: added ap_isolation support
  2011-06-06 22:10 [B.A.T.M.A.N.] [PATCH] batctl: added ap_isolation support Antonio Quartulli
@ 2011-07-25 20:40 ` Marek Lindner
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-07-25 20:40 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Tuesday, June 07, 2011 00:10:13 Antonio Quartulli wrote:
> This patch introduces the possibility of enabling/disabling the
> ap_isolation feature in batman-adv

Applied in revision 5089a61.

Thanks,
Marek

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-25 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-06 22:10 [B.A.T.M.A.N.] [PATCH] batctl: added ap_isolation support Antonio Quartulli
2011-07-25 20:40 ` Marek Lindner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.