public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: only drop packets of known wifi clients
@ 2012-06-20 15:16 Marek Lindner
  2012-06-20 15:34 ` Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Lindner @ 2012-06-20 15:16 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Marek Lindner

If the source or destination mac address of an ethernet packet
could not be found in the translation table the packet was
dropped if AP isolation was turned on. This behavior would
make it impossible to send broadcast packets over the mesh as
the broadcast address will never enter the translation table.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---

This patch is for maint and possibly for stable.

 translation-table.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index a66c2dc..660c40f 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -2031,10 +2031,10 @@ bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst)
 {
 	struct tt_local_entry *tt_local_entry = NULL;
 	struct tt_global_entry *tt_global_entry = NULL;
-	bool ret = true;
+	bool ret = false;
 
 	if (!atomic_read(&bat_priv->ap_isolation))
-		return false;
+		goto out;
 
 	tt_local_entry = tt_local_hash_find(bat_priv, dst);
 	if (!tt_local_entry)
@@ -2044,10 +2044,10 @@ bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst)
 	if (!tt_global_entry)
 		goto out;
 
-	if (_is_ap_isolated(tt_local_entry, tt_global_entry))
+	if (!_is_ap_isolated(tt_local_entry, tt_global_entry))
 		goto out;
 
-	ret = false;
+	ret = true;
 
 out:
 	if (tt_global_entry)
-- 
1.7.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: only drop packets of known wifi clients
  2012-06-20 15:16 [B.A.T.M.A.N.] [PATCH] batman-adv: only drop packets of known wifi clients Marek Lindner
@ 2012-06-20 15:34 ` Antonio Quartulli
  2012-06-22 18:19   ` Marek Lindner
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2012-06-20 15:34 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking; +Cc: Marek Lindner

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

On Wed, Jun 20, 2012 at 05:16:05 +0200, Marek Lindner wrote:
> If the source or destination mac address of an ethernet packet
> could not be found in the translation table the packet was
> dropped if AP isolation was turned on. This behavior would
> make it impossible to send broadcast packets over the mesh as
> the broadcast address will never enter the translation table.
> 
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Acked-by: Antonio Quartulli <ordex@autistici.org>


-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: only drop packets of known wifi clients
  2012-06-20 15:34 ` Antonio Quartulli
@ 2012-06-22 18:19   ` Marek Lindner
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2012-06-22 18:19 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

On Wednesday, June 20, 2012 17:34:03 Antonio Quartulli wrote:
>   On Wed, Jun 20, 2012 at 05:16:05 +0200, Marek Lindner wrote:
> > If the source or destination mac address of an ethernet packet
> > could not be found in the translation table the packet was
> > dropped if AP isolation was turned on. This behavior would
> > make it impossible to send broadcast packets over the mesh as
> > the broadcast address will never enter the translation table.
> >
> > Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> 
> Acked-by: Antonio Quartulli <ordex@autistici.org>

Applied in revision 03a0e3d.

Regards,
Marek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-22 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 15:16 [B.A.T.M.A.N.] [PATCH] batman-adv: only drop packets of known wifi clients Marek Lindner
2012-06-20 15:34 ` Antonio Quartulli
2012-06-22 18:19   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox