forked from pool/libvirt
c77ae44d06
- Add support for the suspend event - Add support for event tray moved of removable disks - qemu: Support numad - cpustats: API, improvements and qemu support - qemu: support type='hostdev' network devices at domain start - Introduce virDomainPMWakeup API - network: support Open vSwitch - snapshot improvements OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=204
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
Index: libvirt-0.9.11/src/util/virnetdev.c
|
|
===================================================================
|
|
--- libvirt-0.9.11.orig/src/util/virnetdev.c
|
|
+++ libvirt-0.9.11/src/util/virnetdev.c
|
|
@@ -85,7 +85,7 @@ static int virNetDevSetupControlFull(con
|
|
static int virNetDevSetupControl(const char *ifname,
|
|
struct ifreq *ifr)
|
|
{
|
|
- return virNetDevSetupControlFull(ifname, ifr, AF_PACKET, SOCK_DGRAM);
|
|
+ return virNetDevSetupControlFull(ifname, ifr, AF_INET, SOCK_STREAM);
|
|
}
|
|
#endif
|
|
|
|
Index: libvirt-0.9.11/src/util/virnetdevbridge.c
|
|
===================================================================
|
|
--- libvirt-0.9.11.orig/src/util/virnetdevbridge.c
|
|
+++ libvirt-0.9.11/src/util/virnetdevbridge.c
|
|
@@ -84,7 +84,7 @@ static int virNetDevSetupControlFull(con
|
|
static int virNetDevSetupControl(const char *ifname,
|
|
struct ifreq *ifr)
|
|
{
|
|
- return virNetDevSetupControlFull(ifname, ifr, AF_PACKET, SOCK_DGRAM);
|
|
+ return virNetDevSetupControlFull(ifname, ifr, AF_INET, SOCK_STREAM);
|
|
}
|
|
#endif
|
|
|