From: Linus Luessing linus.luessing@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@web.de Signed-off-by: Marek Lindner lindner_marek@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); +#ifdef CONFIG_BATMAN_ADV_BATMAN_V +BAT_ATTR_HIF_UINT(elp_interval, S_IRUGO | S_IWUSR, 2 * JITTER, INT_MAX, NULL); +#endif
static struct bat_attribute *batman_attrs[] = { &bat_attr_mesh_iface, &bat_attr_iface_status, +#ifdef CONFIG_BATMAN_ADV_BATMAN_V + &bat_attr_elp_interval, +#endif NULL, };
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@yahoo.de Description: 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@web.de +Description: + Defines the interval in milliseconds in which batman + sends its probing packets for link quality measurements. \ No newline at end of file