Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335761
b: refs/heads/master
c: 1f36aeb
h: refs/heads/master
i:
  335759: 02fae62
v: v3
  • Loading branch information
Antonio Quartulli committed Nov 16, 2012
1 parent e595812 commit 1d39b79
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 27b37ebfa2d2a1b6acef6f2d21c497475c9b9709
refs/heads/master: 1f36aebcc5fa53c5d98f3329186466b5eb76a168
7 changes: 7 additions & 0 deletions trunk/net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,13 @@ bool batadv_tt_add_temporary_global_entry(struct batadv_priv *bat_priv,
{
bool ret = false;

/* if the originator is a backbone node (meaning it belongs to the same
* LAN of this node) the temporary client must not be added because to
* reach such destination the node must use the LAN instead of the mesh
*/
if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig))
goto out;

if (!batadv_tt_global_add(bat_priv, orig_node, addr,
BATADV_TT_CLIENT_TEMP,
atomic_read(&orig_node->last_ttvn)))
Expand Down

0 comments on commit 1d39b79

Please sign in to comment.