23 Aug, 2012

3 commits


02 Jul, 2012

6 commits


28 Jun, 2012

7 commits


25 Jun, 2012

4 commits


21 Jun, 2012

6 commits

  • batman-adv doesn't follow the style for multiline comments that David S. Miller
    prefers. All comments should be reformatted to follow this consistent style to
    make the code slightly more readable.

    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     
  • batman-adv can be compiled as part of the kernel instead of an module. In that
    case the linker will see all non-static symbols of batman-adv and all other
    non-static symbols of the kernel. This could lead to symbol collisions. A
    prefix for the batman-adv symbols that defines their private namespace avoids
    such a problem.

    Reported-by: David Miller
    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     
  • batman-adv can be compiled as part of the kernel instead of an module. In that
    case the linker will see all non-static symbols of batman-adv and all other
    non-static symbols of the kernel. This could lead to symbol collisions. A
    prefix for the batman-adv symbols that defines their private namespace avoids
    such a problem.

    Reported-by: David Miller
    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     
  • batman-adv can be compiled as part of the kernel instead of an module. In that
    case the linker will see all non-static symbols of batman-adv and all other
    non-static symbols of the kernel. This could lead to symbol collisions. A
    prefix for the batman-adv symbols that defines their private namespace avoids
    such a problem.

    Reported-by: David Miller
    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     
  • batman-adv can be compiled as part of the kernel instead of an module. In that
    case the linker will see all non-static symbols of batman-adv and all other
    non-static symbols of the kernel. This could lead to symbol collisions. A
    prefix for the batman-adv symbols that defines their private namespace avoids
    such a problem.

    Reported-by: David Miller
    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     
  • batman-adv can be compiled as part of the kernel instead of an module. In that
    case the linker will see all non-static symbols of batman-adv and all other
    non-static symbols of the kernel. This could lead to symbol collisions. A
    prefix for the batman-adv symbols that defines their private namespace avoids
    such a problem.

    Reported-by: David Miller
    Signed-off-by: Sven Eckelmann

    Sven Eckelmann
     

19 Jun, 2012

2 commits


18 Apr, 2012

1 commit


17 Feb, 2012

3 commits

  • Signed-off-by: Sven Eckelmann
    Signed-off-by: Marek Lindner

    Sven Eckelmann
     
  • To increase readability the has_timed_out() functions has been introduced.
    This patch converts existing time_after() calls to use this wrapper
    function (if applicable).
    This patch also converts all timeouts to miliseconds to be consistent.

    Signed-off-by: Marek Lindner
    Signed-off-by: Simon Wunderlich

    Marek Lindner
     
  • All batman-adv packets have a common 3 byte header. It can be used to share
    some code between different code paths, but it was never explicit stated that
    this header has to be always the same for all packets. Therefore, new code
    changes always have the problem that they may accidently introduce regressions
    by moving some elements around.

    A new structure is introduced that contains the common header and makes it
    easier visible that these 3 bytes have to be the same for all on-wire packets.

    Signed-off-by: Sven Eckelmann
    Signed-off-by: Marek Lindner

    Sven Eckelmann
     

20 Nov, 2011

2 commits

  • 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: Antonio Quartulli
    Signed-off-by: Sven Eckelmann

    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: Antonio Quartulli
    Signed-off-by: Sven Eckelmann

    Antonio Quartulli
     

08 Sep, 2011

1 commit


22 Aug, 2011

2 commits


20 Jun, 2011

1 commit


30 May, 2011

2 commits