Hi, And I think the OP wants to use the protocol name tag to call the LUA dissector e.g the dissector needs to be registered by name. Regards Anders
Den tis 18 feb. 2020 22:29Pascal Quantin <pas...@wireshark.org> skrev: > Hi Chris, > > Le mar. 18 févr. 2020 à 22:18, Maynard, Chris via Wireshark-dev < > wireshark-dev@wireshark.org> a écrit : > >> I’m not quite sure what is meant by EXPORTED_PDU here. Maybe you could >> share some Lua code and provide a little more detail and context? >> > > For the exported PDU format description, see > https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob;f=epan/exported_pdu.h;h=e5226c6e070caedccc00003828ff9fa7b14a56b1;hb=refs/heads/master > > Pascal. > >> - Chris >> >> (I don’t consider myself a Lua expert by any means, but I’ve written a >> number of Lua dissectors, so I guess that qualifies me as one of the >> “lua_guys”.) >> >> >> >> *From:* Wireshark-dev <wireshark-dev-boun...@wireshark.org> *On Behalf >> Of *Anders Broman via Wireshark-dev >> *Sent:* Tuesday, February 18, 2020 11:18 AM >> *To:* Developer support list for Wireshark <wireshark-dev@wireshark.org> >> *Cc:* Anders Broman <anders.bro...@ericsson.com> >> *Subject:* Re: [Wireshark-dev] Mixing Exported_pdu with Lua >> >> >> >> Hi, >> >> I do not do LUA code but did you do Proto.new(name, desc) >> <https://wiki.wireshark.org/LuaAPI/Proto#Proto.new.28name.2C_desc.29> and >> then use that name to call the dissector? >> >> @lua guys: Does that register the LUA dissector by name? or do you do it >> some other way? >> >> Regards >> >> Anders >> >> >> >> *From:* Wireshark-dev <wireshark-dev-boun...@wireshark.org> *On Behalf >> Of *Juanjo Martin Carrascosa >> *Sent:* den 17 februari 2020 16:40 >> *To:* Developer support list for Wireshark <wireshark-dev@wireshark.org> >> *Subject:* [Wireshark-dev] Mixing Exported_pdu with Lua >> >> >> >> Hi devs, >> >> >> >> Is it possible to register a Lua dissector so it is called by >> EXPORTED_PDU? I don't manage to "register" the Lua dissector properly. >> >> >> >> My goal is to create a dissector in Lua that is called by EXPORTED_PDU >> and later calls another C dissector from Wireshark. Once I get this working >> and this protocol is stable enough, I may write a C file for it. >> >> >> >> Any help would be appreciated! >> >> >> >> Regards, >> >> Juanjo Martin >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> CONFIDENTIALITY NOTICE: This message is the property of International >> Game Technology PLC and/or its subsidiaries and may contain proprietary, >> confidential or trade secret information. This message is intended solely >> for the use of the addressee. If you are not the intended recipient and >> have received this message in error, please delete this message from your >> system. Any unauthorized reading, distribution, copying, or other use of >> this message or its attachments is strictly prohibited. >> >> ___________________________________________________________________________ >> Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> >> Archives: https://www.wireshark.org/lists/wireshark-dev >> Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev >> mailto:wireshark-dev-requ...@wireshark.org >> ?subject=unsubscribe > > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> > Archives: https://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev > mailto:wireshark-dev-requ...@wireshark.org > ?subject=unsubscribe
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe