User Guide
Lua Support in Wireshark
197
11.12.4.19.1. Arguments
offset (optional) The offset (in octets) from the begining of the TvbRange. Defaults to 0.
length (optional) The length (in octets) of the range. Defaults to until the end of the TvbRange.
11.12.4.19.2. Returns
The TvbRange
11.12.4.20. tvbrange:len()
Obtain the length of a TvbRange
11.12.4.21. tvbrange:offset()
Obtain the offset in a TvbRange
11.12.4.22. 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