mirror of https://gitee.com/openkylin/libvirt.git
Introduce virMacAddr typedef
This commit is contained in:
parent
d8199033d6
commit
423bb74994
|
@ -28,7 +28,9 @@
|
|||
|
||||
# define VIR_MAC_BUFLEN 6
|
||||
# define VIR_MAC_PREFIX_BUFLEN 3
|
||||
# define VIR_MAC_STRING_BUFLEN VIR_MAC_BUFLEN * 3
|
||||
# define VIR_MAC_STRING_BUFLEN (VIR_MAC_BUFLEN * 3)
|
||||
|
||||
typedef unsigned char virMacAddr[VIR_MAC_BUFLEN];
|
||||
|
||||
int virMacAddrCompare(const char *mac1, const char *mac2);
|
||||
void virMacAddrFormat(const unsigned char *addr,
|
||||
|
|
Loading…
Reference in New Issue