summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-05-25 09:51:11 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-06-02 10:05:02 +0200
commit9ae5ed301218c649b304e31327df2d687ffe6866 (patch)
tree69768eac1f8d27c0359cfa316365da371480bc99
parentf242b5456939863ee32c6faf89be3aa353c32e5e (diff)
downloadmullvadvpn-9ae5ed301218c649b304e31327df2d687ffe6866.tar.xz
mullvadvpn-9ae5ed301218c649b304e31327df2d687ffe6866.zip
Update comment on kernel version issues in Linux firewall
-rw-r--r--talpid-core/src/firewall/linux.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/talpid-core/src/firewall/linux.rs b/talpid-core/src/firewall/linux.rs
index fcf4959414..abe542d4b3 100644
--- a/talpid-core/src/firewall/linux.rs
+++ b/talpid-core/src/firewall/linux.rs
@@ -61,8 +61,9 @@ lazy_static! {
static ref IN_CHAIN_NAME: CString = CString::new("input").unwrap();
static ref OUT_CHAIN_NAME: CString = CString::new("output").unwrap();
- /// We need two separate tables for compatibility with older kernels,
- /// where the base filter type may not be `nftnl::ChainType::Route` for inet tables.
+ /// We need two separate tables for compatibility with older kernels (holds true for kernel
+ /// version 4.19 but not 5.6), where the base filter type may not be `nftnl::ChainType::Route`
+ /// or `nftnl::ChainType::Nat` for inet tables.
static ref MANGLE_TABLE_NAME_V4: CString = CString::new("mullvadmangle4").unwrap();
static ref MANGLE_TABLE_NAME_V6: CString = CString::new("mullvadmangle6").unwrap();
static ref MANGLE_CHAIN_NAME: CString = CString::new("mangle").unwrap();