0
나는 Ethercat 프로토콜을 위해 루아에서 쇠사슬로 된 해부학자를 쓰고있다. 나는 쇠사슬로 묶인 해부학사라는 이름을지었습니다.루아의 쇠사슬
내가 지금까지 가지고있는 것에 대해 littlecat은 원하는 필드를 정확하게 분석합니다. 그러나 내장 된 ecat 해독기를 실행 한 후에 littlecat이 완벽하게 처리합니다.
이것은 내 루아 코드의 끝에있는 등록 정보입니다.
-- 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을 실행 한 후에 내 디 사이 터를 실행할 수 있습니까?