diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-07-07 09:35:37 -0400 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-08-22 09:16:21 -0400 |
commit | 3d393e47321062dbf9078a66a7cc1c2a52bafecc (patch) | |
tree | f8e5675fd58984db15571fdc361655fbe6674241 /net/batman-adv/routing.c | |
parent | 59b699cdee039d75915c354da06937102d1f9a84 (diff) |
batman-adv: implement AP-isolation on the sender side
If a node has to send a packet issued by a WIFI client to another WIFI client,
the packet is dropped.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 13444e92bc99..91a7860ecadd 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -1535,7 +1535,7 @@ static int check_unicast_ttvn(struct bat_priv *bat_priv, | |||
1535 | 1535 | ||
1536 | ethhdr = (struct ethhdr *)(skb->data + | 1536 | ethhdr = (struct ethhdr *)(skb->data + |
1537 | sizeof(struct unicast_packet)); | 1537 | sizeof(struct unicast_packet)); |
1538 | orig_node = transtable_search(bat_priv, ethhdr->h_dest); | 1538 | orig_node = transtable_search(bat_priv, NULL, ethhdr->h_dest); |
1539 | 1539 | ||
1540 | if (!orig_node) { | 1540 | if (!orig_node) { |
1541 | if (!is_my_client(bat_priv, ethhdr->h_dest)) | 1541 | if (!is_my_client(bat_priv, ethhdr->h_dest)) |