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 | |
parent | netlink: Introduce nla_strdup() (diff) | |
download | linux-e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770.tar.xz linux-e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770.zip |
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')
-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 bd5be0d691d5..05ecf78ec078 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 { |