View on GitHub

Devendra's Log

Wireshark and Lua bitwise operations

Lua has shipped a bitwise library since version 5.2. Wireshark Lua implementation has had the same bitwise operations, but the functions are accessed using table name bit instead of bit32.

If you are not familiar with writing dissectors for Wireshark - in Lua - I recommend reading Create a Wireshark dissector in Lua.