How to write a lua dissector to follow stream?

asked 2023-05-26 06:37:19 +0000

ntyy75 gravatar image

updated 2023-05-26 08:24:25 +0000


I want to make a pseudo protocol (to transfer text messages) that will have both control packet and text(data) packet. Control packets and Text packets will come as IP + UDP + DATA.

For control packets, DATA section under UDP will be as packetType(control) + session ID + packetContent(START session or FINISH session).

For text packets, DATA section under UDP will be packetType(text) + sessionID + packetLength + data(ascii text)

So, a stream starts with START control packet and ends with FINISH session. In between these two control packets, text packets occur. Each control and text packets can be associated(linked) with sessionID. This protocol is fairly simple to dissect with lua. However, can I make a streamizer as wireshark (right click+Follow+HTTP) or show packets as related packets as in document (3.18. The “Packet List” Pane)?

edit retag flag offensive close merge delete