Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
proto_hier_stats.h File Reference
#include <epan/proto.h>
#include <epan/cfile.h>

Go to the source code of this file.

Classes

struct  ph_stats_node_t
 Accumulates per-protocol packet and byte statistics for a single node in the protocol hierarchy tree. More...
struct  ph_stats_t
 Holds aggregate protocol hierarchy statistics for a complete capture or filtered set of packets. More...

Functions

ph_stats_tph_stats_new (capture_file *cf)
 Create a new protocol hierarchy statistics object.
void ph_stats_free (ph_stats_t *ps)
 Frees memory allocated for a protocol hierarchy statistics structure.

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

Protocol Hierarchy Statistics

Function Documentation

◆ ph_stats_free()

void ph_stats_free ( ph_stats_t * ps)

Frees memory allocated for a protocol hierarchy statistics structure.

This function releases all resources associated with the given protocol hierarchy statistics structure, including its tree and any dynamically allocated data.

Parameters
psPointer to the protocol hierarchy statistics structure to be freed.

◆ ph_stats_new()

ph_stats_t * ph_stats_new ( capture_file * cf)

Create a new protocol hierarchy statistics object.

Parameters
cfPointer to the capture file structure.
Returns
ph_stats_t* Pointer to the newly created protocol hierarchy statistics object, or NULL if an error occurred.