diff options
| author | Patrick McHardy <kaber@trash.net> | 2015-04-10 21:27:39 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 11:17:31 -0400 |
| commit | 7d7402642eaf385aef0772eff5a35e34fc4995d7 (patch) | |
| tree | 340e51ce8070314a423634a21a3dc31fe3e6b0c9 /include/uapi/linux | |
| parent | d0a11fc3dc4ab4c717642c9c15c8ad1cbc00d2ec (diff) | |
netfilter: nf_tables: variable sized set element keys / data
This patch changes sets to support variable sized set element keys / data
up to 64 bytes each by using variable sized set extensions. This allows
to use concatenations with bigger data items suchs as IPv6 addresses.
As a side effect, small keys/data now don't require the full 16 bytes
of struct nft_data anymore but just the space they need.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index 4221a6c3a8a5..be8584c95297 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h | |||
| @@ -388,6 +388,9 @@ enum nft_data_attributes { | |||
| 388 | }; | 388 | }; |
| 389 | #define NFTA_DATA_MAX (__NFTA_DATA_MAX - 1) | 389 | #define NFTA_DATA_MAX (__NFTA_DATA_MAX - 1) |
| 390 | 390 | ||
| 391 | /* Maximum length of a value */ | ||
| 392 | #define NFT_DATA_VALUE_MAXLEN 64 | ||
| 393 | |||
| 391 | /** | 394 | /** |
| 392 | * enum nft_verdict_attributes - nf_tables verdict netlink attributes | 395 | * enum nft_verdict_attributes - nf_tables verdict netlink attributes |
| 393 | * | 396 | * |
