[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/4] Add device index to 'info network' output
From: |
Mark McLoughlin |
Subject: |
[Qemu-devel] [PATCH 2/4] Add device index to 'info network' output |
Date: |
Tue, 9 Dec 2008 10:55:41 +0000 |
The 'set_link' command requires the user to specify a device index.
Signed-off-by: Mark McLoughlin <address@hidden>
---
net.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net.c b/net.c
index 250519c..35ec501 100644
--- a/net.c
+++ b/net.c
@@ -1557,9 +1557,10 @@ void do_info_network(void)
VLANClientState *vc;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
+ int i = 0;
term_printf("VLAN %d devices:\n", vlan->id);
for(vc = vlan->first_client; vc != NULL; vc = vc->next)
- term_printf(" %s\n", vc->info_str);
+ term_printf(" %d %s\n", i++, vc->info_str);
}
}
--
1.5.4.3
- [Qemu-devel] [PATCH 0/4] Add nic link up/down emulation to e1000, Mark McLoughlin, 2008/12/09
- [Qemu-devel] [PATCH 1/4] Add 'set_link' monitor command, Mark McLoughlin, 2008/12/09
- [Qemu-devel] Re: [PATCH 1/4] Add 'set_link' monitor command, Anthony Liguori, 2008/12/09
- [Qemu-devel] Re: [PATCH 1/4] Add 'set_link' monitor command, Mark McLoughlin, 2008/12/12
- [Qemu-devel] [PATCH 1/5] Add a model string to VLANClientState, Mark McLoughlin, 2008/12/12
- [Qemu-devel] [PATCH 2/5] Assign a name to each VLAN client, Mark McLoughlin, 2008/12/12
- [Qemu-devel] [PATCH 3/5] Fixup info_str formatting, Mark McLoughlin, 2008/12/12
- [Qemu-devel] [PATCH 4/5] Add qemu_format_nic_info_str(), Mark McLoughlin, 2008/12/12
- [Qemu-devel] [PATCH 5/5] Add a -net name=foo parameter, Mark McLoughlin, 2008/12/12