Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
_wslua_field_t Struct Reference

Describes a protocol header field registered from a Lua dissector script. More...

#include <wslua.h>

Public Attributes

int hfid
 
int ett
 
char * name
 
char * abbrev
 
char * blob
 
enum ftenum type
 
unsigned base
 
const void * vs
 
int valuestring_ref
 
uint64_t mask
 

Detailed Description

Describes a protocol header field registered from a Lua dissector script.

Member Data Documentation

◆ abbrev

char* _wslua_field_t::abbrev

Abbreviated dotted name used in display filters (e.g. "tcp.srcport").

◆ base

unsigned _wslua_field_t::base

Display base (BASE_DEC, BASE_HEX, etc.) used when rendering the field value.

◆ blob

char* _wslua_field_t::blob

Optional description string shown in the field's tooltip.

◆ ett

int _wslua_field_t::ett

ett index for the subtree associated with this field; -1 until registered.

◆ hfid

int _wslua_field_t::hfid

Header field ID assigned during registration; -1 until registered.

◆ mask

uint64_t _wslua_field_t::mask

Bitmask applied to extract this field's value from its parent field.

◆ name

char* _wslua_field_t::name

Full human-readable name of the field (e.g. "Source Port").

◆ type

enum ftenum _wslua_field_t::type

Field type (FT_UINT32, FT_STRING, etc.) determining how the value is decoded.

◆ valuestring_ref

int _wslua_field_t::valuestring_ref

Lua registry reference to the value string table, or LUA_NOREF if unused.

◆ vs

const void* _wslua_field_t::vs

Optional value_string or range_string table for translating numeric values to labels.


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