Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
frame_data.h File Reference
#include <ws_diag_control.h>
#include <ws_symbol_export.h>
#include <wsutil/nstime.h>

Go to the source code of this file.

Classes

struct  _frame_data
 Frame data structure. More...
 

Macros

#define PINFO_FD_VISITED(pinfo)   ((pinfo)->fd->visited)
 

Typedefs

typedef struct wtap_rec wtap_rec
 
typedef DIAG_OFF_PEDANTIC struct _frame_data frame_data
 Frame data structure.
 

Enumerations

enum  packet_char_enc { PACKET_CHAR_ENC_CHAR_ASCII = 0 , PACKET_CHAR_ENC_CHAR_EBCDIC = 1 }
 Types of character encodings. More...
 

Functions

DIAG_ON_PEDANTIC WS_DLL_PUBLIC int frame_data_compare (const struct epan_session *epan, const frame_data *fdata1, const frame_data *fdata2, int field)
 Compare two frame_data structs by a given field.
 
WS_DLL_PUBLIC void frame_data_reset (frame_data *fdata)
 Reset a frame_data struct to its initial state without freeing it.
 
WS_DLL_PUBLIC void frame_data_destroy (frame_data *fdata)
 Free all resources owned by a frame_data struct.
 
WS_DLL_PUBLIC void frame_data_aggregation_free (frame_data *fdata)
 Free the aggregation data associated with a frame_data struct.
 
WS_DLL_PUBLIC void frame_data_init (frame_data *fdata, uint32_t num, const wtap_rec *rec, int64_t offset, uint32_t cum_bytes)
 Initialize a frame_data struct for a newly read frame.
 
bool frame_rel_first_frame_time (const struct epan_session *epan, const frame_data *fdata, nstime_t *delta)
 Compute the time delta from the first frame to this frame.
 
bool frame_rel_time (const struct epan_session *epan, const frame_data *fdata, nstime_t *delta)
 Compute the time delta from the capture start to this frame.
 
bool frame_rel_start_time (const struct epan_session *epan, const frame_data *fdata, nstime_t *delta)
 Compute the time delta from the first displayed frame to this frame.
 
bool frame_delta_time_prev_captured (const struct epan_session *epan, const frame_data *fdata, nstime_t *delta)
 Compute the time delta from the previous captured frame to this frame.
 
bool frame_delta_time_prev_displayed (const struct epan_session *epan, const frame_data *fdata, nstime_t *delta)
 Compute the time delta from the previous displayed frame to this frame.
 
WS_DLL_PUBLIC void frame_data_set_before_dissect (frame_data *fdata, nstime_t *elapsed_time, const frame_data **frame_ref, const frame_data *prev_dis)
 Set frame_data fields before dissection.
 
WS_DLL_PUBLIC void frame_data_set_after_dissect (frame_data *fdata, uint32_t *cum_bytes)
 Set frame_data fields after dissection.
 

Detailed Description

Low-level frame data and metadata.