|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] libxl: add a specific MAC address type.
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1280941719 -3600
# Node ID d627f6b581b4346b5edb13d341e027b22c15f1a1
# Parent d0469b04527751f75b7f5749d59d5fc8759b1561
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>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
tools/libxl/libxl.h | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff -r d0469b045277 -r d627f6b581b4 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h Wed Aug 04 18:08:08 2010 +0100
+++ b/tools/libxl/libxl.h Wed Aug 04 18:08:39 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;
@@ -650,9 +652,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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] libxl: add a specific MAC address type.,
Xen patchbot-unstable <=
|
|
|
|
|