aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r--net/batman-adv/translation-table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 42a74e31b4ab..0ac39d5f77d8 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -726,6 +726,12 @@ int batadv_tt_global_add(struct batadv_priv *bat_priv,
726 726
727 common->flags = flags; 727 common->flags = flags;
728 tt_global_entry->roam_at = 0; 728 tt_global_entry->roam_at = 0;
729 /* node must store current time in case of roaming. This is
730 * needed to purge this entry out on timeout (if nobody claims
731 * it)
732 */
733 if (flags & BATADV_TT_CLIENT_ROAM)
734 tt_global_entry->roam_at = jiffies;
729 atomic_set(&common->refcount, 2); 735 atomic_set(&common->refcount, 2);
730 common->added_at = jiffies; 736 common->added_at = jiffies;
731 737