]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: Introduce tokens for monitor events
authorPhil Sutter <phil@nwl.cc>
Fri, 21 Nov 2025 13:02:36 +0000 (14:02 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 20 Jan 2026 15:02:06 +0000 (16:02 +0100)
commit9e80bfd0344cc0c05004c8cd1dd13e6cfa3df446
tree32efe71e12bb1d2d47f1d127f51760d2892ca856
parentd6d9930fc2347dd11b460f95ff22916c407a9a4b
parser_bison: Introduce tokens for monitor events

There already is a start condition for "monitor" keyword and also a
DESTROY token. So just add the missing one and get rid of the
intermediate string buffer.

Keep checking the struct monitor::event value in eval phase just to be
on the safe side.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Florian Westphal <fw@strlen.de>
include/rule.h
src/evaluate.c
src/parser_bison.y
src/rule.c
src/scanner.l