Skip to content

Commit 59a935c

Browse files
committed
Update NFT Android constants
1 parent 0ff324f commit 59a935c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,10 +1459,10 @@ pub const NF_IP6_PRI_CONNTRACK_HELPER: ::c_int = 300;
14591459
pub const NF_IP6_PRI_LAST: ::c_int = ::INT_MAX;
14601460

14611461
// linux/netfilter/nf_tables.h
1462-
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
1463-
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
1464-
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
1465-
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 32;
1462+
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 256;
1463+
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 256;
1464+
pub const NFT_SET_MAXNAMELEN: ::c_int = 256;
1465+
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 256;
14661466
pub const NFT_USERDATA_MAXLEN: ::c_int = 256;
14671467

14681468
pub const NFT_REG_VERDICT: ::c_int = 0;
@@ -1519,7 +1519,7 @@ pub const NFT_MSG_NEWOBJ: ::c_int = 18;
15191519
pub const NFT_MSG_GETOBJ: ::c_int = 19;
15201520
pub const NFT_MSG_DELOBJ: ::c_int = 20;
15211521
pub const NFT_MSG_GETOBJ_RESET: ::c_int = 21;
1522-
pub const NFT_MSG_MAX: ::c_int = 22;
1522+
pub const NFT_MSG_MAX: ::c_int = 25;
15231523

15241524
pub const NFT_SET_ANONYMOUS: ::c_int = 0x1;
15251525
pub const NFT_SET_CONSTANT: ::c_int = 0x2;

0 commit comments

Comments
 (0)