diff options
author | Amos Kong <akong@redhat.com> | 2010-05-23 10:49:10 +0800 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-24 15:18:23 -0500 |
commit | ebbeb789351a69d58b0da526fcb77bc82d18da7b (patch) | |
tree | 3bd399cf2a74c549911877993aff6b84e5040430 /hw/virtio-net.h | |
parent | 111f8ec99b67aeef152c71a5db12f0c0cb2422bd (diff) |
Virtio-net: Replace the hardcode 6 with defined ETN_ALEN
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>
Diffstat (limited to 'hw/virtio-net.h')
-rw-r--r-- | hw/virtio-net.h | 4 |
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)); |