使用 Lua Wireshark 解析器捕获 Profisafe 数据包
我正在编写一个Lua脚本来捕获wireshark上的profinet数据包。它位于堆栈中的profinet层之上。wireshark会解析profinet数据包,但不会解析profinet。
对于基于 tcp 或 udp 协议构建的其他协议,可以执行类似
local tcp_port = Dissector.get("tcp.port")
tcp_port:add(1234,foo_protocol)
捕获端口 1234 产生和接收的数据包之
类的操作。但是 profisafe 构建于 Profinet 之上,不包含 tcp 或 udp 作为底层。如何捕获数据包在这种情况下?我尝试在端口名称的位置给出以太网帧地址,但它不起作用。
I am writing a Lua script to capture profisafe packets on wireshark.It is above the profinet layer in the stack.The wireshark dissect the profinet packets but does not dissect the profisafe.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用菜单“编辑”、“首选项”、“协议”并搜索 PNIO:
PNIO 选项
然后选中“启用详细 PROFIsafe 剖析”复选框并定义一个目录,其中 GSDML PROFIsafe 设备的文件所在位置。
Use the menu Edit, Preferences, Protocols and search for PNIO:
PNIO options
Then select the checkbox "Enable detailed PROFIsafe dissection" and define a directory, where the GSDML file of the PROFIsafe device is located.