From 74371554461a5f8cc42e4828d6123febc88c1dec Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 4 Jul 2019 21:06:17 +0000 Subject: Decrease alignment requirements to 4 Signed-off-by: Jason A. Donenfeld --- README.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'README.md') 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`. -- cgit v1.2.3-59-g8ed1b