summaryrefslogtreecommitdiffhomepage
path: root/talpid-openvpn/src/wintun.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-03Bump windows-sys version to latestDavid Lönnhager1-4/+9
This also refactors and documents some code
2025-07-10Run `cargo fmt`Sebastian Holmin1-4/+4
2025-03-19Set MTU on IPv6 interface for wireguard-nt only if IPv6 is enabledDavid Lönnhager1-1/+1
2025-03-18Replace to_owned with clone where that's implicitly what was going onLinus Färnstrand1-1/+1
2025-02-25Fix improper pointer provenanceJoakim Hulthe1-2/+5
`&mut buffer[0] as *mut u8` will create a raw pointer that is only allowed to access the very first byte of `buffer`. `slice::as_mut_ptr` is preferred.
2025-02-25Allow undocumented_unsafe_blocks in some modulesJoakim Hulthe1-0/+2
2025-02-12Format workspaceSebastian Holmin1-4/+4
The 2024 edition contains new formatting rules. All of these are not compatible with the 2021 formatting style, but most of them are. To change the formatting to be as close to the new style as possible while remaining compatible with the 2021 edition, I first ran `cargo +beta fmt` with the edition set to 2024, then, with the edition set to 2021, I ran `cargo fmt`.
2025-02-12Fix `unsafe_op_in_unsafe_fn` warningSebastian Holmin1-8/+10
2024-09-24Add fallback when failing to create `wintun` adapterSebastian Holmin1-17/+27
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-04-25Update windows-sysJoakim Hulthe1-4/+2
2023-10-20Remove pointless locks from wintunDavid Lönnhager1-26/+11
2023-08-08Update talpid-openvpn to be windows-sys 0.48 compatibleLinus Färnstrand1-10/+4
2023-08-08Use HMODULE instead of HINSTANCE in DLL handling codeLinus Färnstrand1-6/+6
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-5/+3
To align more with the upcoming standardizations within the Rust ecosystem which started with the release of `1.70.0` and the inevitable deprecation of `lazy_static`.
2023-04-21Fix misc clippy warnings for WindowsLinus Färnstrand1-1/+1
2023-04-21Apply clippy --fix fixesLinus Färnstrand1-1/+1
This commit does not contain everything that `cargo clippy --fix` changed on Windows. But the least controversial and simplest subset. The remaining fixes I felt could use some manual cleanup also.
2022-11-07Split up talpid-coreEmīls Piņķis1-0/+421