diff options
author | 2020-10-29 06:21:32 +0100 | |
---|---|---|
committer | 2020-10-31 10:41:46 +0100 | |
commit | e11897e34329c59d993b471ceddfbd146ccbef1b (patch) | |
tree | 2917b3bad6809a704214a47a88374c683613902c /api/session.c | |
parent | api: move files from root to wintun folder within Zip (diff) | |
download | wintun-e11897e34329c59d993b471ceddfbd146ccbef1b.tar.xz wintun-e11897e34329c59d993b471ceddfbd146ccbef1b.zip |
api: depretiate WintunIsPacketAvailable()
Spinning on the WintunReceivePacket() while it returns
ERROR_NO_MORE_ITEMS achieves the same.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/session.c')
-rw-r--r-- | api/session.c | 6 |
1 files changed, 0 insertions, 6 deletions
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) { |