[B.A.T.M.A.N.] [RFC 4/5] batman-adv: ELP - adding sysfs parameter for elp interval

Marek Lindner lindner_marek at yahoo.de
Thu Mar 22 22:51:14 CET 2012

From: Linus Luessing <linus.luessing at web.de>

This parameter can be set individually on each interface and allows the
configuration of the ndp interval for the link quality measurements during
runtime. Usually it is desirable to set it to a higher (= slower) value on
interfaces which have a more static characteristic (e.g. wired interfaces)
or very dense neighbourhoods to reduce overhead.

Developed by Linus during a 6 months trainee study period in Ascom
(Switzerland) AG.

Signed-off-by: Linus Luessing <linus.luessing at web.de>
Signed-off-by: Marek Lindner <lindner_marek at yahoo.de>
 bat_sysfs.c                |    6 ++++++
 sysfs-class-net-batman-adv |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/bat_sysfs.c b/bat_sysfs.c
index d0f8453..6195a66 100644
--- a/bat_sysfs.c
+++ b/bat_sysfs.c
@@ -630,10 +630,16 @@ static ssize_t show_iface_status(struct kobject *kobj, struct attribute *attr,
 static BAT_ATTR(mesh_iface, S_IRUGO | S_IWUSR,
 		show_mesh_iface, store_mesh_iface);
 static BAT_ATTR(iface_status, S_IRUGO, show_iface_status, NULL);
 static struct bat_attribute *batman_attrs[] = {
+	&bat_attr_elp_interval,
diff --git a/sysfs-class-net-batman-adv b/sysfs-class-net-batman-adv
index 38dd762..954ab1f 100644
--- a/sysfs-class-net-batman-adv
+++ b/sysfs-class-net-batman-adv
@@ -12,3 +12,10 @@ Date:           May 2010
 Contact:        Marek Lindner <lindner_marek at yahoo.de>
                 Indicates the status of <iface> as it is seen by batman.
+What:           /sys/class/net/<mesh_iface>/batman-adv/elp_interval
+Date:           Mar 2012
+Contact:        Linus Lüssing <linus.luessing at web.de>
+                Defines the interval in milliseconds in which batman
+                sends its probing packets for link quality measurements.
\ No newline at end of file

More information about the B.A.T.M.A.N mailing list