diff --git a/include/tuntap.h b/include/tuntap.h index 28bd533de..479c86d20 100644 --- a/include/tuntap.h +++ b/include/tuntap.h @@ -226,6 +226,11 @@ extern "C" int tuntap_sys_set_ipv4(struct device *, t_tun_in_addr *, uint32_t); +#if defined(Windows) + int + tuntap_sys_set_dns(struct device *dev, t_tun_in_addr *s, uint32_t mask); +#endif + #if defined(FreeBSD) int tuntap_sys_set_ipv4_tap(struct device *, t_tun_in_addr *, uint32_t); diff --git a/llarp/ev/ev.cpp b/llarp/ev/ev.cpp index 4ca77cf99..556f3b72e 100644 --- a/llarp/ev/ev.cpp +++ b/llarp/ev/ev.cpp @@ -17,6 +17,7 @@ #error No async event loop for your platform, subclass llarp_ev_loop #endif +// This is dead now isn't it -rick void llarp_ev_loop_alloc(struct llarp_ev_loop **ev) { diff --git a/vendor/libtuntap-master/tuntap-windows.c b/vendor/libtuntap-master/tuntap-windows.c index 2965b7482..f64d0751b 100644 --- a/vendor/libtuntap-master/tuntap-windows.c +++ b/vendor/libtuntap-master/tuntap-windows.c @@ -24,19 +24,6 @@ /*#include */ #include "tuntap.h" -// io packet for TUN read/write -// this _should_ be the same size as -// the corresponding C++ struct -struct asio_evt_pkt -{ - OVERLAPPED pkt; // must be first, since this is part of the IO call - _Bool write; // true, or false if read pkt - size_t sz; // if this doesn't match what is in the packet, note the error -}; - -// function from c++ -struct asio_evt_pkt * -getTunEventPkt(); // DDK macros #define CTL_CODE(DeviceType, Function, Method, Access) \