diff options
author | 2009-09-10 10:58:51 +0200 | |
---|---|---|
committer | 2009-09-11 10:19:49 -0500 | |
commit | 7e1b35b44c26fb0ede72613608e1a6fddabfac75 (patch) | |
tree | fd53be32c275267a446ba3e6c5fdfb49f9e57438 /qemu-config.c | |
parent | convert mux chardev to QemuOpts. (diff) | |
download | qemu-kvm-7e1b35b44c26fb0ede72613608e1a6fddabfac75.tar.gz qemu-kvm-7e1b35b44c26fb0ede72613608e1a6fddabfac75.tar.bz2 qemu-kvm-7e1b35b44c26fb0ede72613608e1a6fddabfac75.zip |
convert udp chardev to QemuOpts.
While being at it: create a new inet_dgram_opts() function for udp setup,
so udp can handle IPv6 now.
new cmd line syntax:
-chardev udp,id=name,host=remotehost,port=remoteport,\
localaddr=bindaddr,localport=bindport
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r-- | qemu-config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c index 09ef481a4..8404f1b4b 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -92,6 +92,12 @@ QemuOptsList qemu_chardev_opts = { .name = "port", .type = QEMU_OPT_STRING, },{ + .name = "localaddr", + .type = QEMU_OPT_STRING, + },{ + .name = "localport", + .type = QEMU_OPT_STRING, + },{ .name = "to", .type = QEMU_OPT_NUMBER, },{ |