]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Virtio-net: Replace the hardcode 6 with defined ETN_ALEN
authorAmos Kong <akong@redhat.com>
Sun, 23 May 2010 02:49:10 +0000 (10:49 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 24 May 2010 20:18:23 +0000 (15:18 -0500)
hw/virtio-net.h:
    #define ETH_ALEN    6
ETH_ALEN was defined by commit 7967406801aa897fae83caad3278ac85a342adaa

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-net.h

index e55119b6124766d0c855d9ca95e7d190fe4f136f..235f1a9fa82810ff0d9e165ce1e47d103a6d3c73 100644 (file)
@@ -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));