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
..
2012-02-01 16:24:54 -06:00
2009-10-30 08:39:26 -05:00
2009-10-30 08:39:26 -05:00
2010-09-07 20:27:33 +03:00
2010-10-03 06:31:41 +00:00
2012-07-23 11:55:18 +01:00
2012-07-23 11:55:18 +01:00
2012-07-23 11:55:18 +01:00
2012-07-23 11:55:18 +01:00