From: Saverio Proto Date: Mon, 7 Apr 2014 17:11:47 +0000 (+0200) Subject: we dont open any tun tap or any device in libmeshlink X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=997f4aea764ac23c2c630b16eb313d2a4aa8b1d1;p=meshlink we dont open any tun tap or any device in libmeshlink --- diff --git a/src/net_setup.c b/src/net_setup.c index 4574fbce..67bcc8ac 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -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")) {