diff options
| author | 2017-07-27 16:56:41 +0200 | |
|---|---|---|
| committer | 2017-07-31 20:41:57 +0200 | |
| commit | e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770 (patch) | |
| tree | 8f5688c722893d30b0083365c7b01d01a03e56c0 /include/uapi/linux/netfilter | |
| parent | netlink: Introduce nla_strdup() (diff) | |
| download | linux-dev-e46abbcc05aa8a16b0e7f5c94e86d11af9aa2770.tar.xz linux-dev-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/uapi/linux/netfilter')
| -rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index 6f0a950e21c3..0b94e572ef16 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h @@ -1,7 +1,8 @@ #ifndef _LINUX_NF_TABLES_H #define _LINUX_NF_TABLES_H -#define NFT_TABLE_MAXNAMELEN 32 +#define NFT_NAME_MAXLEN 256 +#define NFT_TABLE_MAXNAMELEN NFT_NAME_MAXLEN #define NFT_CHAIN_MAXNAMELEN 32 #define NFT_SET_MAXNAMELEN 32 #define NFT_OBJ_MAXNAMELEN 32 |
