summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-07-27 16:56:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-31 20:41:57 +0200
commite46abbcc05aa8a16b0e7f5c94e86d11af9aa2770 (patch)
tree8f5688c722893d30b0083365c7b01d01a03e56c0 /include/uapi
parent2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39 (diff)
downloadop-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/uapi')
-rw-r--r--include/uapi/linux/netfilter/nf_tables.h3
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 6f0a950..0b94e57 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
OpenPOWER on IntegriCloud