diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-02-08 15:06:47 +0200 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-02-12 13:15:18 +0200 |
commit | 5868c99da65610898202a5cc896e36e4835b5b87 (patch) | |
tree | d46fe2025ddc7f57616fa9902fa34a7e58dcf161 /server/spice.h | |
parent | 9eb0e4b5778689f8e97e85d51608a2f7d4d90189 (diff) | |
download | spice-5868c99da65610898202a5cc896e36e4835b5b87.tar.gz spice-5868c99da65610898202a5cc896e36e4835b5b87.tar.xz spice-5868c99da65610898202a5cc896e36e4835b5b87.zip |
server: support IPV6 addresses in channel events sent to qemu
RHBZ #788444
CC: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Diffstat (limited to 'server/spice.h')
-rw-r--r-- | server/spice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/spice.h b/server/spice.h index c582e6cd..73976557 100644 --- a/server/spice.h +++ b/server/spice.h @@ -54,6 +54,7 @@ typedef struct SpiceCoreInterface SpiceCoreInterface; #define SPICE_CHANNEL_EVENT_DISCONNECTED 3 #define SPICE_CHANNEL_EVENT_FLAG_TLS (1 << 0) +#define SPICE_CHANNEL_EVENT_FLAG_ADDR_EXT (1 << 1) typedef struct SpiceWatch SpiceWatch; typedef void (*SpiceWatchFunc)(int fd, int event, void *opaque); @@ -66,9 +67,14 @@ typedef struct SpiceChannelEventInfo { int type; int id; int flags; + /* deprecated, can't hold ipv6 addresses, kept for backward compatibility */ struct sockaddr laddr; struct sockaddr paddr; socklen_t llen, plen; + /* should be used if (flags & SPICE_CHANNEL_EVENT_FLAG_ADDR_EXT) */ + struct sockaddr_storage laddr_ext; + struct sockaddr_storage paddr_ext; + socklen_t llen_ext, plen_ext; } SpiceChannelEventInfo; struct SpiceCoreInterface { |