Skip to content

Commit

Permalink
Correct value of some NFT_ constants on AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed May 16, 2019
1 parent bdb1816 commit 4a8fa6f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/unix/notbsd/linux/other/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,7 @@ pub const NFPROTO_NETDEV: ::c_int = 5;

// linux/netfilter/nf_tables.h
cfg_if!{
if #[cfg(target_arch = "aarch64")] {
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
pub const NFT_OBJ_MAXNAMELEN: ::c_int = 32;
} else if #[cfg(target_arch = "sparc64")] {
if #[cfg(target_arch = "sparc64")] {
pub const NFT_TABLE_MAXNAMELEN: ::c_int = 32;
pub const NFT_CHAIN_MAXNAMELEN: ::c_int = 32;
pub const NFT_SET_MAXNAMELEN: ::c_int = 32;
Expand Down

0 comments on commit 4a8fa6f

Please sign in to comment.