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:
Adam Ierymenko
2013-08-27 11:55:56 -04:00
parent b4be07149f
commit 1c88a518cf
7 changed files with 59 additions and 18 deletions

View File

@ -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)
{