diff options
author | Phil Sutter <phil@nwl.cc> | 2024-03-14 17:26:33 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-04-11 01:27:07 +0200 |
commit | b8a502b359221c6fb9c35618550364e2ebf116fb (patch) | |
tree | 1e3974ce54b41824ab0ca6407a305908bbbc0bcb | |
parent | 8d3ed0716c619213916140e1ea42945f5202ea5c (diff) |
flowtable: Validate NFTNL_FLOWTABLE_SIZE, too
Fixes: cdaea7f1ced05 ("flowtable: allow to specify size")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/flowtable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flowtable.c b/src/flowtable.c index e6c2475..2f37cd4 100644 --- a/src/flowtable.c +++ b/src/flowtable.c @@ -102,6 +102,7 @@ static uint32_t nftnl_flowtable_validate[NFTNL_FLOWTABLE_MAX + 1] = { [NFTNL_FLOWTABLE_HOOKNUM] = sizeof(uint32_t), [NFTNL_FLOWTABLE_PRIO] = sizeof(int32_t), [NFTNL_FLOWTABLE_FAMILY] = sizeof(uint32_t), + [NFTNL_FLOWTABLE_SIZE] = sizeof(uint32_t), [NFTNL_FLOWTABLE_FLAGS] = sizeof(uint32_t), [NFTNL_FLOWTABLE_HANDLE] = sizeof(uint64_t), }; |