diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-03 12:21:32 +0000 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-05 06:15:46 +0000 |
commit | a0f031c69244456c67fc5d9f38ee34a5d4511f15 (patch) | |
tree | 065ac050b324788cc2b363fa0a9cd9d52cc63d9c /README.md | |
parent | Add _IRQL_requires_same_ support to clang formatting (diff) | |
download | wintun-a0f031c69244456c67fc5d9f38ee34a5d4511f15.tar.xz wintun-a0f031c69244456c67fc5d9f38ee34a5d4511f15.zip |
Do not use _RESOURCES but rather allocate our own copy
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Fixes: 09dc932 ("Create copies of NBLs to complete them faster")
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,6 +119,6 @@ After loading the driver and creating a network interface the typical way using ~ ~ ``` -Each packet segment should contain a layer 3 IPv4 or IPv6 packet. Up to 15728640 bytes may be read or written during each call to `ReadFile` or `WriteFile`. All calls to `ReadFile` must be called with the same virtual address, and all calls to `WriteFile` must be called with the same virtual address. These virtual addresses must reference pages that are readable and writable for the same length as passed to the first calls of `ReadFile` and `WriteFile`. +Each packet segment should contain a layer 3 IPv4 or IPv6 packet. Up to 15728640 bytes may be read or written during each call to `ReadFile` or `WriteFile`. All calls to `ReadFile` must be called with the same virtual address, for a given handle. This virtual address must reference pages that are writable for the same length as passed to the first call of `ReadFile`. It is advisable to use [overlapped I/O](https://docs.microsoft.com/en-us/windows/desktop/sync/synchronization-and-overlapped-input-and-output) for this. If using blocking I/O instead, it may be desirable to open separate handles for reading and writing. |