Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
wtap_block Struct Reference

A single instance of a pcapng block, holding its type descriptor, mandatory data payload, options, and reference count. More...

#include <wtap_opttypes.h>

Public Attributes

struct wtap_blocktype_tinfo
void * mandatory_data
GArray * options
int ref_count

Detailed Description

A single instance of a pcapng block, holding its type descriptor, mandatory data payload, options, and reference count.

Member Data Documentation

◆ info

struct wtap_blocktype_t* wtap_block::info

Pointer to the type descriptor that defines this block's structure and callbacks.

◆ mandatory_data

void* wtap_block::mandatory_data

Opaque pointer to the block's mandatory fields, allocated and managed by wtap_blocktype_t::create and wtap_blocktype_t::free_mand.

◆ options

GArray* wtap_block::options

Dynamic array of wtap_option_t entries representing the optional fields present in this block.

◆ ref_count

int wtap_block::ref_count

Reference count governing the lifetime of this block; the block is freed when the count reaches zero.


The documentation for this struct was generated from the following file: