summaryrefslogtreecommitdiffstats
path: root/include/linux/if_ether.h
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2008-02-23 19:54:36 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-23 19:54:36 -0800
commit1840bb13c22f5b8fd2e242e36c8d6ea3f312be67 (patch)
tree3bf1c4276a409b2984607b683c6d8d44fccaeed7 /include/linux/if_ether.h
parent759afc31332aed66bde20743e7e2d1e47b08aaeb (diff)
downloadop-kernel-dev-1840bb13c22f5b8fd2e242e36c8d6ea3f312be67.zip
op-kernel-dev-1840bb13c22f5b8fd2e242e36c8d6ea3f312be67.tar.gz
[RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK
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 not checked for now as the actual attribute length is used when copying the address to the netdevice structure. It might make sense to report an error if less than addr_len bytes are provided but enforcing this might break drivers trying to be smart with not transmitting all zero addresses. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_ether.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud