mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qemu-ga: add guest-network-get-interfaces command
This command returns an array of: [ifname, hwaddr, [ipaddr, ipaddr_family, prefix] ] for each interface in the system. Currently, only IPv4 and IPv6 are supported. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f54603b6aa
commit
3424fc9f16
3 changed files with 246 additions and 0 deletions
|
@ -263,6 +263,12 @@ void qmp_guest_suspend_hybrid(Error **err)
|
|||
error_set(err, QERR_UNSUPPORTED);
|
||||
}
|
||||
|
||||
GuestNetworkInterfaceList *qmp_guest_network_get_interfaces(Error **err)
|
||||
{
|
||||
error_set(err, QERR_UNSUPPORTED);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* register init/cleanup routines for stateful command groups */
|
||||
void ga_command_state_init(GAState *s, GACommandState *cs)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue