]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/iprep: implement isset and isnotset
authorVictor Julien <vjulien@oisf.net>
Mon, 13 May 2024 12:37:51 +0000 (14:37 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 15 Jun 2024 13:43:28 +0000 (15:43 +0200)
commit83976a4cd4ed0583c2c9f49a75e71d894ce65888
treef4f541e6880205cde1b6fd6ccd3377386b344ebb
parent3e46c516514cde867f34723a77958e8fd10bebb5
detect/iprep: implement isset and isnotset

Implement special "isset" and "isnotset" modes.

"isset" matches if an IP address is part of an iprep category with any
value.

It is internally implemented as ">=,0", which should always be true if
there is a value to evaluate, as valid reputation values are 0-127.

"isnotset" matches if an IP address is not part of an iprep category.

Internally it is implemented outside the uint support.

Ticket: #6857.
rust/src/detect/iprep.rs
src/detect-iprep.c