diff options
author | Antonio Quartulli <ordex@autistici.org> | 2011-07-07 15:35:37 +0200 |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-08-22 15:16:21 +0200 |
commit | 3d393e47321062dbf9078a66a7cc1c2a52bafecc (patch) | |
tree | f8e5675fd58984db15571fdc361655fbe6674241 /net/batman-adv/soft-interface.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/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 9addbab5299..402fd96239d 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -597,7 +597,8 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface) /* Register the client MAC in the transtable */ tt_local_add(soft_iface, ethhdr->h_source, skb->skb_iif); - orig_node = transtable_search(bat_priv, ethhdr->h_dest); + orig_node = transtable_search(bat_priv, ethhdr->h_source, + ethhdr->h_dest); if (is_multicast_ether_addr(ethhdr->h_dest) || (orig_node && orig_node->gw_flags)) { ret = gw_is_target(bat_priv, skb, orig_node); |