]> xenbits.xensource.com Git - libvirt.git/commit
portability: fix virNetDevSetMAC and virNetDevExists on BSD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Fri, 3 May 2013 13:35:20 +0000 (17:35 +0400)
committerEric Blake <eblake@redhat.com>
Fri, 10 May 2013 17:13:21 +0000 (11:13 -0600)
commit95934171fb243ff41a28f4fdd8c4656089f62720
tree3d8415a900222e44284c6bbfc88a7ba6bbc57f96
parentbfe7721d5064e00ac733157a4601da5042a29ab7
portability: fix virNetDevSetMAC and virNetDevExists on BSD

- provide virNetDevSetMAC() implementation based on SIOCSIFLLADDR
  ioctl.
- adjust virNetDevExists() to check for ENXIO error because
  FreeBSD throws it when device doesn't exist

Signed-off-by: Eric Blake <eblake@redhat.com>
configure.ac
src/util/virnetdev.c