summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/virtio-net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/virtio-net.h b/hw/virtio-net.h
index e55119b612..235f1a9fa8 100644
--- a/hw/virtio-net.h
+++ b/hw/virtio-net.h
@@ -54,8 +54,8 @@
struct virtio_net_config
{
- /* The config defining mac address (6 bytes) */
- uint8_t mac[6];
+ /* The config defining mac address ($ETH_ALEN bytes) */
+ uint8_t mac[ETH_ALEN];
/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
uint16_t status;
} __attribute__((packed));