lkml.org 
[lkml]   [2012]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 102/187] batman-adv: only drop packets of known wifi clients
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.4-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Marek Lindner <lindner_marek@yahoo.de>

    commit 5870adc68fc39d81089f1e80efdf64b97e5c37a1 upstream.

    bug introduced with 59b699cdee039d75915c354da06937102d1f9a84

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/batman-adv/translation-table.c | 8 ++++----
    1 file changed, 4 insertions(+), 4 deletions(-)

    --- a/net/batman-adv/translation-table.c
    +++ b/net/batman-adv/translation-table.c
    @@ -1803,10 +1803,10 @@ bool is_ap_isolated(struct bat_priv *bat
    {
    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)
    @@ -1816,10 +1816,10 @@ bool is_ap_isolated(struct bat_priv *bat
    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)



    \
     
     \ /
      Last update: 2012-07-13 02:41    [W:4.101 / U:0.160 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site