[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080222133135.GC20815@postel.suug.ch>
Date: Fri, 22 Feb 2008 14:31:35 +0100
From: Thomas Graf <tgraf@...g.ch>
To: Patrick McHardy <kaber@...sh.net>
Cc: davem@...emloft.net, netdev@...r.kernel.org
Subject: Re: [RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK
* Patrick McHardy <kaber@...sh.net> 2008-02-22 14:05
> Minor nitpick: it would be more logical to put this in the
>
> if (dev) {
> ...
>
> branch a bit below since thats the only path that leads to
> do_setlink(). That would also allow to remove the
> if (dev) check from validate_linkmsg().
I knew this question would come up :-)
The reason I did it this way is to keep validate_linkmsg() generic
and make it possible to put validation code which must also apply
to new links (dev==NULL) into that function.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists