aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-04 21:06:17 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-05 06:15:46 +0000
commit74371554461a5f8cc42e4828d6123febc88c1dec (patch)
tree5f983d40f854164c5e27aefb7f54c5e5455193db /README.md
parentDo not use _RESOURCES but rather allocate our own copy (diff)
downloadwintun-74371554461a5f8cc42e4828d6123febc88c1dec.tar.xz
wintun-74371554461a5f8cc42e4828d6123febc88c1dec.zip
Decrease alignment requirements to 4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 7 insertions, 12 deletions
diff --git a/README.md b/README.md
index 3a01a0d..3b31880 100644
--- a/README.md
+++ b/README.md
@@ -89,11 +89,6 @@ After loading the driver and creating a network interface the typical way using
| 4 bytes, native endian |
+------------------------------+
| |
-| padding |
-| 12 bytes, all zero |
-| |
-+------------------------------+
-| |
| packet_0 |
| size_0 bytes |
| |
@@ -101,22 +96,22 @@ After loading the driver and creating a network interface the typical way using
| |
+------------------------------+
| padding |
-| 16-(size_0&15) bytes, |
-| all zero |
+| 4-(size_0&3) bytes |
+------------------------------+
| size_1 |
| 4 bytes, native endian |
+------------------------------+
| |
-| padding |
-| 12 bytes, all zero |
-| |
-+------------------------------+
-| |
| packet_1 |
| size_1 bytes |
| |
~ ~
+| |
++------------------------------+
+| padding |
+| 4-(size_1&3) bytes |
++------------------------------+
+~ ~
```
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`.