support for external hosts
[sliver-openvswitch.git] / lib / tunalloc.c
index 1f083e5..053b4a5 100644 (file)
@@ -6,6 +6,7 @@
  * new tuntap interface. Interface name can be acquired via TUNGETIFF ioctl.
  */
 
+#include <config.h>
 #include <sys/un.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -97,5 +98,8 @@ int tun_alloc(int iftype, char *if_name)
     }
 
     remotefd = receive_vif_fd(control_fd, if_name);
+
+    close(control_fd);
+
     return remotefd;
 }