• Marek Lindner's avatar
    batman-adv: fix erroneous client entry duplicate detection · 4c718958
    Marek Lindner authored
    The translation table implementation, namely batadv_compare_tt(),
    is used to compare two client entries and deciding if they are the
    holding the same information. Each client entry is identified by
    its mac address and its VLAN id (VID).
    Consequently, batadv_compare_tt() has to not only compare the mac
    addresses but also the VIDs.
    
    Without this fix adding a new client entry that possesses the same
    mac address as another client but operates on a different VID will
    fail because both client entries will considered identical.
    Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
    Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
    4c718958
translation-table.c 113 KB