dftest - Man Page

Shows display filter byte-code, for debugging dfilter routines.

Synopsis

dftest [ <filter> ]

Description

dftest is a simple tool which compiles a display filter and shows its bytecode. Please refer to doc/README.display_filter for a description of the DFVM (Display Filter Virtual Machine) Byte Codes.

Options

filter

The display filter expression. If needed it has to be quoted.

Diagnostic Options

--log-level <level>

Set the active log level. Supported levels in lowest to highest order are "noisy", "debug", "info", "message", "warning", "critical", and "error". Messages at each level and higher will be printed, for example "warning" prints "warning", "critical", and "error" messages and "noisy" prints all messages. Levels are case insensitive.

--log-fatal <level>

Abort the program if any messages are logged at the specified level or higher. For example, "warning" aborts on any "warning", "critical", or "error" messages.

--log-domains <list>

Only print messages for the specified log domains, e.g. "GUI,Epan,sshdump". List of domains must be comma-separated.

--log-debug <list>

Force the specified domains to log at the "debug" level. List of domains must be comma-separated.

--log-noisy <list>

Force the specified domains to log at the "noisy" level. List of domains must be comma-separated.

--log-file <path>

Write log messages and stderr output to the specified file.

Examples

Show how the IP protocol is filtered:

dftest ip

Shows how frame 150 is filtered:

dftest "frame.number == 150"

See Also

wireshark-filter(4)

Authors

Original Author
Jan Šafránek

Contributors
Jaap Keuter

Info

2023-01-21