]> git.meshlink.io Git - meshlink/commitdiff
we dont open any tun tap or any device in libmeshlink
authorSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 17:11:47 +0000 (19:11 +0200)
committerSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 17:11:47 +0000 (19:11 +0200)
src/net_setup.c

index 4574fbce4ab358ccb822bc71bd67b87043737050..67bcc8ace9ae6636421a02f0029e5061bdb5ea68 100644 (file)
@@ -891,33 +891,6 @@ bool setup_myself(void) {
        else if(autoconnect)
                load_all_nodes();
 
-       /* Open device */
-
-       devops = os_devops;
-
-       if(get_config_string(lookup_config(config_tree, "DeviceType"), &type)) {
-               if(!strcasecmp(type, "dummy"))
-                       devops = dummy_devops;
-               else if(!strcasecmp(type, "raw_socket"))
-                       devops = raw_socket_devops;
-               else if(!strcasecmp(type, "multicast"))
-                       devops = multicast_devops;
-#ifdef ENABLE_UML
-               else if(!strcasecmp(type, "uml"))
-                       devops = uml_devops;
-#endif
-#ifdef ENABLE_VDE
-               else if(!strcasecmp(type, "vde"))
-                       devops = vde_devops;
-#endif
-       }
-
-       if(!devops.setup())
-               return false;
-
-       if(device_fd >= 0)
-               io_add(&device_io, handle_device_data, NULL, device_fd, IO_READ);
-
        /* Open sockets */
 
        if(!do_detach && getenv("LISTEN_FDS")) {