John Zwinck이 언급했듯이 루아 또는 C에서 공정하게 관리 할 수있는 연쇄 해부학자와 같은 것을 원할 것입니다. 그러기 위해서는 논리를 절개 자로 구현하고 싶을 것입니다. 루아,이 같은에서 :
do
--TODO set up your extra "data" field
local tcp_table = DissectorTable.get("tcp.port")
local third_party_dissector tcp_table:get_dissector(PROTO_PORT)
function your_protocol.dissector(tvb, pinfo, tree)
--call the third party dissector
third_party_dissector:call(tvb, pinfo, tree)
--TODO do what you need with the data
end
--take over the port your protocol runs over
tcp_table_add(PROTO_PORT, your_protocol)
end
가 API 손에 유지하지만, 와이어 샤크에서 루아 dissectors 그냥 프로토 타입 정말 또한 것을 명심; 이들은 동등한 C 기반 해독기보다 비효율적이며 API는 C 해부 API보다 몇 가지 버전 지연됩니다.
Wireshark Q & A 사이트를보고 싶을 수도 있습니다. http://ask.wireshark.org/ – sylvanaar