mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Do the same modifications to the NDIS 6 code base as were done to the old 5 driver: disable all the 'tun' functionality, and add the IOCTL for querying the multicast list at Ethernet (L2) level.
This commit is contained in:
parent
1ebe2ad920
commit
d4c06e924d
12 changed files with 81 additions and 901 deletions
|
@ -432,7 +432,7 @@ TapDeviceWrite(
|
|||
//
|
||||
if(tapAdapterSendAndReceiveReady(adapter) == NDIS_STATUS_SUCCESS)
|
||||
{
|
||||
if (!adapter->m_tun && ((irpSp->Parameters.Write.Length) >= ETHERNET_HEADER_SIZE))
|
||||
if (/*!adapter->m_tun &&*/ ((irpSp->Parameters.Write.Length) >= ETHERNET_HEADER_SIZE))
|
||||
{
|
||||
PNET_BUFFER_LIST netBufferList;
|
||||
|
||||
|
@ -514,6 +514,7 @@ TapDeviceWrite(
|
|||
ntStatus = STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
}
|
||||
/*
|
||||
else if (adapter->m_tun && ((irpSp->Parameters.Write.Length) >= IP_HEADER_SIZE))
|
||||
{
|
||||
PETH_HEADER p_UserToTap = &adapter->m_UserToTap;
|
||||
|
@ -637,6 +638,7 @@ TapDeviceWrite(
|
|||
ntStatus = STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
}
|
||||
*/
|
||||
else
|
||||
{
|
||||
DEBUGP (("[%s] Bad buffer size in IRP_MJ_WRITE, len=%d\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue