Skip to content

Commit b6d3705

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 8d7f960 commit b6d3705

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
@@ -4456,9 +4456,6 @@ fn test_linux(target: &str) {
44564456
| "FAN_EPIDFD"
44574457
if musl => true,
44584458

4459-
// FIXME(value): value needs update
4460-
"NFT_MSG_MAX" => true,
4461-
44624459
// FIXME(linux): Requires >= 6.6 kernel headers.
44634460
"XDP_USE_SG" | "XDP_PKT_CONTD" => true,
44644461

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)