diff options
author | Antonio Quartulli <ordex@autistici.org> | 2013-04-03 21:10:26 +0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-04-18 00:31:22 +0400 |
commit | fe8a93b95145c66adf196eea4a919dfe0b7c57db (patch) | |
tree | e7251d3c966129aaba6366ca35a74a3d8b4f014a /net/batman-adv/translation-table.c | |
parent | 361cd29cf9363505c2a35bbf9a034a22feebfb07 (diff) | |
download | linux-fe8a93b95145c66adf196eea4a919dfe0b7c57db.tar.xz |
batman-adv: make is_my_mac() check for the current mesh only
On a multi-mesh node (a node running more than one batman-adv
virtual interface) batadv_is_my_mac() has to check MAC
addresses of hard interfaces belonging to the current mesh
only.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index 98a66a021a60..7abee19567e9 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -1953,7 +1953,7 @@ out: bool batadv_send_tt_response(struct batadv_priv *bat_priv, struct batadv_tt_query_packet *tt_request) { - if (batadv_is_my_mac(tt_request->dst)) { + if (batadv_is_my_mac(bat_priv, tt_request->dst)) { /* don't answer backbone gws! */ if (batadv_bla_is_backbone_gw_orig(bat_priv, tt_request->src)) return true; |