User Guide
Lua Support in Wireshark
196
11.12.4.14. tvbrange:ether()
Get an Ethernet Address from a TvbRange.
11.12.4.14.1. Returns
The Ethernet Address
11.12.4.14.2. Errors
• The range must be 6 bytes long
11.12.4.15. tvbrange:string()
Obtain a string from a TvbRange
11.12.4.15.1. Returns
The string
11.12.4.16. tvbrange:stringz()
Obtain a zero terminated string from a TvbRange
11.12.4.16.1. Returns
The zero terminated string
11.12.4.17. tvbrange:bytes()
Obtain a ByteArray
11.12.4.17.1. Returns
The ByteArray
11.12.4.18. tvbrange:bitfield([position], [length])
Get a bitfield from a TvbRange.
11.12.4.18.1. Arguments
position (optional) The bit offset from the begining of the TvbRange. Defaults to 0.
length (optional) The length (in bits) of the field. Defaults to 1.
11.12.4.18.2. Returns
The bitfield value
11.12.4.19. tvbrange:range([offset], [length])
Creates a sub-TvbRange from this TvbRange. This is used also as the TvbRange:__call() metamethod.