Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Functions
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
 
struct  ph_stats_t
 

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.