Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
column-info.h
Go to the documentation of this file.
1/* column-info.h
2 * Definitions for internal column structures and routines
3 *
4 * For internal Wireshark use only. Don't include this header in dissectors!
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <[email protected]>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef __COLUMN_INFO_H__
14#define __COLUMN_INFO_H__
15
16#include <epan/column-utils.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
26typedef struct _proto_node proto_tree;
27
28#define COLUMN_FIELD_FILTER "_ws.col."
29
31typedef struct {
32 const char **col_expr;
33 char **col_expr_val;
35
39typedef struct {
40 char *dftext;
44
46typedef struct {
47 int col_fmt;
48 bool *fmt_matx;
49 char *col_title;
54 const char *col_data;
55 char *col_buf;
57 bool writable;
58 int hf_id;
60
72
76WS_DLL_PUBLIC void col_setup(column_info *cinfo, const int num_cols);
77
81WS_DLL_PUBLIC void col_cleanup(column_info *cinfo);
82
85extern void col_init(column_info *cinfo, const struct epan_session *epan);
86
89WS_DLL_PUBLIC void col_fill_in_frame_data(const frame_data *fd, column_info *cinfo, const int col, bool const fill_col_exprs);
90
93WS_DLL_PUBLIC void col_fill_in(packet_info *pinfo, const bool fill_col_exprs, const bool fill_fd_colums);
94
99WS_DLL_PUBLIC void col_fill_in_error(column_info *cinfo, frame_data *fdata, const bool fill_col_exprs, const bool fill_fd_colums);
100
103WS_DLL_PUBLIC bool col_data_changed(void);
104
105void col_custom_set_edt(struct epan_dissect *edt, column_info *cinfo);
106
107WS_DLL_PUBLIC
108void col_custom_prime_edt(struct epan_dissect *edt, column_info *cinfo);
109
112WS_DLL_PUBLIC
113char* col_custom_get_filter(struct epan_dissect *edt, column_info *cinfo, const int col);
114
115WS_DLL_PUBLIC
116bool have_custom_cols(column_info *cinfo);
117
118WS_DLL_PUBLIC
119bool have_field_extractors(void);
120
121WS_DLL_PUBLIC
122bool col_has_time_fmt(column_info *cinfo, const int col);
123
124WS_DLL_PUBLIC
125bool col_based_on_frame_data(column_info *cinfo, const int col);
126
127void
128col_register_protocol(void);
129
130extern
131void col_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
132
133#ifdef __cplusplus
134}
135#endif /* __cplusplus */
136
137#endif /* __COLUMN_INFO_H__ */
void col_init(column_info *cinfo, const struct epan_session *epan)
Definition column-utils.c:144
WS_DLL_PUBLIC void col_fill_in(packet_info *pinfo, const bool fill_col_exprs, const bool fill_fd_colums)
Definition column-utils.c:1916
WS_DLL_PUBLIC bool col_data_changed(void)
Definition column-utils.c:2064
WS_DLL_PUBLIC void col_fill_in_error(column_info *cinfo, frame_data *fdata, const bool fill_col_exprs, const bool fill_fd_colums)
Definition column-utils.c:2034
WS_DLL_PUBLIC char * col_custom_get_filter(struct epan_dissect *edt, column_info *cinfo, const int col)
Definition column-utils.c:435
WS_DLL_PUBLIC void col_fill_in_frame_data(const frame_data *fd, column_info *cinfo, const int col, bool const fill_col_exprs)
Definition column-utils.c:1836
WS_DLL_PUBLIC void col_cleanup(column_info *cinfo)
Definition column-utils.c:106
WS_DLL_PUBLIC void col_setup(column_info *cinfo, const int num_cols)
Definition column-utils.c:61
Definition packet_info.h:43
Definition proto.h:903
Definition column-info.h:39
char * dftext
Definition column-info.h:40
struct epan_dfilter * dfilter
Definition column-info.h:41
int field_id
Definition column-info.h:42
Definition column-info.h:31
const char ** col_expr
Definition column-info.h:32
char ** col_expr_val
Definition column-info.h:33
Definition column-info.h:46
const char * col_data
Definition column-info.h:54
int col_custom_occurrence
Definition column-info.h:51
struct epan_dfilter * col_custom_dfilter
Definition column-info.h:53
GSList * col_custom_fields_ids
Definition column-info.h:52
int col_fence
Definition column-info.h:56
char * col_buf
Definition column-info.h:55
int col_fmt
Definition column-info.h:47
bool * fmt_matx
Definition column-info.h:48
char * col_title
Definition column-info.h:49
char * col_custom_fields
Definition column-info.h:50
bool writable
Definition column-info.h:57
Definition column-info.h:62
int * col_first
Definition column-info.h:66
int num_cols
Definition column-info.h:64
GRegex * prime_regex
Definition column-info.h:70
col_expr_t col_expr
Definition column-info.h:68
bool writable
Definition column-info.h:69
int * col_last
Definition column-info.h:67
col_item_t * columns
Definition column-info.h:65
Definition dfilter-int.h:35
Definition epan_dissect.h:28
Definition epan.c:467
Definition tvbuff-int.h:35