summaryrefslogtreecommitdiff
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSimon Wunderlich <simon@open-mesh.com>2015-11-23 19:57:22 +0100
committerAntonio Quartulli <a@unstable.cc>2016-02-10 23:23:57 +0800
commit81f02683504dc5590204c3fa059eac86fbfa0927 (patch)
tree0a017bb5c39f36af77c9bd9c2922788e23daee8f /net/batman-adv/main.h
parent140ed8e87ca8f4875c2b146cdb2cdbf0c9ac6080 (diff)
downloadlwn-81f02683504dc5590204c3fa059eac86fbfa0927.tar.gz
lwn-81f02683504dc5590204c3fa059eac86fbfa0927.zip
batman-adv: add seqno maximum age and protection start flag parameters
To allow future use of the window protected function with different maximum sequence numbers, add a parameter to set this value which was previously hardcoded. Another parameter added for future use is a flag to return whether the protection window has started. While at it, also fix the kerneldoc. Signed-off-by: Simon Wunderlich <simon@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index a7dc41a2709b..32dfc9e578af 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -35,6 +35,9 @@
/* Time To Live of broadcast messages */
#define BATADV_TTL 50
+/* maximum sequence number age of broadcast messages */
+#define BATADV_BCAST_MAX_AGE 64
+
/* purge originators after time in seconds if no valid packet comes in
* -> TODO: check influence on BATADV_TQ_LOCAL_WINDOW_SIZE
*/