diff options
author | Laszlo Ersek <lersek@redhat.com> | 2012-07-17 16:17:17 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-07-23 11:55:18 +0100 |
commit | bef8e8fe07e80821992f61d3775c6ac3766eee48 (patch) | |
tree | 3296361f99feef37c1b0432f5981c4105ee8577a /net/queue.c | |
parent | 094f15c5c80a835dbe69afa8534909c681d35856 (diff) | |
download | qemu-bef8e8fe07e80821992f61d3775c6ac3766eee48.tar.gz qemu-bef8e8fe07e80821992f61d3775c6ac3766eee48.tar.bz2 qemu-bef8e8fe07e80821992f61d3775c6ac3766eee48.zip |
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>
Diffstat (limited to 'net/queue.c')
0 files changed, 0 insertions, 0 deletions