summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDmitry Krivenok <krivenok.dmitry@gmail.com>2013-10-21 12:08:44 +0400
committerStefan Hajnoczi <stefanha@redhat.com>2013-11-08 17:32:34 +0100
commitd60b20cf2ae6644b05159b9361cba83fb6c0cb84 (patch)
tree604f933282237e67d258dde4ad0896a8ea0fdc49 /include/net
parent964668b03d26f0b5baa5e5aff0c966f4fcb76e9e (diff)
downloadhqemu-d60b20cf2ae6644b05159b9361cba83fb6c0cb84.zip
hqemu-d60b20cf2ae6644b05159b9361cba83fb6c0cb84.tar.gz
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>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/eth.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/eth.h b/include/net/eth.h
index 1d48e06..b3273b8 100644
--- a/include/net/eth.h
+++ b/include/net/eth.h
@@ -84,7 +84,7 @@ typedef struct ip_pseudo_header {
} ip_pseudo_header;
/* IPv6 address */
-struct in6_addr {
+struct in6_address {
union {
uint8_t __u6_addr8[16];
} __in6_u;
@@ -105,8 +105,8 @@ struct ip6_header {
uint8_t ip6_un3_ecn; /* 2 bits ECN, top 6 bits payload length */
} ip6_un3;
} ip6_ctlun;
- struct in6_addr ip6_src; /* source address */
- struct in6_addr ip6_dst; /* destination address */
+ struct in6_address ip6_src; /* source address */
+ struct in6_address ip6_dst; /* destination address */
};
struct ip6_ext_hdr {
OpenPOWER on IntegriCloud