Skip to content
Snippets Groups Projects
Commit 70335c46 authored by Andrew Deason's avatar Andrew Deason Committed by Marc-André Lureau
Browse files

qga/commands-posix: Fix listing ifaces for Solaris


The code for guest-network-get-interfaces needs a couple of small
adjustments for Solaris:

- The results from SIOCGIFHWADDR are documented as being in ifr_addr,
  not ifr_hwaddr (ifr_hwaddr doesn't exist on Solaris).

- The implementation of guest_get_network_stats is Linux-specific, so
  hide it under #ifdef CONFIG_LINUX. On non-Linux, we just won't
  provide network interface stats.

Signed-off-by: default avatarAndrew Deason <adeason@sinenomine.net>
Reviewed-by: default avatarMichal Privoznik <mprivozn@redhat.com>
Message-Id: <20220426195526.7699-4-adeason@sinenomine.net>
parent aec0730e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment