From patchwork Wed Sep 24 21:59:39 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5341 Received: from john.hrz.tu-chemnitz.de (john.hrz.tu-chemnitz.de [134.109.132.2]) by open-mesh.net (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id m8OM4FEA026394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 25 Sep 2008 00:04:17 +0200 Received: from galba.hrz.tu-chemnitz.de ([134.109.133.156] helo=mailbox.hrz.tu-chemnitz.de) by john.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KicOa-0003ZZ-HE for b.a.t.m.a.n@open-mesh.net; Wed, 24 Sep 2008 23:59:40 +0200 Received: from vpnclient-011.hrz.tu-chemnitz.de ([134.109.232.11] helo=sven-desktop) by mailbox.hrz.tu-chemnitz.de with smtp (Exim 4.69) (envelope-from ) id 1KicOZ-0001io-Rh for b.a.t.m.a.n@open-mesh.net; Wed, 24 Sep 2008 23:59:40 +0200 Received: by sven-desktop (nbSMTP-1.00) for uid 1000 sven.eckelmann@gmx.de; Wed, 24 Sep 2008 23:59:41 +0200 (CEST) Date: Wed, 24 Sep 2008 23:59:39 +0200 From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Message-ID: <20080924215939.GA9277@sven-desktop.lazhur.ath.cx> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Scan-Signature: 1eda448be3d4df409c597eaefe2c9e50 Subject: [B.A.T.M.A.N.] [PATCH] Send TUNNEL_IP_REQUEST as response of TUNNEL_IP_REQUEST 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: Wed, 24 Sep 2008 22:04:17 -0000 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/modules/gateway.c b/batman/linux/modules/gateway.c index 154497e..9411575 100644 --- a/batman/linux/modules/gateway.c +++ b/batman/linux/modules/gateway.c @@ -405,7 +405,6 @@ static int packet_recv_thread(void *data) if(client_data != NULL) { - buffer[0] = TUNNEL_DATA; memcpy( &buffer[1], &client_data->vip_addr, sizeof( client_data->vip_addr ) ); iov.iov_base = buffer; diff --git a/batman/linux/modules/gateway24.c b/batman/linux/modules/gateway24.c index 585fe85..9b60fe4 100644 --- a/batman/linux/modules/gateway24.c +++ b/batman/linux/modules/gateway24.c @@ -385,7 +385,6 @@ static int packet_recv_thread(void *data) if(client_data != NULL) { - buffer[0] = TUNNEL_DATA; memcpy( &buffer[1], &client_data->vip_addr, sizeof( client_data->vip_addr ) ); iov.iov_base = buffer;