summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-03-14 17:25:05 +0100
committerPhil Sutter <phil@nwl.cc>2024-04-11 01:27:07 +0200
commit8d3ed0716c619213916140e1ea42945f5202ea5c (patch)
treee138a7927357f115fdab4d693a10b2b97688844b
parent104b83489d96642752e774c59e54e816dee85f26 (diff)
table: Validate NFTNL_TABLE_USE, too
Fixes: 53c0ff324598c ("src: add nft_*_attr_{set|get}_data interface") Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--src/table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/table.c b/src/table.c
index 59e7053..4a439ff 100644
--- a/src/table.c
+++ b/src/table.c
@@ -88,6 +88,7 @@ static uint32_t nftnl_table_validate[NFTNL_TABLE_MAX + 1] = {
[NFTNL_TABLE_FLAGS] = sizeof(uint32_t),
[NFTNL_TABLE_FAMILY] = sizeof(uint32_t),
[NFTNL_TABLE_HANDLE] = sizeof(uint64_t),
+ [NFTNL_TABLE_USE] = sizeof(uint32_t),
};
EXPORT_SYMBOL(nftnl_table_set_data);