1. 15 11月, 2012 1 次提交
    • A
      batman-adv: substitute tt_poss_change with a per-tt_entry flag · 7c1fd91d
      Antonio Quartulli 提交于
      tt_poss_change is a node-wide flag which tells whether the node is in a roaming
      state (a client recently moved to/away from it) in order to let it apply special
      re-routing rules. However this flag does not give a clear idea of the current
      state because it is not possible to understand *which client* is actually
      involved in the roaming. For this reason a better approach has been chosen:
      instead of using a node-wide variable, the roaming state is now given by a
      per-tt_entry ROAM flag which, in case of packet coming through the node, tells
      the node whether the real destination is in roaming state or not.
      
      With this flag change, batadv_check_unicast_ttvn() has also been rearranged in
      order to better fit the new re-routing logic and to be much more readable.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      7c1fd91d
  2. 08 11月, 2012 1 次提交
  3. 29 10月, 2012 1 次提交
  4. 02 7月, 2012 5 次提交
  5. 28 6月, 2012 2 次提交
  6. 25 6月, 2012 5 次提交
  7. 21 6月, 2012 8 次提交
  8. 19 6月, 2012 1 次提交
  9. 14 5月, 2012 1 次提交
  10. 11 5月, 2012 3 次提交
  11. 11 4月, 2012 2 次提交
    • S
      batman-adv: add basic bridge loop avoidance code · 23721387
      Simon Wunderlich 提交于
      This second version of the bridge loop avoidance for batman-adv
      avoids loops between the mesh and a backbone (usually a LAN).
      
      By connecting multiple batman-adv mesh nodes to the same ethernet
      segment a loop can be created when the soft-interface is bridged
      into that ethernet segment. A simple visualization of the loop
      involving the most common case - a LAN as ethernet segment:
      
      node1  <-- LAN  -->  node2
        |                   |
      wifi   <-- mesh -->  wifi
      
      Packets from the LAN (e.g. ARP broadcasts) will circle forever from
      node1 or node2 over the mesh back into the LAN.
      
      With this patch, batman recognizes backbone gateways, nodes which are
      part of the mesh and backbone/LAN at the same time. Each backbone
      gateway "claims" clients from within the mesh to handle them
      exclusively. By restricting that only responsible backbone gateways
      may handle their claimed clients traffic, loops are effectively
      avoided.
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      23721387
    • S
      batman-adv: remove old bridge loop avoidance code · a7f6ee94
      Simon Wunderlich 提交于
      The functionality is to be replaced by an improved implementation,
      so first clean up.
      Signed-off-by: NSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      a7f6ee94
  12. 11 3月, 2012 1 次提交
  13. 28 2月, 2012 1 次提交
  14. 17 2月, 2012 3 次提交
  15. 20 11月, 2011 1 次提交
    • A
      batman-adv: fixed hash functions type to uint32_t instead of int · c90681b8
      Antonio Quartulli 提交于
      There are two reasons for this fix:
      - the result of choose_orig() and vis_choose() is an index and therefore it can't
        be negative. Hence it is correct to make the return type unsigned too.
      
      - sizeof(int) may not be the same on ALL the architectures. Since we plan to use
        choose_orig() as DHT hash function, we need to guarantee that, given the same
        argument, the result is the same. Then it is correct to explicitly express
        the size of the return type (and the second argument). Since the expected
        length is currently 4, uint32_t is the most convenient choice.
      Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      c90681b8
  16. 08 9月, 2011 2 次提交
  17. 22 8月, 2011 1 次提交
  18. 08 7月, 2011 1 次提交