mirror of
https://github.com/nftables-rs/nftables-rs.git
synced 2026-10-27 00:01:08 +00:00
Like for fib and synproxy flags with nft 1.1.4 a single flag value is printed as string not array so the parser need to account for that. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
These files are where either generated by a specific nftables version or by hand to test specific json parsing behavior.
synproxy test
The synproxy files should contain the json for this
table ip test {
synproxy syn1 {
mss 1100
wscale 7
timestamp
}
synproxy syn2 {
mss 1000
wscale 6
timestamp sack-perm
}
chain chain1 {
synproxy mss 1460 wscale 7 timestamp sack-perm
synproxy mss 1500 wscale 5 timestamp
}
}
set and map test
table ip test {
set set1 {
type inet_service
flags interval
}
set set2 {
type inet_service
flags interval,timeout
timeout 10s
}
map map1 {
type inet_service : inet_service
flags interval
}
map map2 {
type inet_service : inet_service
flags interval,timeout
timeout 20s
}
}