    echo "CONFIG_ADLIB=yes" >> $config_mak
 diff -Naur orig-qemu-0.9.1/dyngen-exec.h mod-qemu-0.9.1/dyngen-exec.h
 --- orig-qemu-0.9.1/dyngen-exec.h	2008-01-06 19:38:42.000000000 +0000
-+++ mod-qemu-0.9.1/dyngen-exec.h	2008-09-26 07:33:18.468203816 +0000
++++ mod-qemu-0.9.1/dyngen-exec.h	2008-11-30 09:35:06.915417136 +0000
 @@ -32,6 +32,7 @@
     host headers do not allow that. */
  #include <stddef.h>

 #if !defined(_WIN32)
 
 typedef struct TAPState {
@@ -4733,6 +4976,14 @@
         ret = net_slirp_init(vlan);
     } else
 #endif

+#define ADAPTER_KEY "SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
+#define NETWORK_CONNECTIONS_KEY "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
+#define DEVICE_PREFIX "\\Device\\TORNPF_"
+#define NETGUIDLEN 38
+
+static int get_net_device_guid(
+    char *name,
