使用 Lua Wireshark 解析器捕获 Profisafe 数据包

发布于 2025-01-13 23:23:26 字数 371 浏览 2 评论 0原文

我正在编写一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬心 2025-01-20 23:23:26

使用菜单“编辑”、“首选项”、“协议”并搜索 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文