lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday 20, Awadhesh Kumar wrote:
> Hi,
>
> I am writing LUA disectors for Wireshark packets. I am calling a utility
> application written in C from LUA file. I am getting a string (null
> terminated) from C application which in in hex string format (like*
> 2CA000*).

About a year ago I wrote a Wireshark protocol dissector in Lua.
You might find it helpful (BSD licensed):
http://opensimulator.org/index.php?title=LLUDP_Dissector

When I was writing it I had a hard time finding good up-to-date documention on 
the Lua Wireshark API (I hope that has changed since then).

It even contains a simple lexer & parser since the protocol it dissects uses a 
text file to describe the different message formats (similar to Google's 
Protocol Buffers) that each UDP packet can contain.

-- 
Robert G. Jakabosky