Re: [RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK

2008-02-23 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Fri, 22 Feb 2008 14:33:26 +0100 > Thomas Graf wrote: > > 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. > > OK

Re: [RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK

2008-02-22 Thread Patrick McHardy
Thomas Graf wrote: RTM_NEWLINK allows for already existing links to be modified. For this purpose do_setlink() is called which expects address attributes with a payload length of at least dev->addr_len. This patch adds the necessary validation for the RTM_NEWLINK case. The address length for lin

[RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK

2008-02-22 Thread Thomas Graf
RTM_NEWLINK allows for already existing links to be modified. For this purpose do_setlink() is called which expects address attributes with a payload length of at least dev->addr_len. This patch adds the necessary validation for the RTM_NEWLINK case. The address length for links to be created is n