Skip to content

Commit faf866f

Browse files
committed
linux: Correct the value of NFT_MSG_MAX
This was updated in a more recent kernel version. (backport <#4761>) (cherry picked from commit e0e220e)
1 parent 4f46351 commit faf866f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libc-test/build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,9 +4460,6 @@ fn test_linux(target: &str) {
44604460
| "FAN_EPIDFD"
44614461
if musl => true,
44624462

4463-
// FIXME(value): value needs update
4464-
"NFT_MSG_MAX" => true,
4465-
44664463
// FIXME(linux): Requires >= 6.6 kernel headers.
44674464
"XDP_USE_SG" | "XDP_PKT_CONTD" => true,
44684465

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4913,7 +4913,8 @@ cfg_if! {
49134913
pub const NFT_MSG_GETOBJ_RESET: c_int = 21;
49144914
}
49154915
}
4916-
pub const NFT_MSG_MAX: c_int = 25;
4916+
4917+
pub const NFT_MSG_MAX: c_int = 34;
49174918

49184919
pub const NFT_SET_ANONYMOUS: c_int = 0x1;
49194920
pub const NFT_SET_CONSTANT: c_int = 0x2;

0 commit comments

Comments
 (0)