diff options
author | Andreas Färber <afaerber@suse.de> | 2012-08-29 18:42:56 +0200 |
---|---|---|
committer | Yury Usishchev <y.usishchev@samsung.com> | 2014-12-10 13:48:36 +0300 |
commit | f623468b26a9ae0e6c3f2ef06b688177050483d7 (patch) | |
tree | 4320f567b4b3130e15bd168a31874861a537193a /vl.c | |
parent | ffe97351b35bc25f2c00c8d97b888b34be3d20bd (diff) | |
download | qemu-f623468b26a9ae0e6c3f2ef06b688177050483d7.tar.gz qemu-f623468b26a9ae0e6c3f2ef06b688177050483d7.tar.bz2 qemu-f623468b26a9ae0e6c3f2ef06b688177050483d7.zip |
slirp: -nooutgoing
TBD (from SUSE Studio team)
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -164,6 +164,7 @@ const char *vnc_display; int acpi_enabled = 1; int no_hpet = 0; int fd_bootchk = 1; +int slirp_nooutgoing = 0; static int no_reboot; int no_shutdown = 0; int cursor_hide = 1; @@ -3234,6 +3235,14 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_singlestep: singlestep = 1; break; + case QEMU_OPTION_nooutgoing: + slirp_nooutgoing = inet_addr(optarg); + if (slirp_nooutgoing == INADDR_NONE) { + printf("Invalid address: %s.\nOnly addresses of the format " + "xxx.xxx.xxx.xxx are supported.\n", optarg); + exit(1); + } + break; case QEMU_OPTION_S: autostart = 0; break; |