mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-10 15:23:06 -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
|
@ -324,7 +324,8 @@ DumpPacket (const char *prefix,
|
|||
&& blen - hlen >= (sizeof (UDPHDR)))
|
||||
{
|
||||
const UDPHDR *udp = (UDPHDR *) (data + sizeof (ETH_HEADER) + hlen);
|
||||
|
||||
|
||||
#if 0
|
||||
// DHCP packet?
|
||||
if ((udp->dest == htons (BOOTPC_PORT) || udp->dest == htons (BOOTPS_PORT))
|
||||
&& blen - hlen >= (sizeof (UDPHDR) + sizeof (DHCP)))
|
||||
|
@ -346,6 +347,7 @@ DumpPacket (const char *prefix,
|
|||
DumpDHCP (eth, ip, udp, dhcp, optlen);
|
||||
did = TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!did)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue