From patchwork Fri Sep 12 15:13:04 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5337 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by open-mesh.net (8.13.4/8.13.4/Debian-3sarge3) with SMTP id m8CFHe1x009966 for ; Fri, 12 Sep 2008 17:17:41 +0200 Received: (qmail invoked by alias); 12 Sep 2008 15:13:12 -0000 Received: from unknown (EHLO sven-desktop.localnet) [89.246.192.160] by mail.gmx.net (mp025) with SMTP; 12 Sep 2008 17:13:12 +0200 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX19H4Aw5h4BHyGiCzZn19OIvQsCHwaDEtgquUXA7EM yZ7SdQqo+G4hWE From: Sven Eckelmann To: "The list for a Better Approach To Mobile Ad-hoc Networking" Subject: Re: [B.A.T.M.A.N.] Batmand dies Date: Fri, 12 Sep 2008 17:13:04 +0200 User-Agent: KMail/1.10.1 (Linux/2.6.26-1-amd64; KDE/4.1.1; x86_64; ; ) References: <8c906fa50809120528g269e7831s979246af74b29427@mail.gmail.com> In-Reply-To: <8c906fa50809120528g269e7831s979246af74b29427@mail.gmail.com> Message-Id: <200809121713.12525.sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.47 X-BeenThere: b.a.t.m.a.n@open-mesh.net X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 15:17:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 12 September 2008 14:28:34 Gustavo Lindberg wrote: > 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 > [...] > > No iptables rules at all. All policy ACCEPT. > > BATGAT dont crash anymore, Because it never reaches the code section were the crash happened before. Please use the patch "Don't validate hardware address of batgat gate0 device" to reenable batgat on post 2.6.23 kernels. If you want to help to find the problem of the "original" crash, please apply the patch inside this mail. Best regards, Sven Eckelmann -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkjKhwgACgkQqQGwKVlMoDupNgCdE/WdiJk8MNUTTY1DiG880ZyM 48cAoKe+Eh6F9GPwJ4SEimVVOP8LQvOd =2xgS -----END PGP SIGNATURE----- From ee7bcbab9c9f20df8cbb6939804309bfe447f16f Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Fri, 12 Sep 2008 17:11:20 +0200 Subject: [PATCH] Add debug code to find nanostation2 batgat crashes. --- batman/linux/modules/gateway.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/batman/linux/modules/gateway.c b/batman/linux/modules/gateway.c index 11693e2..423e06b 100644 --- a/batman/linux/modules/gateway.c +++ b/batman/linux/modules/gateway.c @@ -395,7 +395,11 @@ static int packet_recv_thread(void *data) tmp_entry = kmalloc(sizeof(struct free_client_data), GFP_KERNEL); if(tmp_entry != NULL) { tmp_entry->gw_client = client_data; + printk("list_add_b; tmp_entry pointers (%p, %p, %p)\n", &tmp_entry->list, tmp_entry->list.prev, tmp_entry->list.next); + printk("list_add_b; free_client_list pointers (%p, %p, %p)\n", &free_client_list, free_client_list.prev, free_client_list.next); list_add(&tmp_entry->list,&free_client_list); + printk("list_add_a; tmp_entry pointers (%p, %p, %p)\n", &tmp_entry->list, tmp_entry->list.prev, tmp_entry->list.next); + printk("list_add_a; free_client_list pointers (%p, %p, %p)\n", &free_client_list, free_client_list.prev, free_client_list.next); } else DBG("can't add free gw_client to free list"); @@ -657,7 +661,11 @@ static struct gw_client *get_ip_addr(struct sockaddr_in *client_addr) list_for_each_entry_safe(entry, next, &free_client_list, list) { DBG("use free client from list"); gw_client = entry->gw_client; + printk("free client_b; entry pointers (%p, %p, %p)\n", &entry->list, entry->list.prev, entry->list.next); + printk("free client_b; free_client_list pointers (%p, %p, %p)\n", &free_client_list, free_client_list.prev, free_client_list.next); list_del(&entry->list); + printk("free client_a; entry pointers (%p, %p, %p)\n", &entry->list, entry->list.prev, entry->list.next); + printk("free client_a; free_client_list pointers (%p, %p, %p)\n", &free_client_list, free_client_list.prev, free_client_list.next); kfree(entry); break; } -- 1.6.0.1