mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
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:
parent
28432466f3
commit
1a60952027
3 changed files with 34 additions and 14 deletions
2
net.h
2
net.h
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue