Ask Your Question

Revision history [back]

Capturing Profisafe packets using Lua Wireshark dissector

I am writing a Lua script to capture profisafe packets on wireshark.It is above the profinet layer in the stack.The wireshark has a built in profinet dissector but does not have a profisafe dissector.

For other protocols built on tcp or udp protocol one can do something like

local tcp_port = Dissector.get("tcp.port")
tcp_port:add(1234,foo_protocol)

to capture the packets that arises and received by the port 1234.

But profisafe is built on profinet and does not contain tcp or udp as the underlying layer.How to capture the packets in this case? I tried giving ethernet frame address in the place of port name but it did not work.