|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
| struct | _extcap_value |
| A single selectable value option associated with a selector, radio, or multicheck argument. More... | |
| struct | _extcap_complex |
| A typed scalar value used to represent argument defaults and range bounds. More... | |
| struct | _extcap_arg |
| A fully parsed extcap argument sentence with all its associated options. More... | |
| struct | _extcap_interface |
| Describes a single capture interface advertised by an extcap binary. More... | |
| struct | _extcap_dlt |
| Describes a data link type (DLT) supported by an extcap interface. More... | |
| struct | _extcap_token_sentence |
| A single tokenized extcap output sentence with its key/value parameter map. More... | |
Typedefs | |
| typedef struct _extcap_value | extcap_value |
| A single selectable value option associated with a selector, radio, or multicheck argument. | |
| typedef struct _extcap_complex | extcap_complex |
| A typed scalar value used to represent argument defaults and range bounds. | |
| typedef struct _extcap_arg | extcap_arg |
| A fully parsed extcap argument sentence with all its associated options. | |
| typedef struct _extcap_interface | extcap_interface |
| Describes a single capture interface advertised by an extcap binary. | |
| typedef struct _extcap_dlt | extcap_dlt |
| Describes a data link type (DLT) supported by an extcap interface. | |
| typedef struct _extcap_token_sentence | extcap_token_sentence |
| A single tokenized extcap output sentence with its key/value parameter map. | |
Functions | |
| extcap_complex * | extcap_parse_complex (extcap_arg_type complex_type, const char *data) |
| Parse a complex value from a string. | |
| void | extcap_free_complex (extcap_complex *comp) |
| Free a complex value. | |
| void | extcap_printf_complex (extcap_complex *comp) |
| Prints a complex type using its string representation. | |
| char * | extcap_get_complex_as_string (extcap_complex *comp) |
| Get a string representation of a complex type. | |
| int | extcap_complex_get_int (extcap_complex *comp) |
| Retrieves an integer value from an extcap complex structure. | |
| unsigned | extcap_complex_get_uint (extcap_complex *comp) |
| Retrieves an unsigned integer value from an extcap complex structure. | |
| int64_t | extcap_complex_get_long (extcap_complex *comp) |
| Retrieves a long value from an extcap complex structure. | |
| double | extcap_complex_get_double (extcap_complex *comp) |
| Retrieves the double value from an extcap_complex structure. | |
| bool | extcap_complex_get_bool (extcap_complex *comp) |
| Retrieves the boolean value from an extcap complex structure. | |
| char * | extcap_complex_get_string (extcap_complex *comp) |
| Get the string value from an extcap complex structure. | |
| bool | extcap_compare_is_default (extcap_arg *element, extcap_complex *test) |
| Compares an argument's default complex value with a test complex value. | |
| void | extcap_free_arg (extcap_arg *a) |
| Free a single argument. | |
| void | extcap_free_toolbar_control (iface_toolbar_control *control) |
| Free entire toolbar control structure. | |
| void | extcap_free_arg_list (GList *a) |
| Free an entire arg list. | |
| GList * | extcap_parse_args (char *output) |
| Parses arguments from extcap output. | |
| GList * | extcap_parse_values (char *output) |
| Parse all sentences for values. | |
| GList * | extcap_parse_interfaces (char *output, GList **control_items) |
| Parse all sentences for interfaces. | |
| GList * | extcap_parse_dlts (char *output) |
| Parse all sentences for DLT (Data Link Type) information. | |
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
| enum extcap_arg_type |
Data type of an extcap argument, controlling its GUI widget and value parsing.
| enum extcap_param_type |
Token keys for key/value pairs within a parsed extcap sentence.
| Enumerator | |
|---|---|
| EXTCAP_PARAM_UNKNOWN | Unrecognized parameter key |
| EXTCAP_PARAM_ARGNUM | Argument number linking a value sentence to its parent arg sentence |
| EXTCAP_PARAM_CALL | CLI flag name passed to the extcap binary |
| EXTCAP_PARAM_DISPLAY | Human-readable label shown in the GUI |
| EXTCAP_PARAM_TYPE | Argument type token (maps to extcap_arg_type) |
| EXTCAP_PARAM_ARG | Argument number reference within a value or control sentence |
| EXTCAP_PARAM_DEFAULT | Default value for the argument |
| EXTCAP_PARAM_VALUE | Value payload for a value sentence |
| EXTCAP_PARAM_RANGE | Valid numeric range for the argument (min,max) |
| EXTCAP_PARAM_TOOLTIP | Tooltip text shown on hover in the GUI |
| EXTCAP_PARAM_PLACEHOLDER | Placeholder text shown in an empty input widget |
| EXTCAP_PARAM_NAME | Name of the extcap or interface |
| EXTCAP_PARAM_ENABLED | Whether a value option is selectable in the GUI |
| EXTCAP_PARAM_FILE_MUSTEXIST | If set, the selected file must already exist on disk |
| EXTCAP_PARAM_FILE_EXTENSION | Comma-separated list of accepted file extensions for file selectors |
| EXTCAP_PARAM_GROUP | GUI grouping label used to visually cluster related arguments |
| EXTCAP_PARAM_PARENT | Parent argument call name for hierarchical value relationships |
| EXTCAP_PARAM_REQUIRED | Whether the argument must be provided before capture can start |
| EXTCAP_PARAM_RELOAD | If set, changing this argument triggers a reload of dependent arguments |
| EXTCAP_PARAM_CONFIGURABLE | Whether the argument can be reconfigured during an active capture |
| EXTCAP_PARAM_PREFIX | Optional prefix string prepended to the argument value on the CLI |
| EXTCAP_PARAM_SAVE | Whether the argument value is persisted across capture sessions |
| EXTCAP_PARAM_VALIDATION | Regular expression used to validate the argument's string value |
| EXTCAP_PARAM_VERSION | Version string of the extcap binary |
| EXTCAP_PARAM_HELP | URL or text pointing to help documentation for the extcap |
| EXTCAP_PARAM_CONTROL | Control number linking a control sentence to toolbar actions |
| EXTCAP_PARAM_ROLE | Role of a toolbar control (e.g., logger, message) |
| enum extcap_sentence_type |
Identifies the type of a parsed extcap output sentence.
| bool extcap_compare_is_default | ( | extcap_arg * | element, |
| extcap_complex * | test | ||
| ) |
Compares an argument's default complex value with a test complex value.
| element | The extcap_arg structure containing the default complex value. |
| test | The extcap_complex structure to compare against the default. |
| bool extcap_complex_get_bool | ( | extcap_complex * | comp | ) |
Retrieves the boolean value from an extcap complex structure.
| comp | Pointer to the extcap_complex structure. |
| double extcap_complex_get_double | ( | extcap_complex * | comp | ) |
Retrieves the double value from an extcap_complex structure.
| comp | Pointer to the extcap_complex structure. |
| int extcap_complex_get_int | ( | extcap_complex * | comp | ) |
Retrieves an integer value from an extcap complex structure.
| comp | Pointer to the extcap_complex structure. |
| int64_t extcap_complex_get_long | ( | extcap_complex * | comp | ) |
Retrieves a long value from an extcap complex structure.
| comp | Pointer to the extcap_complex structure. |
| char * extcap_complex_get_string | ( | extcap_complex * | comp | ) |
Get the string value from an extcap complex structure.
| comp | Pointer to the extcap_complex structure. |
| unsigned extcap_complex_get_uint | ( | extcap_complex * | comp | ) |
Retrieves an unsigned integer value from an extcap complex structure.
| comp | Pointer to the extcap_complex structure. |
| void extcap_free_arg | ( | extcap_arg * | a | ) |
Free a single argument.
This function releases all resources associated with an extcap_arg structure, including freeing memory for its various fields and nested structures.
| a | Pointer to the extcap_arg structure to be freed. |
| void extcap_free_arg_list | ( | GList * | a | ) |
Free an entire arg list.
This function frees a GList containing extcap_arg structures, calling extcap_free_arg on each element.
| a | The GList to be freed. |
| void extcap_free_complex | ( | extcap_complex * | comp | ) |
Free a complex value.
| comp | Pointer to the extcap_complex structure to be freed. |
| void extcap_free_toolbar_control | ( | iface_toolbar_control * | control | ) |
Free entire toolbar control structure.
| control | Pointer to the toolbar control structure to be freed. |
| char * extcap_get_complex_as_string | ( | extcap_complex * | comp | ) |
Get a string representation of a complex type.
| GList * extcap_parse_args | ( | char * | output | ) |
Parses arguments from extcap output.
Parser for extcap data
| output | The output string to parse. |
| extcap_complex * extcap_parse_complex | ( | extcap_arg_type | complex_type, |
| const char * | data | ||
| ) |
Parse a complex value from a string.
| complex_type | The type of the complex value. |
| data | The string representation of the complex value. |
| GList * extcap_parse_dlts | ( | char * | output | ) |
Parse all sentences for DLT (Data Link Type) information.
This function tokenizes the input output into sentences and then parses each sentence to extract DLT information. It returns a GList containing parsed extcap_dlt structures.
| output | The input string containing DLT information. |
| GList * extcap_parse_interfaces | ( | char * | output, |
| GList ** | control_items | ||
| ) |
Parse all sentences for interfaces.
This function parses the interfaces section of extcap output and returns a list of interface objects.
| output | The extcap output string to parse. |
| control_items | Pointer to a GList containing control items for parsing. |
| GList * extcap_parse_values | ( | char * | output | ) |
Parse all sentences for values.
| output | The output string containing sentences to parse. |
| void extcap_printf_complex | ( | extcap_complex * | comp | ) |
Prints a complex type using its string representation.
| comp | Pointer to the extcap_complex structure to be printed. |