Re: [B.A.T.M.A.N.] Batman-Advanced Kernel land

2008-06-04 Thread Sven Eckelmann
Someone can help me? Can you please test it further? I used uml with linux 2.6.22.5 and uml_switch configured as hub to produce the same problem, but dotslash told me that he wasn't able to reproduce it with his uml image (2.6.24 based). Maybe I can help him to get the same effect it so he can

Re: [B.A.T.M.A.N.] BATMAN Gateway

2008-07-03 Thread Sven Eckelmann
On Thursday 03 July 2008 15:42:25 cipollone wrote: I want to know how work and what I have to configure the kernel module of BATMAN Gateway. Hm, I am not really sure if I understood it right - you want to use batman advanced to access another network (internet), correct? Just insmod it

Re: [B.A.T.M.A.N.] batman and Kernel 2.6.26-rc8rc9

2008-07-18 Thread Sven Eckelmann
On Friday 18 July 2008 03:48:27 Mark Kelly wrote: I just got around to trying this again on 2.6.26 final and I'm still getting a fail error on the gateway module, and I've tried it using r1099 and r1100 under openwrt on an ixp4xx board. Please look at device.c on line 88 till 92. There should

Re: [B.A.T.M.A.N.] Batman gateway lock ups

2008-09-08 Thread Sven Eckelmann
/lock up. I cannot find any crash related bug fixes in the batgat trunk directory - so it doesn't seem to be a known problem (if it is a batgat problem at all). Best regards Sven Eckelmann signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] Batman gateway lock ups

2008-09-09 Thread Sven Eckelmann
- __list_del Best regards Sven Eckelmann signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] Batman gateway lock ups

2008-09-09 Thread Sven Eckelmann
On Monday 08 September 2008 23:45:55 Sven Eckelmann wrote: I got the System.map right now. So we can convert the kernel oops into something more readable. It doesn't help that much now, but... just for sake of completeness Sry, forgot the second oops with the interesting address of the paging

Re: [B.A.T.M.A.N.] Batman gateway lock ups

2008-09-10 Thread Sven Eckelmann
... do it the other way around (keep the printks around list_add and remove it before list_del). ...just my ideas to find the problem. Best regards Sven Eckelmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjG/HsACgkQqQGwKVlMoDv6fACg90wX35fyHR13/Dh

Re: [B.A.T.M.A.N.] Batman gateway lock ups

2008-09-10 Thread Sven Eckelmann
On Wednesday 10 September 2008 00:45:07 Sven Eckelmann wrote: [...] /* v0 and v1 holds pointer to new allocated struct */ /* a3 holds zero - like t0 */ 9a8: sw s1,8(v0) /* store pointer to client_data in new data buffer */ 9ac: lw v0,36(a3) /* v0 gets free_client_list.next

[B.A.T.M.A.N.] [PATCH] Unlock all spinlocks in batgat

2008-09-11 Thread Sven Eckelmann
about this issue can be found in Unreliable Guide To Locking under the section Locks and Uniprocessor Kernels. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/linux/modules/gateway.c |1 + batman/linux/modules/gateway24.c |1 + 2 files changed, 2 insertions(+), 0 deletions

[B.A.T.M.A.N.] [PATCH] kfree list nodes after deleting them from free_client_list in batgat

2008-09-11 Thread Sven Eckelmann
of it after enough connecting and leaving clients. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/linux/modules/gateway.c |3 +++ batman/linux/modules/gateway24.c |3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/batman/linux/modules/gateway.c b

[B.A.T.M.A.N.] [PATCH] Remove batgat proc entries correctly

2008-09-11 Thread Sven Eckelmann
We must remove the /proc/net/batgat/clients file and /proc/net/batgat dir correctly or otherwise we will get a oops when someone tries to access the file. If we do not remove the directory it is possible that more then one batgat entry appears inside of /proc/net/ Signed-off-by: Sven Eckelmann

[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

[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

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

2008-09-25 Thread Sven Eckelmann
in them - just the usual stuff mutt creates for new mails and the stuff mailman adds. Best regards Sven Eckelmann signature.asc Description: This is a digitally signed message part.

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 ignore

[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.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 |

[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] 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 +-

Re: [B.A.T.M.A.N.] My patches don't reference you mails

2008-09-26 Thread Sven Eckelmann
On Friday 26 September 2008 14:56:17 Stephan Enderlein (Freifunk Dresden) wrote: https://list.open-mesh.net/pipermail/b.a.t.m.a.n/2008-September.txt.gz If I look at this file I agree with you that there is no In-Replay-To. But the email header is normaly much longer. So we can see this if

[B.A.T.M.A.N.] Possible null pointer dereference in batman's update_routes

2008-09-27 Thread Sven Eckelmann
Hi, I am not sure but I think it could be possible that there is a null pointer dereference at batman.c:420 I assume that it is possible that neigh_node is NULL and orig_node-router is also NULL in batman.c:412. Now we dereference neigh_node in batman.c:420 as third parameter of add_del_route.

[B.A.T.M.A.N.] [PATCH] Mark not returning functions with __noreturn__

2008-09-27 Thread Sven Eckelmann
The gcc feature for functions that will definitely not return should help the static analyzer and the optimizer slightly. See http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes for more informations. --- batman/os.h |8 +++- batman/posix/posix.c |4

[B.A.T.M.A.N.] [PATCH] Remove dead stores in batmand

2008-09-28 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/batman.c |4 ++-- batman/originator.c |2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/batman/batman.c b/batman/batman.c index d7e2389..eda5774 100644 --- a/batman/batman.c +++ b/batman/batman.c

[B.A.T.M.A.N.] [PATCH] Let the compiler interpret the noreturn situation in restore_and_exit correct

2008-10-09 Thread Sven Eckelmann
It is just implicit that raise will not return in this case because we are in a sighandler right now. So let call exit always afterwards even if it will not be reached. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/posix/posix.c |5 ++--- 1 files changed, 2 insertions(+), 3

[B.A.T.M.A.N.] [PATCH] Use device_create instead of device_create_drvdata in linux modules

2008-11-05 Thread Sven Eckelmann
The function device_create_drvdata was renamed to device_create in linux v2.6.26-5782-g4e10673. Until v2.6.27-4446-g7fb6b5d there was a compatibility define in include/linux/device.h which is removed in linux 2.6.28-rc1. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv

[B.A.T.M.A.N.] [PATCHv2] Use device_create instead of device_create_drvdata in linux modules

2008-11-05 Thread Sven Eckelmann
The function device_create_drvdata was renamed to device_create in linux v2.6.26-5782-g4e10673. Until v2.6.27-4446-g7fb6b5d there was a compatibility define in include/linux/device.h which is removed in linux 2.6.28-rc1. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv

Re: [B.A.T.M.A.N.] [PATCH] Use device_create instead of device_create_drvdata in linux modules

2008-11-05 Thread Sven Eckelmann
On Wednesday 05 November 2008 15:48:38 Sven Eckelmann wrote: The function device_create_drvdata was renamed to device_create in linux v2.6.26-5782-g4e10673. Until v2.6.27-4446-g7fb6b5d there was a compatibility define in include/linux/device.h which is removed in linux 2.6.28-rc1. Sry

Re: [B.A.T.M.A.N.] RetroMessenger Linux for PC/Mobile 0.2 has been released

2008-11-15 Thread Sven Eckelmann
to mesh networks, can it fix the bmx stability problems or can it confirm that they are gone? Has it a buildin static scanner for kernel code? Why isn't it possible to find anything about it on freshmeat or ohloh? Best regards, Sven Eckelmann signature.asc Description: This is a digitally signed

[B.A.T.M.A.N.] [PATCH] Don't create different definitions of variables from header

2008-11-24 Thread Sven Eckelmann
these variable and think they would use the same variable in memory. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-userspace/batman-adv.h |2 +- batman-experimental/batman.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/batman-adv-userspace

[B.A.T.M.A.N.] [PATCH] Reduce verbosity of make

2008-11-25 Thread Sven Eckelmann
. The normal behaviour can be restored by running `make V=99`. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-userspace/Makefile | 14 +++--- batman/Makefile | 16 battool/Makefile | 12 ++-- 3 files changed, 33 insertions

[B.A.T.M.A.N.] [PATCH] Compile object files before linking vis-advanced

2008-11-25 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- vis-advanced/Makefile | 24 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/vis-advanced/Makefile b/vis-advanced/Makefile index 9448fd9..548d85f 100644 --- a/vis-advanced/Makefile +++ b/vis-advanced

[B.A.T.M.A.N.] [PATCH] Remove unused variable debug_level_info in posix/posix.c

2008-12-01 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/posix/posix.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/batman/posix/posix.c b/batman/posix/posix.c index 1a67e13..048cf94 100644 --- a/batman/posix/posix.c +++ b/batman/posix/posix.c @@ -523,7 +523,6

[B.A.T.M.A.N.] [PATCH] Use declaration of vis_if from batman.h

2008-12-01 Thread Sven Eckelmann
--- batman/posix/posix.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/batman/posix/posix.c b/batman/posix/posix.c index 048cf94..17b0667 100644 --- a/batman/posix/posix.c +++ b/batman/posix/posix.c @@ -42,8 +42,6 @@ #define BAT_LOGO_END(x,y)

[B.A.T.M.A.N.] [PATCH] Mark function which are only declared locally as static

2008-12-01 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/allocate.c |4 ++-- batman/batman.c | 12 ++-- batman/list-batman.c |4 ++-- batman/posix/init.c | 10 +- batman/posix/posix.c |6 +++--- batman/posix/tunnel.c | 12 ++-- 6 files

[B.A.T.M.A.N.] [PATCH] Remove unused functions isDuplicate and isBntog

2008-12-01 Thread Sven Eckelmann
--- batman/batman.c | 37 - 1 files changed, 0 insertions(+), 37 deletions(-) diff --git a/batman/batman.c b/batman/batman.c index ebe5aab..0c17f33 100644 --- a/batman/batman.c +++ b/batman/batman.c @@ -666,43 +666,6 @@ unsigned char get_gw_class(int down,

[B.A.T.M.A.N.] Re: [PATCH] Correct parameter in declaration of use_gateway_module

2008-12-01 Thread Sven Eckelmann
Sry, made an error while splitting the patch. I will resend it soon. signature.asc Description: This is a digitally signed message part.

[B.A.T.M.A.N.] [PATCHv2] Use ansi-style declaration for parameterless functions

2008-12-01 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/bsd/kernel.c |2 +- batman/linux/kernel.c|2 +- batman/linux/modules/gateway.c |6 +++--- batman/linux/modules/gateway24.c |6 +++--- batman/originator.c |2 +- batman

[B.A.T.M.A.N.] [PATCHv2] Remove unused parameter of use_gateway_module

2008-12-01 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/os.h |2 +- batman/posix/init.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/batman/os.h b/batman/os.h index 76525bf..5531bae 100644 --- a/batman/os.h +++ b/batman/os.h @@ -70,7 +70,7

[B.A.T.M.A.N.] [PATCH] Don't convert new_hna_len from int16_t to int and back to int16_t

2008-12-01 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/batman.c |2 +- batman/os.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/batman/batman.c b/batman/batman.c index 0c17f33..392dd1e 100644 --- a/batman/batman.c +++ b/batman/batman.c @@ -255,7 +255,7

[B.A.T.M.A.N.] [PATCH] Don't truncate file descriptor in use_kernel_module

2008-12-01 Thread Sven Eckelmann
We should not truncate the file descriptor of /dev/batgat from int32_t to int8_t (return type of use_kernel_module) when we save it as int32_t in batman_if::udp_tunnel_sock. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/bsd/kernel.c |2 +- batman/linux/kernel.c |2

Re: [B.A.T.M.A.N.] Intel CC warning smashing

2008-12-01 Thread Sven Eckelmann
There are some remaining remarks, but most of them are wrong (seems to be a icc bug or missing feature for #810er remarks). Thing which should be checked are get_rp_filter, get_send_redirects, get_forwarding, set_rp_filter, set_send_redirects and set_forwarding. These functions use int32_t to

Re: [B.A.T.M.A.N.] Looking for batman-adv 0.1-alpha

2008-12-08 Thread Sven Eckelmann
On Monday 08 December 2008 09:29:12 Tobias Gieseke wrote: Sorry, but my question to open-wrt was not precise enough. I wanted to know if there is a chance to get batmand-adv running on open-wrt with broadcom wifi. AFAIK batmand-adv is only running on kernel 2.6 but with kernel 2.6 broadcom

Re: [B.A.T.M.A.N.] [PATCH] Split SOURCE_VERSION in RELEASE- AND EXTRA_VERSION

2008-12-28 Thread Sven Eckelmann
in a unstable version. Don't know if this makes really sense for B.A.T.M.A.N. but the patch for that is trivial. Best regards, Sven Eckelmann signature.asc Description: This is a digitally signed message part.

[B.A.T.M.A.N.] [PATCH] Detect unstable version in SOURCE_VERSION

2008-12-28 Thread Sven Eckelmann
starting with a dash that informs the user that it is unstable and in development. This could be for example -dev, -pre-alpha, -beta or -rc1. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/posix/init.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/batman

Re: [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX

2009-01-13 Thread Sven Eckelmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 13 January 2009 11:52:35 Antoine van Gelder wrote: Some additional includes are required to compile the B.A.T.M.A.N. visualization daemon under FreeBSD and OSX. Hm, the headers are also needed on other plattforms. In linux we have deep

Re: [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX

2009-01-14 Thread Sven Eckelmann
On Tuesday 13 January 2009 22:29:25 Antoine van Gelder wrote: On 13 Jan 2009, at 20:46 , Sven Eckelmann wrote: PS: Interested in porting batmand again to *bsd plattforms? Possibly - it would be nice to have the option to mesh with a beastie :) Do you have a rough idea of what broke since

[B.A.T.M.A.N.] [PATCH] Sync definitions in bsd/* with definitions in os.h

2009-01-14 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/bsd/kernel.c |9 ++--- batman/bsd/tun.c|6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/batman/bsd/kernel.c b/batman/bsd/kernel.c index 505f551..0a126d4 100644 --- a/batman/bsd/kernel.c +++ b

[B.A.T.M.A.N.] [PATCH] Change urls to new open-mesh third level domains

2009-01-14 Thread Sven Eckelmann
Most of the urls are redirected by an 301 Moved permanently but some are not at the moment. It should not hurt to have the new versions of them everywhere. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-userspace/Makefile |2 +- batman-adv-userspace/man/batmand

Re: [B.A.T.M.A.N.] Install Batman

2009-01-21 Thread Sven Eckelmann
Hi On Wednesday 21 January 2009 15:38:14 Simon Wunderlich wrote: another option is to compile/linu batmand with the -static flag on your x86 (i386) desktop Thx, forgot that one. You should be able to link it statically by using the current version from trunk and running LDFLAGS=-s -static

[B.A.T.M.A.N.] batmand-howto conversation

2009-01-21 Thread Sven Eckelmann
Hi, I could not find any type of source (aka batmand-howto.odt in this case) of the batmand-howto written by Wesley Tsai and it seems to be partially outdated. Because of that I decided to do a conversation of the PDF to LaTeX so it can be changed more easily. It is quite rough at the moment,

Re: [B.A.T.M.A.N.] Install Batman

2009-01-23 Thread Sven Eckelmann
On Friday 23 January 2009 10:30:26 Kartik Muralidharan wrote: I was able to compile and checking 'file batmand' gave me the output mentioned below. But running ./batmand ath0 gives me an error. What error? Is it a dynamic linker error? Does `./batmand` gives the same error? Does `dmesg|tail`

Re: [B.A.T.M.A.N.] Install Batman

2009-01-23 Thread Sven Eckelmann
On Friday 23 January 2009 11:09:24 Sven Eckelmann wrote: $ ifconfig ath0 $IP $ ip a add $IP brd $BRDCAST dev ath0 Ok, definitely need some sleep. Please merge this one to: $ ip addr add $IP brd $BRDCAST dev ath0 or just use elektra's ready to go configuration. Regards, Sven

Re: [B.A.T.M.A.N.] batmand-howto conversation

2009-01-25 Thread Sven Eckelmann
On Friday 23 January 2009 01:26:18 Sven Eckelmann wrote: [...] Hm, sounds interesting, but I see different problems. First thing is the different copyright. You specified GPL2 for the batman(-adv) documentation and Wesley released his stuff as CC-by-nc-sa-3.0. These licenses aren't compatible

[B.A.T.M.A.N.] [PATCH] Generate source dependency informations on the fly

2009-03-02 Thread Sven Eckelmann
in that way and future changes are still tracked by make. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-userspace/Makefile | 10 -- batman/Makefile |9 - battool/Makefile |7 --- vis-advanced/Makefile | 10

Re: [B.A.T.M.A.N.] batmand ⇔ AF_INET6

2009-03-11 Thread Sven Eckelmann
On Wednesday 11 March 2009 19:02:04 P. Mazart wrote: BM does not let me go. Any complaints about sending badmand's broadcasts over ipv6? Afaik is no batman implementation (batmand and bmxd) is able to create routes for ipv6 at the moment. If you have that requirement than you should try

Re: [B.A.T.M.A.N.] Problem with B.A.T.M.A.N. 0.3.1 rv1206 (compatibility version 5)

2009-03-24 Thread Sven Eckelmann
On Monday 23 March 2009 23:05:34 Sven Eckelmann wrote: On Monday 23 March 2009 18:13:32 Marek Lindner wrote: I downloaded the OpenWRT trunk and compiled the i386 image before loading it into a qemu environment. I can confirm that batman does nothing if started without a debug level

[B.A.T.M.A.N.] [PATCH 1/2] Add parameter to disable fork to background

2009-04-01 Thread Sven Eckelmann
batmand using batmand -D tap1 /dev/null 21 or start-stop-daemon --start --background --exec /usr/sbin/batmand -- -D wlan0 Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/batman.c |2 ++ batman/man/batmand.8 |3 +++ batman/posix/init.c | 11 --- 3 files changed

[B.A.T.M.A.N.] [PATCH 2/2] Sanitise batmand process by reexecuting it

2009-04-01 Thread Sven Eckelmann
again. This can fail when no linux procfs is mounted on /proc or /proc/self/exe is a dangling symlink. In this case we continue without any changes. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/posix/init.c | 28 ++-- 1 files changed, 26 insertions(+), 2

[B.A.T.M.A.N.] [PATCHv2 2/2] Sanitise batmand process by reexecuting it

2009-04-01 Thread Sven Eckelmann
again. This can fail when no linux procfs is mounted on /proc or /proc/self/exe is a dangling symlink. In this case we continue without any changes. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/posix/init.c | 97 -- 1 files changed

[B.A.T.M.A.N.] [PATCH] Don't access random memory after forwarding broadcast

2009-04-02 Thread Sven Eckelmann
region without knowing what it is and to what it belongs. This could lead to a kernel oops or any kind of other unspecified behavior of the kernel. The inner loop should use a seperate position variable to iterate over all interfaces for the broadcast. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de

Re: [B.A.T.M.A.N.] bmxd rv1197 changelog

2009-04-08 Thread Sven Eckelmann
On Wednesday 08 April 2009 22:59:26 Jan Hetges wrote: Hi Axel http://downloads.open-mesh.net/batman/development/sources/batmand-exp_0.3-a lpha-current_sources/CHANGELOG this seems to be empty!? Thanks. The autogeneration of the changelog is easy to break. If you want a recent version of it,

[B.A.T.M.A.N.] [PATCH] Add compilation support for GNU/kFreeBSD

2009-04-09 Thread Sven Eckelmann
instantly work on this platform if a BSD developer would port the bsd compatibility layer again to (Open|Free)BSD. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/Makefile |5 + batman/bsd/tun.c |2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/batman

[B.A.T.M.A.N.] Out of tree builds of kernel modules

2009-04-10 Thread Sven Eckelmann
Hi, I have currently following problem with batman-adv-kernelland and batmand- gateway: Danial Baumann supports building of kernel modules against the current Debian kernel in sid with his linux-modules-extra-2.6 package. The module sources must only to support build over the kernel headers. It

Re: [B.A.T.M.A.N.] Out of tree builds of kernel modules

2009-04-11 Thread Sven Eckelmann
Hi, First thing is that there is a Makefile.kbuild which is included with include $(PWD)/Makefile.kbuild This will not work in the current situation because the PWD is now /usr/src/linux-headers-2.6.29-1-amd64. Is this extra Makefile.kbuild really needed? the Makefile.kbuild was

[B.A.T.M.A.N.] [PATCH] Differentiate between hyphen and minus in manpage

2009-04-24 Thread Sven Eckelmann
groff differentiate between minus signs and hyphens. The default option is to interpret '-' as hyphens (U+2010) and makes it hard to use copy and paste for options in UTF-8 environments. See http://lists.debian.org/debian-devel/2003/03/msg01481.html for more informations. Signed-off-by: Sven

[B.A.T.M.A.N.] Possible page faults at route.c

2009-05-20 Thread Sven Eckelmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 In the handling of netlink sockets is are two small and (probably always) non fatal glitches. Only together they could lead to page faults. It is quite unlikely that it happens, but you cannot say that it is impossible. Best regards, Sven

[B.A.T.M.A.N.] [PATCH 2/2] [batman] Don't add size for netlink header twice in netlink request

2009-05-20 Thread Sven Eckelmann
structure into a header part and the payload to calculate the correct size of our buffer and having the payload always start at the correct address. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/linux/route.c | 59 ++--- 1 files changed

Re: [B.A.T.M.A.N.] VIS server for batman-adv-kernelland

2009-05-22 Thread Sven Eckelmann
On Friday 22 May 2009 19:51:20 Christoph Pilka wrote: many thanks for all the infos and hints. The base install seems to work properly. I'll take a look at s3d this weekend cause I'm very interested in getting it running at ethernet frame level. By the way, the JSON output seems to be really

Re: [B.A.T.M.A.N.] Debug Malloc Problem

2009-05-26 Thread Sven Eckelmann
On Tuesday 26 May 2009 20:50:56 Nathan Wharton wrote: I added the following patch: = --- batmand-r1269/batman/allocate.c 2009-05-20 13:54:18.0 -0500 +++ batmand-r1269.mod/batman/allocate.c 2009-05-26 12:25:07.0 -0500 @@ -206,6

Re: [B.A.T.M.A.N.] Debug Malloc Problem

2009-05-27 Thread Sven Eckelmann
On Wednesday 27 May 2009 16:20:16 Nathan Wharton wrote: On Tue, May 26, 2009 at 5:13 PM, Sven Eckelmann sven.eckelm...@gmx.de wrote: = #include stdio.h #include stdlib.h #define x_moved(pos) ((int*)x[pos])[0] static const int value1

Re: [B.A.T.M.A.N.] Debug Malloc Problem

2009-05-27 Thread Sven Eckelmann
On Wednesday 27 May 2009 18:35:42 Nathan Wharton wrote: On Wed, May 27, 2009 at 11:21 AM, Nathan Wharton n...@greptar.com wrote: On Wed, May 27, 2009 at 11:16 AM, Sven Eckelmann sven.eckelm...@gmx.de wrote: Thanks. This is completely unexpecting for a kernel with alignment trap

[B.A.T.M.A.N.] [PATCH 2/3] [batman] Make TYPE_OF_WORD the largest integral type

2009-05-28 Thread Sven Eckelmann
Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/allocate.c | 24 batman/batman.h |2 ++ batman/bitarray.h |4 +--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/batman/allocate.c b/batman/allocate.c index a779504..5e28c71

[B.A.T.M.A.N.] [PATCH 3/3] [batman] Word-Align char buffer which are later casted to larger data types

2009-05-28 Thread Sven Eckelmann
Buffers of char must not be special aligned on all architecture, but if the compiler will not know about missing alignment of the larger data type it generate unsafe instructions as it assumes that they are word aligned. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/batman.h

Re: [B.A.T.M.A.N.] Implementation of BATMAN routing metric on NS2

2009-06-02 Thread Sven Eckelmann
On Tuesday 02 June 2009 09:20:02 Siphamandla Nxumalo wrote: I would like to know if there is any implementation of BATMAN roting metric that has been done on NS2. Not as I would know. My information is taken from https://lists.open-mesh.net/pipermail/b.a.t.m.a.n/2009-April/002545.html and other

Re: [B.A.T.M.A.N.] Add padding around allocation debugger structures

2009-06-02 Thread Sven Eckelmann
On Tuesday 02 June 2009 06:36:41 Marek Lindner wrote: On Tuesday 02 June 2009 03:35:07 Sven Eckelmann wrote: So my question to marek: Is it really needed to have struct hna_global_entry packed in hna.h:57? If not then we should remove it and this problem should be gone. And what

[B.A.T.M.A.N.] [PATCH] [batman] Align pointers in hna list elements

2009-06-02 Thread Sven Eckelmann
and will create only a fast and unsafe version for load and store operations. It is only important for the first 5 bytes of hna_global_entry to be packed we can force these elements to be aligned without changing the relative addresses of the first bytes. Signed-off-by: Sven Eckelmann sven.eckelm

Re: [B.A.T.M.A.N.] batman 0.3.2 released

2009-06-13 Thread Sven Eckelmann
On Saturday 13 June 2009 00:24:53 Marek Lindner wrote: the B.A.T.M.A.N. team is releasing the second bugfix and maintenance release of the 0.3 batman daemon which also contains smaller enhancements in various areas. It's mostly an update to batman 0.3 and does not contain major routing

Re: [B.A.T.M.A.N.] HTTP transfers greater than 1000 bytes fail

2009-06-22 Thread Sven Eckelmann
On Monday 22 June 2009 22:47:30 Jacob Marble wrote: Yes. However, I can't set the MTU any higher than 1476 on the bat0 interface: r...@openwrt:~# ifconfig bat0 mtu 1500 ifconfig: SIOCSIFMTU: Invalid argument r...@openwrt:~# ifconfig bat0 mtu 1477 ifconfig: SIOCSIFMTU: Invalid argument

Re: [B.A.T.M.A.N.] HTTP transfers greater than 1000 bytes fail

2009-06-22 Thread Sven Eckelmann
On Monday 22 June 2009 22:48:21 Jacob Marble wrote: OK, what if I set the MTU of ath0 higher? Lemme see. You must also set the mtu of the bat0 higher (to 1500 to be more exact) when you set the ath0 mtu to 1524 - it will not be increased automatically. Regards, Sven signature.asc

[B.A.T.M.A.N.] [PATCH] [batman-adv] Convert to new net_device_ops

2009-06-27 Thread Sven Eckelmann
-2.6.31. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/soft-interface.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/batman-adv-kernelland/soft-interface.c b/batman-adv-kernelland/soft-interface.c index bb95501..4600017

[B.A.T.M.A.N.] [PATCH] [batman] Convert to new net_device_ops

2009-06-27 Thread Sven Eckelmann
. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman/linux/modules/gateway.c | 19 --- batman/linux/modules/gateway.h |1 + 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/batman/linux/modules/gateway.c b/batman/linux/modules/gateway.c index bbe48e0

Re: [B.A.T.M.A.N.] about: BATMAN algorithm ?

2009-06-29 Thread Sven Eckelmann
Hi, can you please use a correct name in your From:, thanks. On Monday 29 June 2009 09:24:56 linuxer wrote: at http://www.open-mesh.net/wiki/BranchesExplained you say, batman 0.3 is the latest stable implementation, using a new version of the algorithm known as the BATMAN IV/TQ algorithm.

Re: [B.A.T.M.A.N.] [patch] Typos and spelling errors

2009-07-10 Thread Sven Eckelmann
Hi Folks This patch fixes a few typos and spelling errors. You don't specify for which project this patch is (yes, I can guess when I look at the patched files, but who wants to guess if it could be in the summary line of the patch - see as an example

Re: [B.A.T.M.A.N.] [vis] fixed partial json output

2009-07-15 Thread Sven Eckelmann
Partial output was caused by failing to read the HTTP request. This patch reads the HTTP request into a temporary buffer before discarding it. This patch creates an endless loop on unrecoverable socket errors. See read(3) for more information about return codes. Please provide more information

Re: [B.A.T.M.A.N.] battools sources in SVN?

2009-07-17 Thread Sven Eckelmann
Hi Folks The wiki page: http://open-mesh.org/wiki/Download says: # svn co http://downloads.open-mesh.net/svn/batman/trunk/ # battool (for B.A.T.M.A.N. advanced): check out the complete repository, cd into battool (we're using symlinks here ...) It is now called batctl and no developer has

Re: [B.A.T.M.A.N.] battools sources in SVN?

2009-07-17 Thread Sven Eckelmann
Hi Folks The wiki page: http://open-mesh.org/wiki/Download says: # svn co http://downloads.open-mesh.net/svn/batman/trunk/ # battool (for B.A.T.M.A.N. advanced): check out the complete repository, cd into battool (we're using symlinks here ...) It is now called batctl and no

Re: [B.A.T.M.A.N.] battools sources in SVN?

2009-07-17 Thread Sven Eckelmann
Thanks for your fast clarification. I modified the pages you mentioned. The download page contains a link to the battools debian package. I presume this link is still valid and you wait for the first stable release before you get batctl in ? The link is valid and will be valid until squeeze is

Re: [B.A.T.M.A.N.] Bit of clarification - interfaces wrt54

2009-07-23 Thread Sven Eckelmann
I have installed kamikaze, xwrt, webif, batman webif - all ok. [many webif related questions] Who wrote the batman webif stuff? Maybe it is a good idea to ask him. Regards, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] Bit of clarification - interfaces wrt54

2009-07-23 Thread Sven Eckelmann
I have installed kamikaze, xwrt, webif, batman webif - all ok. [many webif related questions] Who wrote the batman webif stuff? Maybe it is a good idea to ask him. I searched for it and found it at http://x-wrt.googlecode.com/svn/trunk/package/webif-batman The files indicate that the author

Re: [B.A.T.M.A.N.] batman-adv packet.h license

2009-08-17 Thread Sven Eckelmann
Hello Andrew, this is fine with me, let's hear what marek thinks. BTW, there are excellent batman dissectors for wireshark, have you tried them already? The B.A.T.M.A.N. dissector is in Wireshark 1.2, but the B.A.T.M.A.N. advanced dissector is still waiting in

Re: [B.A.T.M.A.N.] batman-adv applying for an official Ethertype?

2009-08-18 Thread Sven Eckelmann
Hi, Has anybody investigated the process for applying for an approved Ethertype as needed by batman advanced? Yes, Simon did a small research some months ago. I found a few relevant documents: http://standards.ieee.org/regauth/ http://standards.ieee.org/regauth/ethertype/type-tut.html

Re: [B.A.T.M.A.N.] tcpdump patch for batman-adv

2009-08-19 Thread Sven Eckelmann
Attached is a patch for tcpdump which adds support for dissecting batman-adv messages. I think you've forgot to attach it. Best regards, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] List policy for none subscribers

2009-08-26 Thread Sven Eckelmann
As a side issue, i'm not sure batman-adv is the right name for mainline. In the context of the batman project, it makes sense, but from the perspective of mainline, this is the first version of batman, and maybe we cannot justify the advanced. It is the name of the protocol and it doesn't make

[B.A.T.M.A.N.] [PATCH] Remove compatibility code for pre 2.6 kernel versions

2009-09-12 Thread Sven Eckelmann
merge into linux compat.h and all appearances of LINUX_VERSION_CODE should be removed according to checkpatch.pl. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/device.c | 14 -- batman-adv-kernelland/main.c |8 2 files changed, 0 insertions

[B.A.T.M.A.N.] [PATCH] [batman-adv] Remove compatibility code for pre 2.6 kernel versions

2009-09-12 Thread Sven Eckelmann
merge into linux compat.h and all appearances of LINUX_VERSION_CODE should be removed according to checkpatch.pl. Signed-off-by: Sven Eckelmann sven.eckelm...@gmx.de --- batman-adv-kernelland/device.c | 14 -- batman-adv-kernelland/main.c |8 2 files changed, 0 insertions

Re: [B.A.T.M.A.N.] [PATCH] Remove compatibility code for pre 2.6 kernel versions

2009-09-12 Thread Sven Eckelmann
Sry, forgot [batman-adv] prefix in subject. Best regards, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] IP from MAC

2009-09-18 Thread Sven Eckelmann
Batman-adv does indeed seem like the way forward. So, on top of batman-adv, what solutions are there for IP address distribution? What might you try in a situation where there is no obvious central coordinator to put a DHCP server on? Just do a quick search for ip autoconfiguration/address

Re: [B.A.T.M.A.N.] mailing list migration (was: development flow)

2009-09-29 Thread Sven Eckelmann
[...] * We create the additional new list while keeping the old one. The new list is for the communication with the kernel developers. Opinions ? I think that having two lists would be a hassle and a mistake. To have two lists at one host might work, but one list at VGER and another

Re: [B.A.T.M.A.N.] batman-adv and TCP problem

2009-10-05 Thread Sven Eckelmann
a wrote: The ping with 1500 byte packets works. How can you send 1500 bytes packets with an mtu of 1476? Do the test with `ping -M do -s 1472 IP` (this should create an 1500 bytes packet and disables fragmentation). The three nodes are connected in this way: B1 --- batman --- GW1 --- EX1

Re: [B.A.T.M.A.N.] Fwd: Re: Debian extra modules

2009-10-06 Thread Sven Eckelmann
Marek Lindner wrote: That is a qood question. It is self-contained as well but I don't think it makes much sense bringing it into staging as it is just a hack. :) I'm not sure what the best path forward might be. Does it hurt keeping it the way it is ? Sry, doesn't want to upset you, but

  1   2   3   4   5   6   7   8   9   10   >