我正在用 Lua 为 Ethercat 协议编写一个链式解析器。我给我的链式解剖器小猫命名。
到目前为止,littlecat 正确地剖析了我想要的领域。然而,不是在内置的 ecat 解析器之后执行,而是 littlecat 完全接管了它。
这就是我的 Lua 代码末尾的注册的样子。
-- Initialize Protocol
function littlecat.init()
end
-- Register Chained Dissector Ethercat Port
local ethercat_dissector_table = DissectorTable.get("ecatf.type")
dissector = ethercat_dissector_table:get_dissector(1)
-- Dissector can be called from littlecat.dissector
-- So the previous dissector gets called
ethercat_dissector_table:add(1, littlecat)
在执行 ecat 后如何让我的解剖器执行?