aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-09 00:48:28 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-09 00:48:28 +0000
commitdd5de373b7e0747d7b89fde789abada9019f29cd (patch)
tree46bedb2218fbe6c4fdc64a026976ace4cb3116cd
parent94410b78bed7b986eacddd64fbef84d95aa995d5 (diff)
Make the set_link cmd handle multiple nics.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6256 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.c b/net.c
index fa9fa948cb..30ba71791c 100644
--- a/net.c
+++ b/net.c
@@ -1703,7 +1703,8 @@ int do_set_link(const char *name, const char *up_or_down)
for (vlan = first_vlan; vlan != NULL; vlan = vlan->next)
for (vc = vlan->first_client; vc != NULL; vc = vc->next)
if (strcmp(vc->name, name) == 0)
- break;
+ goto done;
+done:
if (!vc) {
term_printf("could not find network device '%s'", name);