[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4801A85F.8090906@trash.net>
Date: Sun, 13 Apr 2008 08:29:51 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Paul Bolle <pebolle@...cali.nl>
CC: netdev@...r.kernel.org, isdn4linux@...tserv.isdn4linux.de,
Jeff Garzik <jgarzik@...hat.com>
Subject: Re: [PATCH] [NET] [ISDN]: Do not validate ISDN net device address
prior to interface-up
Paul Bolle wrote:
> From: Paul Bolle <pebolle@...cali.nl>
>
> Commit bada339 (Validate device addr prior to interface-up) caused a regression
> in the ISDN network code, see: http://bugzilla.kernel.org/show_bug.cgi?id=9923
> The trivial fix is to remove the pointer to eth_validate_addr() in the
> net_device struct in isdn_net_init().
>
> Signed-off-by: Paul Bolle <pebolle@...cali.nl>
> ---
> Please note that I hardly know what the device address validation is good for.
> Neither do I know much about the ISDN network code or why the device address
> validation fails for ISDN interfaces. This patch however basically reverts
> commit bada339 just for the ISDN network code. I can't think of any side
> effects.
The patch looks fine. is_valid_ether_addr() fails because the ISDN
device's address is 00:00:00:00:00:00 at this point.
> http://bugzilla.kernel.org/show_bug.cgi?id=9923 would have been much easier to
> track down if eth_validate_addr() would somehow complain aloud if an address
> is invalid. Shouldn't it make at least some noise?
I guess it should return -EADDRNOTAVAIL similar to eth_mac_addr()
when validation fails.
Signed-off-by: Patrick McHardy <kaber@...sh.net>
View attachment "x" of type "text/plain" (379 bytes)
Powered by blists - more mailing lists