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>
Showing
- include/net/netfilter/nf_tables.h 1 addition, 1 deletioninclude/net/netfilter/nf_tables.h
- include/uapi/linux/netfilter/nf_tables.h 2 additions, 1 deletioninclude/uapi/linux/netfilter/nf_tables.h
- net/netfilter/nf_tables_api.c 36 additions, 13 deletionsnet/netfilter/nf_tables_api.c
- net/netfilter/nf_tables_trace.c 1 addition, 1 deletionnet/netfilter/nf_tables_trace.c
Please register or sign in to comment