diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:08:35 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:08:35 +0100 |
commit | bf0f0d27dfb2eea1baa70204b8d7d4d543dbb8f9 (patch) | |
tree | 55187c3b341b238299a6415b2a3cd165fc3bc0ba /example | |
parent | api: only return top two version nibbles (diff) | |
download | wintun-bf0f0d27dfb2eea1baa70204b8d7d4d543dbb8f9.tar.xz wintun-bf0f0d27dfb2eea1baa70204b8d7d4d543dbb8f9.zip |
example: add sal markings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.c b/example/example.c index 814cd57..5f1ec7a 100644 --- a/example/example.c +++ b/example/example.c @@ -171,7 +171,7 @@ PrintPacket(_In_ const BYTE *Packet, _In_ DWORD PacketSize) }
static USHORT
-IPChecksum(BYTE *Buffer, DWORD Len)
+IPChecksum(_In_reads_bytes_(Len) BYTE *Buffer, _In_ DWORD Len)
{
ULONG Sum = 0;
for (; Len > 1; Len -= 2, Buffer += 2)
@@ -184,7 +184,7 @@ IPChecksum(BYTE *Buffer, DWORD Len) }
static void
-MakeICMP(_Inout_ BYTE Packet[28])
+MakeICMP(_Out_writes_bytes_all_(28) BYTE Packet[28])
{
memset(Packet, 0, 28);
Packet[0] = 0x45;
|