Go to the source code of this file.
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
◆ free_phs()
| void free_phs |
( |
phs_t * |
rs | ) |
|
|
extern |
Frees a Protocol Hierarchy Statistics (PHS) structure.
This function recursively frees all memory associated with a PHS structure, including its filter, sibling, and child nodes.
- Parameters
-
| rs | Pointer to the PHS structure to be freed. |
◆ new_phs_t()
| phs_t * new_phs_t |
( |
phs_t * |
parent, |
|
|
const char * |
filter |
|
) |
| |
|
extern |
Creates a new Protocol Hierarchy Statistics (PHS) node.
- Parameters
-
| parent | The parent PHS node, or NULL if this is the root node. |
| filter | A filter string for the PHS node, or NULL if no filter is needed. |
- Returns
- phs_t* Pointer to the newly created PHS node.
◆ protohierstat_packet()
Processes a packet for Protocol Hierarchy Statistics.
This function updates the internal state of the Protocol Hierarchy Statistics tap data structure based on the provided packet information and dissector context. It checks if the dissector tree is available and iterates through its nodes to update statistics accordingly.
- Parameters
-
| prs | Pointer to the tap data structure. |
| pinfo | Packet information structure. |
| edt | Dissector tree structure. |
| dummy | Unused parameter. |
| flags | Unused parameter. |
- Returns
- TAP_PACKET_REDRAW if the window needs to be redrawn, otherwise TAP_PACKET_DONT_REDRAW.