![]() | 1 | initial version |
A list of lua tables is in epan/wslua/init_wslua.c:
#define WSLUA_BASE_TABLE "base" #define WSLUA_FTYPE_TABLE "ftypes" #define WSLUA_FRAMETYPE_TABLE "frametype" #define WSLUA_CONV_TYPE_TABLE "convtypes" #define WSLUA_EXPERT_TABLE "expert" #define WSLUA_EXPERT_GROUP_TABLE "group" #define WSLUA_EXPERT_SEVERITY_TABLE "severity" #define WSLUA_WTAP_ENCAPS_TABLE "wtap_encaps" #define WSLUA_WTAP_TSPREC_TABLE "wtap_tsprecs" #define WSLUA_WTAP_COMMENTS_TABLE "wtap_comments" #define WSLUA_WTAP_RECTYPES_TABLE "wtap_rec_types" #define WSLUA_WTAP_PRESENCE_FLAGS_TABLE "wtap_presence_flags"
The contents of each table can be dumped in the Lua console of the Wireshark gui.
There is a typo/name change for wtap_file_tsprec
that needs updating.
for k,v in pairs(wtap_encaps) do print(k,v) end
JUNIPER_MLPPP 81 UNKNOWN 0 SILABS_DEBUG_CHANNEL 222 PKTAP 171 BER 90 BACNET_MS_TP_WITH_PHDR 143 X2E_XORAYA 105 IEEE802_15_4_TAP 206 ...
for k,v in pairs(wtap_tsprecs) do print(k,v) end
10_NSEC 8 MSEC 3 SEC 0 10_MSEC 2 NSEC 9 10_USEC 5 CSEC 2 100_NSEC 7 USEC 6 DSEC 1 UNKNOWN -2 100_MSEC 1 100_USEC 4 PER_PACKET -1