An error occurred fetching the project authors.
  1. 28 Jun, 2012 2 commits
  2. 25 Jun, 2012 1 commit
  3. 24 Jun, 2012 3 commits
  4. 20 Jun, 2012 6 commits
  5. 18 Jun, 2012 2 commits
  6. 18 Apr, 2012 1 commit
  7. 16 Feb, 2012 3 commits
  8. 20 Nov, 2011 2 commits
    • Antonio Quartulli's avatar
      batman-adv: create a common substructure for tt_global/local_entry · 48100bac
      Antonio Quartulli authored
      Several functions in the translation table management code assume that the
      tt_global_entry and tt_local_entry structures have the same initial fields such
      as 'addr' and 'hash_entry'. To improve the code readability and to avoid
      mistakes in later changes, a common substructure that substitute the shared
      fields has been introduced (struct tt_common_entry).
      
      Thanks to this modification, it has also been possible to slightly reduce the
      code length by merging some functions like compare_ltt/gtt() and
      tt_local/global_hash_find()
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      48100bac
    • Antonio Quartulli's avatar
      batman-adv: fixed hash functions type to uint32_t instead of int · c90681b8
      Antonio Quartulli authored
      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: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      c90681b8
  9. 08 Sep, 2011 1 commit
  10. 22 Aug, 2011 2 commits
  11. 20 Jun, 2011 1 commit
  12. 30 May, 2011 4 commits
  13. 08 May, 2011 1 commit
  14. 01 May, 2011 1 commit
  15. 17 Apr, 2011 1 commit
  16. 05 Mar, 2011 7 commits
  17. 31 Jan, 2011 1 commit
  18. 30 Jan, 2011 1 commit
    • Sven Eckelmann's avatar
      batman-adv: Make vis info stack traversal threadsafe · 1181e1da
      Sven Eckelmann authored
      The batman-adv vis server has to a stack which stores all information
      about packets which should be send later. This stack is protected
      with a spinlock that is used to prevent concurrent write access to it.
      
      The send_vis_packets function has to take all elements from the stack
      and send them to other hosts over the primary interface. The send will
      be initiated without the lock which protects the stack.
      
      The implementation using list_for_each_entry_safe has the problem that
      it stores the next element as "safe ptr" to allow the deletion of the
      current element in the list. The list may be modified during the
      unlock/lock pair in the loop body which may make the safe pointer
      not pointing to correct next element.
      
      It is safer to remove and use the first element from the stack until no
      elements are available. This does not need reduntant information which
      would have to be validated each time the lock was removed.
      Reported-by: default avatarRussell Senior <russell@personaltelco.net>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      1181e1da