lua - Wireshark Lua 解析器插件表错误
问题描述
我在 ixia 时间戳拖车中的数据包之后有带有拖车数据的数据包。我正在尝试为 Wireshark 编写一个与 ixia-packet_trailer 插件完全相同的解析器。 https://raw.githubusercontent.com/boundary/wireshark/master/epan/dissectors/packet-ixiatrailer.c
但我想用 Lua 写,所以最容易改变。所以我更换了C线
heur_dissector_add("eth.trailer", dissect_ixiatrailer, proto_ixiatrailer);
通过以下在 Lua
eth_table = DissectorTable.get("eth.trailer")
但我从 Wireshark 得到错误“获取错误的参数(DissectorTable_get no such dissector table)”
解决方案
由于"eth.trailer"
已注册为启发式列表(请参阅packet-eth.c),我认为您可能需要遵循此处提供的示例:https ://mika-s.github.io/wireshark/lua/dissector/2018/ 12/30/creating-port-independent-wireshark-dissectors-in-lua.html
基本上,我认为您将需要执行以下操作:
your_protocol:register_heuristic("eth.trailer", heuristic_checker)
...heuristic_checker
检查预告片是否真的适合您的解剖器的功能在哪里。
推荐阅读
- r - 在ggplot2中向极坐标图添加圆形参考线
- git - 在新机器上启动现有的 git 项目
- hazelcast - 在 Hazelcast 分布式缓存中手动加载数据
- wordpress - 在结帐时通过 URL 预填充自定义字段
- wordpress - 无法在不降低桌面速度的情况下优化移动设备的 Google Page Speed 分数
- typescript - “NextApiRequest”类型缺少“Request”类型的以下属性
>' - c# - 如何将 IsEnabled 指定为 XAML / WPF 中的属性的倒数
- javascript - 在 mongoose 函数之外返回空数组
- ios - Testflight (Apple) 应用内购买 (IAP) 多个购买对话框
- amazon-web-services - 请求无效:patch: Invalid value:... cannot convert int64 to string and Error from server (BadRequest): json: cannot unmarshal string