|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] [6247] Add 'set_link' monitor command (Mark McLoughlin) |
Date: | Thu, 08 Jan 2009 18:41:23 -0600 |
User-agent: | Thunderbird 2.0.0.14 (X11/20080421) |
Edgar E. Iglesias wrote:
Hello, I ran into an issue here with the etrax boards. set_link does not handle multiple nics on the same vlan I'd like to apply the following soon unless someone objects.
Looks good to me. Regards, Anthony Liguori
Best regards diff --git a/net.c b/net.c index fa9fa94..0bb38e4 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);
[Prev in Thread] | Current Thread | [Next in Thread] |