example: raise to 4MiB
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
82c41bdb4b
commit
1e00f310ec
@ -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)):
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user