Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
tap-protohierstat.h
Go to the documentation of this file.
1
10#ifndef __TAP_PROTO_HIER_STAT_H__
11#define __TAP_PROTO_HIER_STAT_H__
12
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
17extern int pc_proto_id;
18
19typedef struct _phs_t {
20 struct _phs_t *sibling;
21 struct _phs_t *child;
22 struct _phs_t *parent;
23 char *filter;
24 int protocol;
25 const char *proto_name;
26 uint32_t frames;
27 uint64_t bytes;
28} phs_t;
29
37extern phs_t * new_phs_t(phs_t *parent, const char *filter);
38
47extern void free_phs(phs_t *rs);
48
61extern tap_packet_status protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const void *dummy _U_, tap_flags_t flags _U_);
62
63#ifdef __cplusplus
64}
65#endif /* __cplusplus */
66
67#endif /* __TAP_PROTO_HIER_STAT_H__ */
68
69/*
70 * Editor modelines - https://www.wireshark.org/tools/modelines.html
71 *
72 * Local variables:
73 * c-basic-offset: 8
74 * tab-width: 8
75 * indent-tabs-mode: t
76 * End:
77 *
78 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
79 * :indentSize=8:tabSize=8:noTabs=false:
80 */
Definition packet_info.h:40
Definition tap-protohierstat.h:19
Definition epan_dissect.h:25
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.
Definition tap-protohierstat.c:77
void free_phs(phs_t *rs)
Frees a Protocol Hierarchy Statistics (PHS) structure.
Definition tap-protohierstat.c:52
phs_t * new_phs_t(phs_t *parent, const char *filter)
Creates a new Protocol Hierarchy Statistics (PHS) node.
Definition tap-protohierstat.c:32
tap_packet_status
Definition tap.h:22