Re: [B.A.T.M.A.N.] [PATCH] Sync hash implementation of batgat and batman-adv

2008-09-25 Thread Sven Eckelmann
On Thursday 25 September 2008 21:15:08 Sven Eckelmann wrote: > The compare functions had a different interpretation of its return value > and kmalloc can sleep inside batgat because we are running in user context > of kernel. This patch can ignored if not wanted. It is just a copy of batman-adv- k

[B.A.T.M.A.N.] [PATCH] Don't use iterator of wip_hash to delete bucket in vip_hash

2008-09-25 Thread Sven Eckelmann
The hash iterator of a hash has different pointers inside of it. When somebody tries to delete a bucket in another hash with hash_remove_bucket most data will be changed in the hash the iterator belongs and not the target hash. --- batman/linux/modules/gateway.c |2 +- batman/linux/modules/g

[B.A.T.M.A.N.] [PATCH] Sync hash implementation of batgat and batman-adv

2008-09-25 Thread Sven Eckelmann
The compare functions had a different interpretation of its return value and kmalloc can sleep inside batgat because we are running in user context of kernel. --- batman/linux/modules/gateway.c |4 +- batman/linux/modules/gateway24.c |4 +- batman/linux/modules/hash.c | 266 +++

[B.A.T.M.A.N.] [PATCH] Allow unoptimized builds of batgat

2008-09-25 Thread Sven Eckelmann
Currently htons is a functions provided by userspace libraries and will only be replaced by a special builtin functions of gcc when optimization is enabled. Linux v2.6.27-rc2-497-gbc2aa80 will provide these function symbols as macros for in-kernel usage. --- batman/linux/modules/gateway.c |4

[B.A.T.M.A.N.] [PATCHv2] Move more linux 2.6 compat stuff to compat26.h

2008-09-25 Thread Sven Eckelmann
--- batman/linux/modules/compat26.h | 12 batman/linux/modules/gateway.c|8 batman/linux/modules/mod_batman.c | 22 ++ 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/batman/linux/modules/compat26.h b/batman/linux/modules/com

Re: [B.A.T.M.A.N.] [PATCH] Move more linux 2.6 compat stuff to compat26.h

2008-09-25 Thread Sven Eckelmann
On Wednesday 24 September 2008 23:59:21 Sven Eckelmann wrote: > --- > batman/linux/modules/gateway.c|8 > batman/linux/modules/mod_batman.c | 22 ++ > 2 files changed, 2 insertions(+), 28 deletions(-) > > diff --git a/batman/linux/modules/gateway.c Please ign

Re: [B.A.T.M.A.N.] [PATCH] Send TUNNEL_IP_REQUEST as response of TUNNEL_IP_REQUEST

2008-09-25 Thread Sven Eckelmann
On Thursday 25 September 2008 11:12:11 Stephan Enderlein (Freifunk Dresden) wrote: > It seems that you are always replying to emails of a different thread. > The information you send do not belong to my questions. > I also have seen that you replay to other threads that is not related > to the thr

Re: [B.A.T.M.A.N.] [PATCH] Send TUNNEL_IP_REQUEST as response of TUNNEL_IP_REQUEST

2008-09-25 Thread Stephan Enderlein (Freifunk Dresden)
Hello Sven, It seems that you are always replying to emails of a different thread. The information you send do not belong to my questions. I also have seen that you replay to other threads that is not related to the threads. Please create a new thread instead for you PATCH messages as it would kee

[B.A.T.M.A.N.] [PATCH] Send TUNNEL_IP_REQUEST as response of TUNNEL_IP_REQUEST

2008-09-25 Thread Sven Eckelmann
Userspace gateway sends TUNNEL_IP_REQUEST when he receives TUNNEL_IP_REQUEST and will not start to send new IP as TUNNEL_DATA --- batman/linux/modules/gateway.c |1 - batman/linux/modules/gateway24.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/batman/linux/module

[B.A.T.M.A.N.] [PATCH] Move more linux 2.6 compat stuff to compat26.h

2008-09-25 Thread Sven Eckelmann
--- batman/linux/modules/gateway.c|8 batman/linux/modules/mod_batman.c | 22 ++ 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/batman/linux/modules/gateway.c b/batman/linux/modules/gateway.c index 965f87b..154497e 100644 --- a/batman/linux/m

[B.A.T.M.A.N.] [PATCH] Backport gateway module to 2.6.18

2008-09-25 Thread Sven Eckelmann
kernel_bind and other kernel socket api functions were defined by linux v2.6.18-310-gac5a488 and ip_hdr first appeared in linux v2.6.21-122-geddc9ec. To provide these functions a new compatibility header file with the name compat26.h was added to provide an easy way to support older kernels. Other