netfilter: nf_tables: Allow chain name of up to 255 chars
Same conversion as for table names, use NFT_NAME_MAXLEN as upper boundary as well. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
e46abbcc05
commit
b7263e071a
@@ -859,7 +859,7 @@ struct nft_chain {
|
||||
u16 level;
|
||||
u8 flags:6,
|
||||
genmask:2;
|
||||
char name[NFT_CHAIN_MAXNAMELEN];
|
||||
char *name;
|
||||
};
|
||||
|
||||
enum nft_chain_type {
|
||||
@@ -1272,7 +1272,7 @@ struct nft_trans_set {
|
||||
|
||||
struct nft_trans_chain {
|
||||
bool update;
|
||||
char name[NFT_CHAIN_MAXNAMELEN];
|
||||
char *name;
|
||||
struct nft_stats __percpu *stats;
|
||||
u8 policy;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user