Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
build: fix build for Debian 9 and Debian 10
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
virtio.h
diff --git
a/src/vnet/devices/virtio/virtio.h
b/src/vnet/devices/virtio/virtio.h
index
f1eaa07
..
b00e1ec
100644
(file)
--- a/
src/vnet/devices/virtio/virtio.h
+++ b/
src/vnet/devices/virtio/virtio.h
@@
-129,7
+129,15
@@
typedef struct
/* error */
clib_error_t *error;
- u8 mac_addr[6];
+ union
+ {
+ struct
+ {
+ u32 mac_addr32;
+ u16 mac_addr16;
+ };
+ u8 mac_addr[6];
+ };
union
{
struct /* tun/tap interface */