|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Classes | |
| struct | _extcap_value |
| struct | _extcap_complex |
| struct | _extcap_arg |
| struct | _extcap_interface |
| struct | _extcap_dlt |
| struct | _extcap_token_sentence |
Macros | |
| #define | ENUM_KEY(s) GUINT_TO_POINTER((unsigned)s) |
| #define | EXTCAP_PARAM_REQUIRED_SUFFICIENT "sufficient" |
Typedefs | |
| typedef struct _extcap_value | extcap_value |
| typedef struct _extcap_complex | extcap_complex |
| typedef struct _extcap_arg | extcap_arg |
| typedef struct _extcap_interface | extcap_interface |
| typedef struct _extcap_dlt | extcap_dlt |
| typedef struct _extcap_token_sentence | extcap_token_sentence |
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) |
| 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
| 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 | ) |
Parser for extcap data
| 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. |