]> git.ipfire.org Git - thirdparty/suricata-verify.git/commit
Add ability to match on the length of an array.
authorJason Ish <jason.ish@oisf.net>
Thu, 7 Nov 2019 19:19:33 +0000 (13:19 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 20 Mar 2020 22:05:43 +0000 (16:05 -0600)
commit7bd9400ca8fdaf9760e85320f7eb43c5ee66ad13
treea1bd32561d7a9a8f9d977dc19ed39935f17b0b90
parent60c0edb086177f6ae74225e5b3a08cd2ddff789c
Add ability to match on the length of an array.

By using the "magic" key value of __len, a match can be done
on the length of an array. For example:

  - filter:
      count: 1
      match:
        event_type: http
        http.response_headers.__len: 9

This does rely on us never using __len as an actual object
key, so is a bit of a hack.
README.md
run.py