User Guide
Lua Support in Wireshark
208
11.12.4.27. tvbrange:offset()
Obtain the offset in a TvbRange
11.12.4.28. tvbrange:__tostring()
Converts the TvbRange into a string. As the string gets truncated you should use this only for debugging
purposes or if what you want is to have a truncated string in the format 67:89:AB:...
11.12.5. UInt
UInt64 represents a 64 bit unsigned integer.
11.13. Utility Functions
11.13.1. Dir
A Directory
11.13.1.1. Dir.open(pathname, [extension])
Usage: for filename in Dir.open(path) do ... end
11.13.1.1.1. Arguments
pathname The pathname of the directory
extension (optional) If given, only file with this extension will be returned
11.13.1.1.2. Returns
the Dir object
11.13.1.2. dir:__call()
At every invocation will return one file (nil when done)
11.13.1.3. dir:close()
Closes the directory
11.13.2. Non Method Functions
11.13.2.1. get_version()
Get Wireshark version
11.13.2.1.1. Returns
version string