mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 20:03:37 +08:00
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
This commit is contained in:
parent
94410b78be
commit
dd5de373b7
3
net.c
3
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);
|
||||
|
Loading…
Reference in New Issue
Block a user