netfilter: nf_tables: Allow table names of up to 255 chars
Allocate all table names dynamically to allow for arbitrary lengths but introduce NFT_NAME_MAXLEN as an upper sanity boundary. It's value was chosen to allow using a domain name as per RFC 1035. 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
2cf0c8b3e6
commit
e46abbcc05
@@ -957,7 +957,7 @@ struct nft_table {
|
||||
u32 use;
|
||||
u16 flags:14,
|
||||
genmask:2;
|
||||
char name[NFT_TABLE_MAXNAMELEN];
|
||||
char *name;
|
||||
};
|
||||
|
||||
enum nft_af_flags {
|
||||
|
||||
Reference in New Issue
Block a user