Don't validate hardware address of batgat gate0 device
Commit Message
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(-)
Comments
On Friday, 12. September 2008 22:59:45 Sven Eckelmann wrote:
> 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.
I applied that one as well. Hope you also get some sleep while you are not
sending patches. :-)
Greetings,
Marek
@@ -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 ) );