mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-14 00:53:21 -07:00
Dike out some cruft in Windows tap that we will never use, like TUN mode, DHCP masq, ARP emulation, NDP emulation, and related. We operate only in L2 mode. All tap, no tun.
This commit is contained in:
parent
b4be07149f
commit
1c88a518cf
7 changed files with 59 additions and 18 deletions
|
@ -136,6 +136,7 @@ typedef struct _TapAdapter
|
|||
// Adapter power state
|
||||
char m_DeviceState;
|
||||
|
||||
#if 0
|
||||
// Info for point-to-point mode
|
||||
BOOLEAN m_tun;
|
||||
IPADDR m_localIP;
|
||||
|
@ -145,7 +146,9 @@ typedef struct _TapAdapter
|
|||
ETH_HEADER m_UserToTap;
|
||||
ETH_HEADER m_UserToTap_IPv6; // same as UserToTap but proto=ipv6
|
||||
MACADDR m_MAC_Broadcast;
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
// Used for DHCP server masquerade
|
||||
BOOLEAN m_dhcp_enabled;
|
||||
IPADDR m_dhcp_addr;
|
||||
|
@ -158,6 +161,7 @@ typedef struct _TapAdapter
|
|||
ULONG m_dhcp_user_supplied_options_buffer_len;
|
||||
BOOLEAN m_dhcp_received_discover;
|
||||
ULONG m_dhcp_bad_requests;
|
||||
#endif
|
||||
|
||||
// Help to tear down the adapter by keeping
|
||||
// some state information on allocated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue