diff options
author | João Valverde <j@v6e.pt> | 2022-02-25 19:37:53 +0000 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-03-22 12:58:04 +0000 |
commit | 16729be2c11f69f4a1f1bd4c93d44d566e418f62 (patch) | |
tree | 4425e2d8fec6838f392e2fd788c5602b2b21cffd /epan/dfilter/dfilter-int.h | |
parent | 3e3db6cd3e916a23f60992f6ef5f0e80e04449ee (diff) |
dfilter: Add bitwise masking of bits
Add support for masking of bits. Before the bitwise operator
could only test bits, it did not support clearing bits.
This allows testing if any combination of bits are set/unset
more naturally with a single test. Previously this was only
possible by combining several bitwise predicates.
Bitwise is implemented as a test node, even though it is not.
Maybe the test node should be renamed to something else.
Fixes #17246.
Diffstat (limited to 'epan/dfilter/dfilter-int.h')
-rw-r--r-- | epan/dfilter/dfilter-int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dfilter/dfilter-int.h b/epan/dfilter/dfilter-int.h index 6ca672c6ed..eeb1e31bff 100644 --- a/epan/dfilter/dfilter-int.h +++ b/epan/dfilter/dfilter-int.h @@ -102,6 +102,7 @@ dfilter_vfail(dfwork_t *dfw, const char *format, va_list args); void dfilter_fail(dfwork_t *dfw, const char *format, ...) G_GNUC_PRINTF(2, 3); +WS_NORETURN void dfilter_fail_throw(dfwork_t *dfw, long code, const char *format, ...) G_GNUC_PRINTF(3, 4); |