example: raise to 4MiB

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-11-05 14:22:53 +01:00
parent 82c41bdb4b
commit 1e00f310ec
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ WINTUN_ADAPTER_HANDLE Adapter3 = WintunCreateAdapter(L"WireGuard", L"Data Center
After creating an adapter, we can use it by starting a session: After creating an adapter, we can use it by starting a session:
```C ```C
WINTUN_SESSION_HANDLE Session = WintunStartSession(Adapter2, 0x40000); WINTUN_SESSION_HANDLE Session = WintunStartSession(Adapter2, 0x400000);
``` ```
Then, the `WintunAllocateSendPacket` and `WintunSendPacket` functions can be used for sending packets ([used by `SendPackets` in the example.c code](https://git.zx2c4.com/wintun/tree/example/example.c)): Then, the `WintunAllocateSendPacket` and `WintunSendPacket` functions can be used for sending packets ([used by `SendPackets` in the example.c code](https://git.zx2c4.com/wintun/tree/example/example.c)):

View File

@ -348,7 +348,7 @@ main(void)
goto cleanupAdapter; goto cleanupAdapter;
} }
WINTUN_SESSION_HANDLE Session = WintunStartSession(Adapter, 0x40000); WINTUN_SESSION_HANDLE Session = WintunStartSession(Adapter, 0x400000);
if (!Session) if (!Session)
{ {
LastError = LogLastError(L"Failed to create adapter"); LastError = LogLastError(L"Failed to create adapter");