SHA256
1
0
forked from pool/libvirt
libvirt/AF_PACKET.patch
James Fehlig f38c7dff24 - Update to libvirt 1.0.0
- virNodeGetCPUMap: Define public API
  - Add systemd journal support
  - Add a qemu capabilities cache manager
  - USB migration support
  - various improvement and fixes when using QMP QEmu interface
  - Support for Xen 4.2 in legacy xen driver
  - Lot of localization enhancements

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=237
2012-11-02 17:55:26 +00:00

27 lines
1.0 KiB
Diff

Index: libvirt-1.0.0/src/util/virnetdev.c
===================================================================
--- libvirt-1.0.0.orig/src/util/virnetdev.c
+++ libvirt-1.0.0/src/util/virnetdev.c
@@ -81,7 +81,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-1.0.0/src/util/virnetdevbridge.c
===================================================================
--- libvirt-1.0.0.orig/src/util/virnetdevbridge.c
+++ libvirt-1.0.0/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