[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures a
From: |
Jes Sorensen |
Subject: |
Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants |
Date: |
Thu, 18 Nov 2010 12:06:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.6 |
On 11/16/10 02:15, Michael Roth wrote:
> Signed-off-by: Michael Roth <address@hidden>
> ---
> virtproxy.c | 136
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> virtproxy.h | 34 +++++++++++++++
> 2 files changed, 170 insertions(+), 0 deletions(-)
> create mode 100644 virtproxy.c
> create mode 100644 virtproxy.h
>
> diff --git a/virtproxy.c b/virtproxy.c
> new file mode 100644
> index 0000000..8f18d83
> --- /dev/null
> +++ b/virtproxy.c
> @@ -0,0 +1,136 @@
> +/*
> + * virt-proxy - host/guest communication layer
> + *
> + * Copyright IBM Corp. 2010
> + *
> + * Authors:
> + * Michael Roth <address@hidden>
> + *
> + * This work is licensed under the terms of the GNU GPL, version 2 or later.
> + * See the COPYING file in the top-level directory.
> + *
> + */
> +
> +#include "virtproxy.h"
> +
> +#define VP_SERVICE_ID_LEN 32 /* max length of service id string */
> +#define VP_PKT_DATA_LEN 1024 /* max proxied bytes per VPPacket */
> +#define VP_CONN_DATA_LEN 1024 /* max bytes conns can send at a time */
> +#define VP_MAGIC 0x1F374059
> +
> +/* listening fd, one for each service we're forwarding to remote end */
> +typedef struct VPOForward {
> + VPDriver *drv;
> + int listen_fd;
> + char service_id[VP_SERVICE_ID_LEN];
> + QLIST_ENTRY(VPOForward) next;
> +} VPOForward;
I am really not a fan of the typedefmeharder approach you are taking in
here, but others may disagree with me.
Cheers,
Jes
- [Qemu-devel] [RFC][PATCH v3 00/21] virtproxy: host/guest communication layer, Michael Roth, 2010/11/15
- [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Michael Roth, 2010/11/15
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants,
Jes Sorensen <=
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Michael Roth, 2010/11/18
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Anthony Liguori, 2010/11/18
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Jes Sorensen, 2010/11/18
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Anthony Liguori, 2010/11/18
- Re: [Qemu-devel] [RFC][PATCH v3 01/21] virtproxy: base data structures and constants, Jes Sorensen, 2010/11/18
[Qemu-devel] [RFC][PATCH v3 03/21] virtproxy: add debug functions for virtproxy core, Michael Roth, 2010/11/15