Skip to content

Commit 9a306b8

Browse files
committed
update nftables to v0.6.3
Contains a fix for a small breaking change. But most importantly it fixes a compatibility problem with nftables v1.1.4 where it failed to parse the json format. Fixes: #1303 Signed-off-by: Paul Holzinger <[email protected]>
1 parent 313f6c8 commit 9a306b8

File tree

3 files changed

+45
-23
lines changed

3 files changed

+45
-23
lines changed

Cargo.lock

Lines changed: 38 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sha2 = "0.10.9"
4949
netlink-packet-route = "0.23.0"
5050
netlink-packet-core = "0.7.0"
5151
netlink-sys = "0.8.7"
52-
nftables = "0.6.2"
52+
nftables = "0.6.3"
5353
fs2 = "0.4.3"
5454
tokio = { version = "1.47.1", features = ["rt", "rt-multi-thread", "signal", "fs"] }
5555
tokio-stream = { version = "0.1.17", features = ["net"] }

src/firewall/nft.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,12 @@ impl firewall::FirewallDriver for Nftables {
175175
key: expr::MetaKey::Mark,
176176
})),
177177
value: expr::Expression::BinaryOperation(Box::new(expr::BinaryOperation::OR(
178-
expr::Expression::Named(expr::NamedExpression::Meta(expr::Meta {
179-
key: expr::MetaKey::Mark,
180-
})),
181-
expr::Expression::Number(MASK),
178+
vec![
179+
expr::Expression::Named(expr::NamedExpression::Meta(expr::Meta {
180+
key: expr::MetaKey::Mark,
181+
})),
182+
expr::Expression::Number(MASK),
183+
],
182184
))),
183185
})]),
184186
));

0 commit comments

Comments
 (0)