From patchwork Fri Sep 12 14:59:45 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 5334 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 m8CF475V007704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 12 Sep 2008 17:04:09 +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 1KeA7c-0000dS-Mu for b.a.t.m.a.n@open-mesh.net; Fri, 12 Sep 2008 16:59:44 +0200 Received: from vpnclient-004.hrz.tu-chemnitz.de ([134.109.232.4] helo=sven-desktop) by mailbox.hrz.tu-chemnitz.de with smtp (Exim 4.69) (envelope-from ) id 1KeA7c-0003hp-DV for b.a.t.m.a.n@open-mesh.net; Fri, 12 Sep 2008 16:59:44 +0200 Received: by sven-desktop (nbSMTP-1.00) for uid 1000 sven.eckelmann@gmx.de; Fri, 12 Sep 2008 16:59:45 +0200 (CEST) Date: Fri, 12 Sep 2008 16:59:45 +0200 From: Sven Eckelmann To: b.a.t.m.a.n@open-mesh.net Message-ID: <20080912145945.GA27083@sven-desktop.lazhur.ath.cx> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Scan-Signature: 35a077d52d8eb09d911074c20d374ce4 Subject: [B.A.T.M.A.N.] [PATCH] Don't validate hardware address of batgat gate0 device 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:04:09 -0000 linux v2.6.24-rc1-1-gbada339 introduces a check for valid ethernet mac address. We don't have such a valid one because it is just a virtual gateway device which doesn't need such thing. To disable the eth_validate_addr check we can override the function pointer inside the netdevice structure or just setting it to NULL to disable it at all. --- batman/linux/modules/gateway.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/batman/linux/modules/gateway.c b/batman/linux/modules/gateway.c index d7af197..11693e2 100644 --- a/batman/linux/modules/gateway.c +++ b/batman/linux/modules/gateway.c @@ -527,6 +527,9 @@ static void bat_netdev_setup( struct net_device *dev ) #endif dev->mtu = 1471; dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST; +#ifdef HAVE_VALIDATE_ADDR + dev->validate_addr = NULL; +#endif priv = netdev_priv( dev ); memset( priv, 0, sizeof( struct gate_priv ) );