net: disallow to specify multicast MAC address
commitd60b20cf2ae6644b05159b9361cba83fb6c0cb84
authorDmitry Krivenok <krivenok.dmitry@gmail.com>
Mon, 21 Oct 2013 08:08:44 +0000 (21 12:08 +0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 8 Nov 2013 16:32:34 +0000 (8 17:32 +0100)
tree604f933282237e67d258dde4ad0896a8ea0fdc49
parent964668b03d26f0b5baa5e5aff0c966f4fcb76e9e
net: disallow to specify multicast MAC address

[Assigning a multicast MAC address to a NIC leads to confusing behavior.
Reject multicast MAC addresses so users are alerted to their error
straight away.

The "net/eth.h" in6_addr rename prevents a name collision with
<netinet/in.h> on Linux.
-- Stefan]

Signed-off-by: Dmitry V. Krivenok <krivenok.dmitry@gmail.com>
Reviewed-by: Amos Kong <kongjianjun@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/net/eth.h
net/net.c