Compare commits

..

3 Commits

Author SHA1 Message Date
Aleksei Ilin 528e0a8268
Merge 28fb497ab8 into 1c789726cf 2025-01-20 19:46:10 +00:00
Aleksei Ilin 28fb497ab8
set: Add system test for Size property 2025-01-20 20:45:58 +01:00
Aleksei Ilin 9a398ccf70
set: Add set support for size specifier
Handle attribute NFTNL_SET_DESC_SIZE, as done in libnftnl:
https://git.netfilter.org/libnftnl/tree/src/set.c#n424

Example:
nft add set ip filter myset { type ipv4_addr\; size 65535\; flags dynamic\; }
2025-01-11 21:55:03 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func TestMarshalSet(t *testing.T) {
Size: 10,
Table: tbl,
KeyType: TypeIPAddr,
Timeout: 30 * time.Second,
Timeout: time.Duration(30) * time.Second,
},
},
}