Skip to content

Commit e0e220e

Browse files
committed
linux: Correct the value of NFT_MSG_MAX
This was updated in a more recent kernel version.
1 parent 8cac94f commit e0e220e

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
@@ -4308,9 +4308,6 @@ fn test_linux(target: &str) {
43084308
| "FAN_EPIDFD"
43094309
if musl => true,
43104310

4311-
// FIXME(value): value needs update
4312-
"NFT_MSG_MAX" => true,
4313-
43144311
// FIXME(linux): Requires >= 6.6 kernel headers.
43154312
"XDP_USE_SG" | "XDP_PKT_CONTD" => true,
43164313

src/unix/linux_like/linux/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4883,7 +4883,8 @@ cfg_if! {
48834883
pub const NFT_MSG_GETOBJ_RESET: c_int = 21;
48844884
}
48854885
}
4886-
pub const NFT_MSG_MAX: c_int = 25;
4886+
4887+
pub const NFT_MSG_MAX: c_int = 34;
48874888

48884889
pub const NFT_SET_ANONYMOUS: c_int = 0x1;
48894890
pub const NFT_SET_CONSTANT: c_int = 0x2;

0 commit comments

Comments
 (0)