Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
tap-protohierstat.h File Reference

Go to the source code of this file.

Classes

struct  _phs_t
 

Typedefs

typedef struct _phs_t phs_t
 

Functions

phs_tnew_phs_t (phs_t *parent, const char *filter)
 Creates a new Protocol Hierarchy Statistics (PHS) node.
 
void free_phs (phs_t *rs)
 Frees a Protocol Hierarchy Statistics (PHS) structure.
 
tap_packet_status protohierstat_packet (void *prs, packet_info *pinfo, epan_dissect_t *edt, const void *dummy _U_, tap_flags_t flags _U_)
 Processes a packet for Protocol Hierarchy Statistics.
 

Variables

int pc_proto_id
 

Detailed Description

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

Function Documentation

◆ 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
rsPointer 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
parentThe parent PHS node, or NULL if this is the root node.
filterA 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()

tap_packet_status protohierstat_packet ( void *  prs,
packet_info pinfo,
epan_dissect_t edt,
const void *dummy  _U_,
tap_flags_t flags  _U_ 
)
extern

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
prsPointer to the tap data structure.
pinfoPacket information structure.
edtDissector tree structure.
dummyUnused parameter.
flagsUnused parameter.
Returns
TAP_PACKET_REDRAW if the window needs to be redrawn, otherwise TAP_PACKET_DONT_REDRAW.