Skip to contentSkip to conversation

BATGAT

B.A.T.M.A.N. Gustavo Lindberg 5 participants 9 messages Sep 10, 2008 – Sep 12, 2008

lore
Share & tools
lore
#0 lore raw

Hi all !

How to disable batgat ? It necessary recompiling batmand or is enough to unload batgat module ?
I do that and batmand load but the gw never more assign ip trough the tunnel iface....

TIA

#1 lore raw

Hello Gustavo,

batman works fine without the batgat kernel module. The batgat kernel module will only accelerate the gateway functionality, but batman can do without it. If you don't want it, don't insmod batgat. Batman will detect it at runtime, no need to recompile.
The gateway should still work, if it doesn't then you probably found a bug.

best regards,
Simon

Quoted 13 lines · Gustavo Lindberg

Hi all !

How to disable batgat ? It necessary recompiling batmand or is enough to unload batgat module ?
I do that and batmand load but the gw never more assign ip trough the tunnel iface....

TIA

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#2 lore raw

Thanks for your answer.
I am experimenting very frustrating issues with batgat. Currently i am testing the last trunk of kamikaze on ubiquity NS2. Batmand dies quietly with batgat loaded. I will prove the last kamikaze on two NS2 without batgat and inform the bug if this error happen again.
Regards.
Gustavo.

2008/9/10 Simon Wunderlich <[email protected]>

Quoted 44 lines

Hello Gustavo,

batman works fine without the batgat kernel module. The batgat kernel module will only accelerate the gateway functionality, but batman can do without it. If you don't want it, don't insmod batgat. Batman will detect it
at runtime, no need to recompile.
The gateway should still work, if it doesn't then you probably found a bug.

best regards,
Simon

Quoted 5 lines · Gustavo Lindberg

Hi all !

How to disable batgat ? It necessary recompiling batmand or is enough to unload batgat module ?
I do that and batmand load but the gw never more assign ip trough the

tunnel

Quoted 8 lines

iface....

TIA

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIyCIZrzg/fFk7axYRAmBPAJ0VqKfKf2fajACbdC5q8Vcx4OCpdwCg9Urm XyHa09aZEEq1ghIW3LceQqM=
=Adqg
-----END PGP SIGNATURE-----

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#3 lore raw
Quoted 4 lines · On Thursday, 11. September 2008 05:00:59 Gustavo Lindberg wrote:

I am experimenting very frustrating issues with batgat. Currently i am testing the last trunk of kamikaze on ubiquity NS2. Batmand dies quietly with batgat loaded. I will prove the last kamikaze on two NS2 without batgat and inform the bug if this error happen again.

I think it would be intersting to find out why batmand dies. May be you could produce a core dump ?
Indeed, we have a problem if the batman daemon dies without telling the module. What about adding a keep alive + timeout in the module ?

Greetings,
Marek

#4 lore raw

http://pastebin.com/m1677070a

batgat crashed out, and unloaded without batgat batman routes never stay

using openwrt trunk, so whats the best solution

Quoted 19 lines · Marek Lindner
Quoted 4 lines · On Thursday, 11. September 2008 05:00:59 Gustavo Lindberg wrote:

I am experimenting very frustrating issues with batgat. Currently i am testing the last trunk of kamikaze on ubiquity NS2. Batmand dies quietly with batgat loaded. I will prove the last kamikaze on two NS2 without batgat and inform the bug if this error happen again.

I think it would be intersting to find out why batmand dies. May be you could
produce a core dump ?
Indeed, we have a problem if the batman daemon dies without telling the module. What about adding a keep alive + timeout in the module ?

Greetings,
Marek
_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#5 lore raw
Quoted 3 lines · On Thursday, 11. September 2008 12:22:42 Outback Dingo wrote:

http://pastebin.com/m1677070a

batgat crashed out, and unloaded without batgat batman routes never stay

That does not look like a crash ?! Is your log related to the issue mentioned by the original reporter ? He said his batmand crashes and the kernel module is still alive.

To debug your issue a tcpdump on UDP port 4306 would help. So we can see what packages are sent forth and back.

Greetings,
Marek

#6 lore raw
In reply to Marek Lindner

I just tried the last openwrt-kamikaze trunk with the svn v1109 of batman on ubnt NS2. Batmand die as follows:

 root@OpenWrt:~# batmand -d 4 -g 5000 ath2
WARNING: You are using the unstable batman branch. If you are interested in
*using* batman get the latest stable release !
Interface activated: ath2
Using interface ath2 with address 5.0.0.1 and broadcast address
5.255.255.255
B.A.T.M.A.N. 0.3-beta (compatibility version 5)
[        80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address
[        80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address

dmesg output:

Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3 gpio-buttons driver version 0.1.1
batgat: [batgat_ioctl:224] name gate0 index 7
batgat: [batgat_ioctl:244] disconnect daemon
batgat: [packet_recv_thread:508] thread stop
batgat: [batgat_ioctl:256] thread shutdown
batgat: [batgat_ioctl:263] gate shutdown
batgat: [batgat_ioctl:277] device unregistered successfully
batgat: [batgat_ioctl:224] name gate0 index 8
batgat: [batgat_ioctl:244] disconnect daemon
batgat: [packet_recv_thread:508] thread stop
batgat: [batgat_ioctl:256] thread shutdown
batgat: [batgat_ioctl:263] gate shutdown
batgat: [batgat_ioctl:277] device unregistered successfully
batgat: [batgat_ioctl:224] name gate0 index 9
batgat: [batgat_ioctl:244] disconnect daemon
batgat: [packet_recv_thread:508] thread stop
batgat: [batgat_ioctl:256] thread shutdown
batgat: [batgat_ioctl:263] gate shutdown
batgat: [batgat_ioctl:277] device unregistered successfully
batgat: [batgat_ioctl:224] name gate0 index 10
batgat: [batgat_ioctl:244] disconnect daemon
batgat: [packet_recv_thread:508] thread stop
batgat: [batgat_ioctl:256] thread shutdown
batgat: [batgat_ioctl:263] gate shutdown
batgat: [batgat_ioctl:277] device unregistered successfully root@OpenWrt:~#
No iptables rules at all. All policy ACCEPT.

BATGAT dont crash anymore, Keep live.

Greetings.
Gustavo.

2008/9/11 Marek Lindner <[email protected]>

Quoted 19 lines · On Thursday, 11. September 2008 05:00:59 Gustavo Lindberg wrote:
Quoted 4 lines

I am experimenting very frustrating issues with batgat. Currently i am testing the last trunk of kamikaze on ubiquity NS2. Batmand dies quietly with batgat loaded. I will prove the last kamikaze on two NS2 without batgat and inform the bug if this error happen again.

I think it would be intersting to find out why batmand dies. May be you could
produce a core dump ?
Indeed, we have a problem if the batman daemon dies without telling the module. What about adding a keep alive + timeout in the module ?

Greetings,
Marek
_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n

#7 lore raw
Quoted 1 line · On Friday, 12. September 2008 06:18:58 Gustavo Lindberg wrote:

B.A.T.M.A.N. 0.3-beta (compatibility version 5)

It seems you are using an older version of the daemon together with the kernel module. "0.3-beta" may not be compatible with the latest kernel module.

Quoted 4 lines

[ 80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address
[ 80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address

It does not crash here but exits because it can't set the IP address.

Please update to the latest versions first.

Greetings,
Marek

#8 lore raw
Quoted 10 lines · On Friday 12 September 2008 04:41:33 Marek Lindner wrote:

On Friday, 12. September 2008 06:18:58 Gustavo Lindberg wrote:
[...]

Quoted 4 lines

[ 80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address
[ 80] Error - can't set IFFLAGS for gate0: Cannot assign requested
address

It does not crash here but exits because it can't set the IP address.

Please update to the latest versions first.

It is a bug "introduced" by linux v2.6.24-rc1-1-gbada339. I will send a patch after I've done some other stuff.

Best regards,
Sven Eckelmann