diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/exports.def | 1 | ||||
-rw-r--r-- | api/session.c | 6 | ||||
-rw-r--r-- | api/wintun.h | 9 |
3 files changed, 0 insertions, 16 deletions
diff --git a/api/exports.def b/api/exports.def index 6dbd89a..2c9e78b 100644 --- a/api/exports.def +++ b/api/exports.def @@ -11,7 +11,6 @@ EXPORTS WintunGetAdapterLUID WintunGetAdapterName WintunGetVersion - WintunIsPacketAvailable WintunReceivePacket WintunReceiveRelease WintunSendPacket diff --git a/api/session.c b/api/session.c index 02aa5be..259b1f5 100644 --- a/api/session.c +++ b/api/session.c @@ -147,12 +147,6 @@ WintunEndSession(_In_ TUN_SESSION *Session) HeapFree(ModuleHeap, 0, Session); } -BOOL WINAPI -WintunIsPacketAvailable(_In_ TUN_SESSION *Session) -{ - return Session->Send.Head != InterlockedGetU(&Session->Descriptor.Send.Ring->Tail); -} - WINTUN_STATUS WINAPI WintunWaitForPacket(_In_ TUN_SESSION *Session, _In_ DWORD Milliseconds) { diff --git a/api/wintun.h b/api/wintun.h index 2fe5c2e..ff79d8a 100644 --- a/api/wintun.h +++ b/api/wintun.h @@ -261,15 +261,6 @@ typedef void(WINAPI *WINTUN_END_SESSION_FUNC)(_In_ WINTUN_SESSION_HANDLE Session #define WINTUN_MAX_IP_PACKET_SIZE 0xFFFF /** - * Peeks if there is a packet available for reading. - * - * @param Session Wintun session handle obtained with WintunStartSession - * - * @return Non-zero if there is a packet available; zero otherwise. - */ -BOOL(WINAPI *WINTUN_IS_PACKET_AVAILABLE_FUNC)(_In_ WINTUN_SESSION_HANDLE Session); - -/** * Waits for a packet to become available for reading. * * @param Session Wintun session handle obtained with WintunStartSession |