0
私はEthercatプロトコルのためにLuaの連鎖ディセクタを書いています。私は私の連鎖された解剖学的リトルキャットという名前をつけたLuaの鎖交したディセクタ
私が今までに持っていたことについては、littlecatが、私が望むフィールドを正しく解剖しました。しかし、組み込みのecatディセクタの後で実行する代わりに、littlecatは完全にそれを引き継ぎます。
これは私のルアコードの終わりの登録がどのように見えるかです。 ECATが実行された後、私は私の解剖器具を実行させることができどのよう
-- 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)
?