mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
remove ded code
add code for proper DNSc search
This commit is contained in:
parent
bc4f049af1
commit
0de253065e
3 changed files with 6 additions and 13 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
13
vendor/libtuntap-master/tuntap-windows.c
vendored
13
vendor/libtuntap-master/tuntap-windows.c
vendored
|
@ -24,19 +24,6 @@
|
|||
/*#include <strsafe.h>*/
|
||||
#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) \
|
||||
|
|
Loading…
Reference in a new issue