diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-10 10:58:51 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-11 10:19:49 -0500 |
commit | 7e1b35b44c26fb0ede72613608e1a6fddabfac75 (patch) | |
tree | fd53be32c275267a446ba3e6c5fdfb49f9e57438 /qemu-config.c | |
parent | 7591c5c19951def341139c3874bdc7289f9813d1 (diff) | |
download | qemu-7e1b35b44c26fb0ede72613608e1a6fddabfac75.tar.gz qemu-7e1b35b44c26fb0ede72613608e1a6fddabfac75.tar.bz2 qemu-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 09ef481a44..8404f1b4be 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, },{ |