|
Wireshark 5.1.0
The Wireshark network protocol analyzer
|
#include <stdbool.h>#include "ws_symbol_export.h"Go to the source code of this file.
Macros | |
| #define | FIELDURLS_FILE_NAME "fieldurls" |
Functions | |
| WS_DLL_PUBLIC char * | field_url_expand (const char *url, const char *fieldname, const char *fieldvalue) |
| Replace the placeholders in a URL. | |
| WS_DLL_PUBLIC bool | field_url_needs_value (const char *fieldname, const char *protoname) |
| Check whether the value of a field is needed to get its URL. | |
| WS_DLL_PUBLIC char * | field_url_for (const char *fieldname, const char *protoname, const char *fieldvalue) |
| Get the user-defined URL for a field, with placeholders expanded. | |
User-defined override URLs for the "Filter Field Reference" action Copyright 2026, Mark Stout mark..nosp@m.stou.nosp@m.t@mar.nosp@m.ksto.nosp@m.ut.co.nosp@m.m
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| #define FIELDURLS_FILE_NAME "fieldurls" |
Personal (all profiles) field URL override file.
| WS_DLL_PUBLIC char * field_url_expand | ( | const char * | url, |
| const char * | fieldname, | ||
| const char * | fieldvalue ) |
Replace the placeholders in a URL.
Other text, including unknown "${...}" sequences, is left untouched.
| url | The URL, possibly containing placeholders. |
| fieldname | Abbreviation of the selected field, e.g. "tcp.len". |
| fieldvalue | Value of the selected field, or NULL for an empty value. |
| WS_DLL_PUBLIC char * field_url_for | ( | const char * | fieldname, |
| const char * | protoname, | ||
| const char * | fieldvalue ) |
Get the user-defined URL for a field, with placeholders expanded.
Tries an entry for fieldname, then one for protoname. An entry with rules gives the URL of the first rule that matches fieldvalue, or else its default URL, and if it has neither the next entry is tried.
| fieldname | Abbreviation of the selected field, e.g. "tcp.len". |
| protoname | Abbreviation of the field's protocol, e.g. "tcp". |
| fieldvalue | Value of the selected field, or NULL for an empty value. |
| WS_DLL_PUBLIC bool field_url_needs_value | ( | const char * | fieldname, |
| const char * | protoname ) |
Check whether the value of a field is needed to get its URL.
The value is needed if the entry that applies to the field has rules, which are matched against the value, or if its URL uses a "${fieldvalue}" or "${fieldvalueraw}" placeholder. Getting a field's value can be expensive (e.g. for large byte fields), so callers can use this to avoid computing it when it isn't needed.
| fieldname | Abbreviation of the selected field, e.g. "tcp.len". |
| protoname | Abbreviation of the field's protocol, e.g. "tcp". |