diff options
author | Phil Sutter <phil@nwl.cc> | 2017-07-27 16:56:41 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-31 20:41:57 +0200 |
commit | e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770 (patch) | |
tree | 8f5688c722893d30b0083365c7b01d01a03e56c0 /include/net/netfilter | |
parent | 2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39 (diff) | |
download | op-kernel-dev-e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770.zip op-kernel-dev-e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770.tar.gz |
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>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index bd5be0d..05ecf78 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -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 { |