Skip to content

Wireshark Lua Types (Int64/UInt64/Struct) for LuaJIT

Notifications You must be signed in to change notification settings

barrybingo/WiresharkLuaTypes

Repository files navigation

Wireshark Lua Types (Int64/UInt64/Struct) for LuaJIT

Standalone native library that implements Int64/UInt64 and Struct

Source from https://github.com/wireshark/wireshark

Build

  • VS2019: use the vcxproj file and set AdditionalIncludeDirectories & AdditionalLibraryDirectories
  • Linux: use makefile
    make PLAT=linux LUAV_INSTALL=5.1 LUAV_INC=jit-2.1
    make install
    make test

Built and tested working with: * VS2019 - x64 - LuaJIT 2.1.0-beta3 * arch linux LuaJIT 2.1.0-beta3

Usage:

    luajit  -lwiresharktypes

or

    require("wiresharktypes")

    local mynum = UInt64(0xDEADF007, 0x12345678)

    for i = 1, 16 do
      mynum = mynum:rol(8)
      print(mynum:tohex())
    end

About

Wireshark Lua Types (Int64/UInt64/Struct) for LuaJIT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published