diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-27 19:26:49 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-27 22:26:02 +0100 |
commit | d6ac64f92dfca5da4d07989114a4aa46e1322453 (patch) | |
tree | fe82c3dcf5013ed806126e23ad24ec43250ef3b2 /include/xfrm.h | |
parent | b119428c934c7d356023828fed6a83b12bbcaa1f (diff) |
evaluate: display error if set statement is missing
# cat /tmp/x
table x {
set y {
type ipv4_addr
elements = {
1.1.1.1 counter packets 1 bytes 67,
}
}
}
# nft -f /tmp/x
/tmp/x:5:12-18: Error: missing counter statement in set definition
1.1.1.1 counter packets 1 bytes 67,
^^^^^^^^^^^^^^^^^^^^^^^^^^
Instead, this should be:
table x {
set y {
type ipv4_addr
counter <-------
elements = {
1.1.1.1 counter packets 1 bytes 67,
}
}
}
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/xfrm.h')
0 files changed, 0 insertions, 0 deletions