Visual studio code Wireshark lua包路径是什么?
我们的自定义Wireshark解析器以lua编码,以以下代码开头:Visual studio code Wireshark lua包路径是什么?,visual-studio-code,lua,wireshark-dissector,Visual Studio Code,Lua,Wireshark Dissector,我们的自定义Wireshark解析器以lua编码,以以下代码开头: -- Create a protocol object test_protocol = Proto("test", "test protocol") messageLength_F = ProtoField.uint32("test.messageLength", "messageLength", base.HEX) requestID_F
-- Create a protocol object
test_protocol = Proto("test", "test protocol")
messageLength_F = ProtoField.uint32("test.messageLength", "messageLength", base.HEX)
requestID_F = ProtoField.uint32("test.requestID" , "requestID" , base.HEX)
responseTo_F = ProtoField.uint32("test.responseTo" , "responseTo" , base.HEX)
opCode_F = ProtoField.uint32("test.opCode" , "opCode" , base.HEX)
它工作得很好,但是我正在使用的VisualStudio代码lua扩展(sumneko.lua)报告Proto和ProtoField是未定义的全局变量。我想我需要告诉扩展lua运行时包路径
Wireshark的包路径是什么
我应该使用require在解析器中指定该路径吗?我的问题在这里得到了回答: