Skip to content

Commit

Permalink
Bump NFT_*_MAXNAMELEN to 256 for PPC
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Mar 3, 2019
1 parent 481a521 commit 96eb1b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/unix/notbsd/linux/other/mod.rs
Expand Up @@ -670,8 +670,7 @@ pub const NFPROTO_NETDEV: ::c_int = 5;

// linux/netfilter/nf_tables.h
cfg_if!{
if #[cfg(any(target_arch = "arm", target_arch = "powerpc",
target_arch = "powerpc64", target_arch = "aarch64"))] {
if #[cfg(any(target_arch = "arm", 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;
Expand Down

0 comments on commit 96eb1b2

Please sign in to comment.