qemu/net
Laszlo Ersek bef8e8fe07 convert net_init_socket() to NetClientOptions
I "reverse engineered" the following permissions between the -socket
sub-options:

             fd  listen  connect  mcast  udp | localaddr
  fd         x   .       .        .      .   | .
  listen     .   x       .        .      .   | .
  connect    .   .       x        .      .   | .
  mcast      .   .       .        x      .   | x
  udp        .   .       .        .      x   | x
  -------------------------------------------+
  localaddr  .   .       .        x      x     x

I transformed the code accordingly. The real fix would be to embed "fd",
"listen", "connect", "mcast" and "udp" in a separate union. However
OptsVisitor's enum parser only supports the type=XXX QemuOpt instance as
union discriminator.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2012-07-23 11:55:18 +01:00
..
checksum.c Change license from GPLv2 to GPLv2+ 2012-02-01 16:24:54 -06:00
checksum.h
dump.c convert net_init_dump() to NetClientOptions 2012-07-23 11:55:18 +01:00
dump.h convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
Makefile.objs build: move net/ objects to nested Makefile.objs 2012-06-07 09:21:13 +02:00
queue.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
queue.h
slirp.c convert net_init_slirp() to NetClientOptions 2012-07-23 11:55:18 +01:00
slirp.h convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
socket.c convert net_init_socket() to NetClientOptions 2012-07-23 11:55:18 +01:00
socket.h convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
tap-aix.c
tap-bsd.c do not include <libutil.h> needlessly or if it doesn't exist 2012-06-09 10:30:08 +00:00
tap-haiku.c
tap-linux.c net: tap-linux: Fix unhelpful error message 2011-11-01 06:23:48 +00:00
tap-linux.h
tap-solaris.c fix typo: delete redundant semicolon 2011-12-06 09:56:41 +00:00
tap-win32.c convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
tap.c convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
tap.h convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
util.c
util.h
vde.c convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00
vde.h convert net_client_init() to OptsVisitor 2012-07-23 11:55:18 +01:00