summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-03-05 15:05:36 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-06 01:21:21 +0100
commit1cae565e8b746f484f1ff1b71d2a1c89d7cf0668 (patch)
treeab950a36bfd550a55fda8dc1e6acc546df02c8a6 /include/net
parentnetfilter: nf_tables: consolidate Kconfig options (diff)
downloadlinux-1cae565e8b746f484f1ff1b71d2a1c89d7cf0668.tar.xz
linux-1cae565e8b746f484f1ff1b71d2a1c89d7cf0668.zip
netfilter: nf_tables: limit maximum table name length to 32 bytes
Set the same as we use for chain names, it should be enough. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 04188b47629d..a143acafa5d9 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -535,7 +535,7 @@ struct nft_table {
u64 hgenerator;
u32 use;
u16 flags;
- char name[];
+ char name[NFT_TABLE_MAXNAMELEN];
};
/**