diff options
author | Florian Westphal <fw@strlen.de> | 2020-07-21 13:10:17 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-07-22 02:33:13 +0200 |
commit | 856b68c4fd13e869a19c76a2ac6532e5d024ce09 (patch) | |
tree | 623d14cd70f6c1f599b154a950417f0cda7f8932 /src/payload.c | |
parent | b47beb25afd4ebde6c6b46395838d9d397e2ba85 (diff) |
evaluate: permit get element on maps
Its possible to add an element to a map, but you can't read it back:
before:
nft add element inet filter test "{ 18.51.100.17 . ad:c1:ac:c0:ce:c0 . 3761 : 0x42 }"
nft get element inet filter test "{ 18.51.100.17 . ad:c1:ac:c0:ce:c0 . 3761 : 0x42 }"
Error: No such file or directory; did you mean map ‘test’ in table inet ‘filter’?
get element inet filter test { 18.51.100.17 . ad:c1:ac:c0:ce:c0 . 3761 : 0x42 }
^^^^
after:
nft get element inet filter test "{ 18.51.100.17 . ad:c1:ac:c0:ce:c0 . 3761 : 0x42 }"
table inet filter {
map test {
type ipv4_addr . ether_addr . inet_service : mark
flags interval,timeout
elements = { 18.51.100.17 . ad:c1:ac:c0:ce:c0 . 3761 : 0x00000042 }
}
}
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/payload.c')
0 files changed, 0 insertions, 0 deletions