net: Provide VLAN client lookup helper

Introduce qemu_find_vlan_client_by_name for VLANClientState lookup based
on VLAN ID and client name. This is useful for monitor commands.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Jan Kiszka
2009-06-24 14:42:31 +02:00
committed by Anthony Liguori
parent 28432466f3
commit 1a60952027
3 changed files with 34 additions and 14 deletions

2
net.h
View File

@@ -51,7 +51,7 @@ struct VLANState {
int delivering;
};
VLANState *qemu_find_vlan(int id);
VLANState *qemu_find_vlan(int id, int allocate);
VLANClientState *qemu_new_vlan_client(VLANState *vlan,
const char *model,
const char *name,