|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 2 of 8] libxl: add a specific MAC address type
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1280829528 -3600
# Node ID 81cc53cbda33b5cd4c498c41b3eafd73f16b15e1
# Parent cafba5708f95cf85f55bdca322d2ff6b6769bcba
libxl: add a specific MAC address type.
Slightly less error prone and also more amenable to autogeneration.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r cafba5708f95 -r 81cc53cbda33 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Tue Aug 03 10:58:48 2010 +0100
+++ b/tools/libxl/libxl.h Tue Aug 03 10:58:48 2010 +0100
@@ -23,6 +23,8 @@
#include <sys/wait.h> /* for pid_t */
typedef uint8_t libxl_uuid[16];
+
+typedef uint8_t libxl_mac[6];
typedef struct {
libxl_uuid uuid;
@@ -270,7 +272,7 @@ typedef struct {
int devid;
int mtu;
char *model;
- uint8_t mac[6];
+ libxl_mac mac;
struct in_addr ip;
char *bridge;
char *ifname;
@@ -280,8 +282,8 @@ typedef struct {
typedef struct {
int devid;
- uint8_t front_mac[6];
- uint8_t back_mac[6];
+ libxl_mac front_mac;
+ libxl_mac back_mac;
uint32_t backend_domid;
uint32_t domid;
uint32_t trusted:1;
@@ -498,7 +500,7 @@ typedef struct {
int devid;
int state;
char *script;
- uint8_t mac[6];
+ libxl_mac mac;
int evtch;
int rref_tx;
int rref_rx;
@@ -654,9 +656,9 @@ typedef struct {
uint32_t frontend_id;
int devid;
int state;
- uint8_t mac[6];
+ libxl_mac mac;
int trusted;
- uint8_t back_mac[6];
+ libxl_mac back_mac;
int filter_mac;
} libxl_net2info;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|