Hi , I am trying to write the lua script ( 5.2.3) for windows . extension lua script for wireshark . facing error in this line "local f_proto = ProtoField.uint8("multi.protocol","Protocol",base.DEC,vs_protos)" attempt to index global 'base' (a nil value) . How to fix this issue ..?? regards, Beno asked 11 Sep '14, 22:16 benok |
One Answer:
Where in The best thing to do would be to not call answered 12 Sep '14, 07:33 Hadriel |
Which version of wireshark/tshark are you using ?
And how are you executing the script ?
I've tried this specific line in Evaluate Lua window Tools->Lua->Evaluate of my wireshark 1.12.0 and it worked that is it did not raise any errors.
hi izopizo ,
I am using wireshark 1.12.0 , executing via wireshark init.lua ( added dofile( "test.lua" ) , the content on the test.lua is local p_multi = Proto("multi","MultiProto");
local vs_protos = { [2] = "mtp2", [3] = "mtp3", [4] = "alcap", [5] = "h248", [6] = "ranap", [7] = "rnsap", [8] = "nbap" }
local f_proto = ProtoField.uint8("multi.protocol","Protocol",base.DEC,vs_protos)