|
@@ -726,6 +726,12 @@ int batadv_tt_global_add(struct batadv_priv *bat_priv,
|
|
|
|
|
|
common->flags = flags;
|
|
|
tt_global_entry->roam_at = 0;
|
|
|
+ /* node must store current time in case of roaming. This is
|
|
|
+ * needed to purge this entry out on timeout (if nobody claims
|
|
|
+ * it)
|
|
|
+ */
|
|
|
+ if (flags & BATADV_TT_CLIENT_ROAM)
|
|
|
+ tt_global_entry->roam_at = jiffies;
|
|
|
atomic_set(&common->refcount, 2);
|
|
|
common->added_at = jiffies;
|
|
|
|