diff options
author | Simon Wunderlich | 2015-11-23 19:57:22 +0100 |
---|---|---|
committer | Antonio Quartulli | 2016-02-10 16:23:57 +0100 |
commit | 81f02683504dc5590204c3fa059eac86fbfa0927 (patch) | |
tree | 0a017bb5c39f36af77c9bd9c2922788e23daee8f /net/batman-adv/bat_iv_ogm.c | |
parent | batman-adv: Drop reference to netdevice on last reference (diff) | |
download | kernel-qcow2-linux-81f02683504dc5590204c3fa059eac86fbfa0927.tar.gz kernel-qcow2-linux-81f02683504dc5590204c3fa059eac86fbfa0927.tar.xz kernel-qcow2-linux-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/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index 3266bcb5bb06..23ce90e21a40 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c @@ -1315,7 +1315,8 @@ batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, /* signalize caller that the packet is to be dropped. */ if (!hlist_empty(&orig_node->neigh_list) && batadv_window_protected(bat_priv, seq_diff, - &orig_ifinfo->batman_seqno_reset)) { + BATADV_TQ_LOCAL_WINDOW_SIZE, + &orig_ifinfo->batman_seqno_reset, NULL)) { ret = BATADV_PROTECTED; goto out; } |