]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
slirp: Give error message if hostfwd_add/remove for unrecognized vlan/stack
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Jun 2014 15:47:11 +0000 (16:47 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 18 Jul 2014 13:45:36 +0000 (17:45 +0400)
commitb739ef05dbaffcaade5e756a70f91cdf9c327154
tree9c84251b0460348ce9d35c359a98429f4496ee19
parent4d121a549869b93475ccf8b9a0d3e693011d1abb
slirp: Give error message if hostfwd_add/remove for unrecognized vlan/stack

If the user specified a (vlan ID, slirp stack name) tuple in a monitor
hostfwd_add/remove command and we can't find it, give the user an
error message rather than silently doing nothing.

This brings this error case in slirp_lookup() into line with the
other two.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
net/slirp.c