Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340534
b: refs/heads/master
c: fdf7932
h: refs/heads/master
v: v3
  • Loading branch information
Antonio Quartulli committed Oct 29, 2012
1 parent 5ce48ac commit 19eac52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4934ab951b742f7a7bbe7089f1b3d8e4a387e596
refs/heads/master: fdf7932052209260ca2e7add4da4b74f57976336
6 changes: 6 additions & 0 deletions trunk/net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 19eac52

Please sign in to comment.