mirror of https://github.com/xemu-project/xemu.git
Virtio-net: Replace the hardcode 6 with defined ETN_ALEN
hw/virtio-net.h:
#define ETH_ALEN 6
ETH_ALEN was defined by commit 7967406801
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
111f8ec99b
commit
ebbeb78935
|
@ -54,8 +54,8 @@
|
||||||
|
|
||||||
struct virtio_net_config
|
struct virtio_net_config
|
||||||
{
|
{
|
||||||
/* The config defining mac address (6 bytes) */
|
/* The config defining mac address ($ETH_ALEN bytes) */
|
||||||
uint8_t mac[6];
|
uint8_t mac[ETH_ALEN];
|
||||||
/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
|
/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */
|
||||||
uint16_t status;
|
uint16_t status;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
Loading…
Reference in New Issue