20 Nov, 2011

1 commit

  • 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
     

20 Jun, 2011

1 commit


30 May, 2011

1 commit


18 Apr, 2011

1 commit

  • The rcu protected macros rcu_dereference() and rcu_assign_pointer()
    for the orig_node->router need to be used, as well as spin/rcu locking.
    Otherwise we might end up using a router pointer pointing to already
    freed memory.

    Therefore this commit introduces the safe getter method
    orig_node_get_router().

    Signed-off-by: Linus Lüssing
    Signed-off-by: Marek Lindner
    Signed-off-by: Sven Eckelmann

    Linus Lüssing
     

05 Mar, 2011

7 commits


31 Jan, 2011

1 commit


17 Dec, 2010

1 commit

  • B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is a routing
    protocol for multi-hop ad-hoc mesh networks. The networks may be wired or
    wireless. See http://www.open-mesh.org/ for more information and user space
    tools.

    Signed-off-by: Sven Eckelmann
    Signed-off-by: David S. Miller

    Sven Eckelmann