1. 28 6月, 2012 4 次提交
  2. 25 6月, 2012 4 次提交
  3. 21 6月, 2012 6 次提交
  4. 19 6月, 2012 2 次提交
  5. 18 4月, 2012 1 次提交
  6. 17 2月, 2012 3 次提交
  7. 20 11月, 2011 2 次提交
    • A
      batman-adv: create a common substructure for tt_global/local_entry · 48100bac
      Antonio Quartulli 提交于
      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: NAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      48100bac
    • 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
  8. 08 9月, 2011 1 次提交
  9. 22 8月, 2011 2 次提交
  10. 20 6月, 2011 1 次提交
  11. 30 5月, 2011 4 次提交
  12. 08 5月, 2011 1 次提交
  13. 02 5月, 2011 1 次提交
  14. 18 4月, 2011 1 次提交
  15. 05 3月, 2011 7 次提交