1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00
libvirt/tests/bhyveargv2xmlmock.c

28 lines
562 B
C
Raw Normal View History

#include <config.h>
#include "virnetdev.h"
#include "internal.h"
#include "util/viruuid.h"
#define VIR_FROM_THIS VIR_FROM_BHYVE
void
virMacAddrGenerate(const unsigned char prefix[VIR_MAC_PREFIX_BUFLEN],
virMacAddrPtr addr)
{
addr->addr[0] = prefix[0];
addr->addr[1] = prefix[1];
addr->addr[2] = prefix[2];
addr->addr[3] = 0;
addr->addr[4] = 0;
addr->addr[5] = 0;
}
int
virUUIDGenerate(unsigned char *uuid)
{
if (virUUIDParse("c7a5fdbd-edaf-9455-926a-d65c16db1809", uuid) < 0)
return -1;
return 0;
}