aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.h
diff options
context:
space:
mode:
authorSimon Wunderlich <simon@open-mesh.com>2015-11-23 13:57:22 -0500
committerAntonio Quartulli <a@unstable.cc>2016-02-10 10:23:57 -0500
commit81f02683504dc5590204c3fa059eac86fbfa0927 (patch)
tree0a017bb5c39f36af77c9bd9c2922788e23daee8f /net/batman-adv/routing.h
parent140ed8e87ca8f4875c2b146cdb2cdbf0c9ac6080 (diff)
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/routing.h')
-rw-r--r--net/batman-adv/routing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/routing.h b/net/batman-adv/routing.h
index c776e9655b9b..02a5caa84127 100644
--- a/net/batman-adv/routing.h
+++ b/net/batman-adv/routing.h
@@ -52,6 +52,7 @@ batadv_find_router(struct batadv_priv *bat_priv,
52 struct batadv_orig_node *orig_node, 52 struct batadv_orig_node *orig_node,
53 struct batadv_hard_iface *recv_if); 53 struct batadv_hard_iface *recv_if);
54int batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff, 54int batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff,
55 unsigned long *last_reset); 55 s32 seq_old_max_diff, unsigned long *last_reset,
56 bool *protection_started);
56 57
57#endif /* _NET_BATMAN_ADV_ROUTING_H_ */ 58#endif /* _NET_BATMAN_ADV_ROUTING_H_ */