Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
column-info.h File Reference
#include <epan/column-utils.h>

Go to the source code of this file.

Classes

struct  col_expr_t
 
struct  col_custom_t
 
struct  col_item_t
 
struct  epan_column_info
 

Macros

#define COLUMN_FIELD_FILTER   "_ws.col."
 

Typedefs

typedef struct _proto_node proto_tree
 

Functions

WS_DLL_PUBLIC void col_setup (column_info *cinfo, const int num_cols)
 
WS_DLL_PUBLIC void col_cleanup (column_info *cinfo)
 
void col_init (column_info *cinfo, const struct epan_session *epan)
 
WS_DLL_PUBLIC void col_fill_in_frame_data (const frame_data *fd, column_info *cinfo, const int col, bool const fill_col_exprs)
 
WS_DLL_PUBLIC void col_fill_in (packet_info *pinfo, const bool fill_col_exprs, const bool fill_fd_colums)
 
WS_DLL_PUBLIC void col_fill_in_error (column_info *cinfo, frame_data *fdata, const bool fill_col_exprs, const bool fill_fd_colums)
 
WS_DLL_PUBLIC bool col_data_changed (void)
 
void col_custom_set_edt (struct epan_dissect *edt, column_info *cinfo)
 
WS_DLL_PUBLIC void col_custom_prime_edt (struct epan_dissect *edt, column_info *cinfo)
 
WS_DLL_PUBLIC char * col_custom_get_filter (struct epan_dissect *edt, column_info *cinfo, const int col)
 
WS_DLL_PUBLIC bool have_custom_cols (column_info *cinfo)
 
WS_DLL_PUBLIC bool have_field_extractors (void)
 
WS_DLL_PUBLIC bool col_has_time_fmt (column_info *cinfo, const int col)
 
WS_DLL_PUBLIC bool col_based_on_frame_data (column_info *cinfo, const int col)
 
void col_register_protocol (void)
 
void col_dissect (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 

Detailed Description

Column info.

Function Documentation

◆ col_cleanup()

WS_DLL_PUBLIC void col_cleanup ( column_info cinfo)

Cleanup all the data structures for constructing column data; undoes the allocations that col_setup() does.

◆ col_custom_get_filter()

WS_DLL_PUBLIC char * col_custom_get_filter ( struct epan_dissect edt,
column_info cinfo,
const int  col 
)

Get a filter expression for a custom column. This string must be g_free'd.

◆ col_data_changed()

WS_DLL_PUBLIC bool col_data_changed ( void  )

Check to see if our column data has changed, e.g. we have new request/response info.

◆ col_fill_in()

WS_DLL_PUBLIC void col_fill_in ( packet_info pinfo,
const bool  fill_col_exprs,
const bool  fill_fd_colums 
)

Fill in all (non-custom) columns of the given packet.

◆ col_fill_in_error()

WS_DLL_PUBLIC void col_fill_in_error ( column_info cinfo,
frame_data *  fdata,
const bool  fill_col_exprs,
const bool  fill_fd_colums 
)

Fill in columns if we got an error reading the packet. We set most columns to "???", and set the Info column to an error message.

◆ col_fill_in_frame_data()

WS_DLL_PUBLIC void col_fill_in_frame_data ( const frame_data *  fd,
column_info cinfo,
const int  col,
bool const  fill_col_exprs 
)

Fill in all columns of the given packet which are based on values from frame_data.

◆ col_init()

void col_init ( column_info cinfo,
const struct epan_session epan 
)
extern

Initialize the data structures for constructing column data.

◆ col_setup()

WS_DLL_PUBLIC void col_setup ( column_info cinfo,
const int  num_cols 
)

Allocate all the data structures for constructing column data, given the number of columns.