Skip to content
Snippets Groups Projects
Commit ebbeb789 authored by Amos Kong's avatar Amos Kong Committed by Anthony Liguori
Browse files

Virtio-net: Replace the hardcode 6 with defined ETN_ALEN


hw/virtio-net.h:
    #define ETH_ALEN    6
ETH_ALEN was defined by commit 79674068

Signed-off-by: default avatarAmos Kong <akong@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 111f8ec9
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment