summaryrefslogtreecommitdiffhomepage
path: root/talpid-routing/src/unix/linux.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-09-17Add note about simplifying code if upstream PR is acceptedMarkus Pettersson1-2/+4
Signed-off-by: Markus Pettersson <markus.pettersson@mullvad.net>
2025-09-17Upgrade rtnetlink libs to latest versionMarkus Pettersson1-207/+227
Signed-off-by: Markus Pettersson <markus.pettersson@mullvad.net>
2025-07-15Fix `collapsible_if` clippy lintMarkus Pettersson1-26/+27
2025-07-10Run `cargo fmt`Sebastian Holmin1-16/+14
2025-07-09Use `Iter::contains`Linus Färnstrand1-1/+1
2025-02-06Replace old waitForTunnelUp functionDavid Göransson1-0/+1
After invoking VpnService.establish() we will get a tunnel file descriptor that corresponds to the interface that was created. However, this has no guarantee of the routing table beeing up to date, and we might thus send traffic outside the tunnel. Previously this was done through looking at the tunFd to see that traffic is sent to verify that the routing table has changed. If no traffic is seen some traffic is induced to a random IP address to ensure traffic can be seen. This new implementation is slower but won't risk sending UDP traffic to a random public address at the internet.
2024-08-27Use std LazyLock instead of once_cell LazyDavid Lönnhager1-3/+3
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-20/+19
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2023-12-04Subtract multihop overhead from default route MTU on LinuxDavid Lönnhager1-3/+17
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-19/+17
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-06-05Rework macOS routingDavid Lönnhager1-9/+3
2023-05-24Restructure routing modules to be hierarchicalLinus Färnstrand1-0/+931