how to build a plugin for asn.1 encoded packet for wireshark 2.2 using cmake option? asked 22 Apr '17, 22:59 rose_us showing 5 of 8 show 3 more comments |
how to build a plugin for asn.1 encoded packet for wireshark 2.2 using cmake option? asked 22 Apr '17, 22:59 rose_us showing 5 of 8 show 3 more comments |
The Wiki gives a start, but could use some additions.
hi jaap,thanks for answering,tried toyasn1 example ,but in cmake its giving error as cannot find souce file: packet-toyasn1.c
how should i resolve this?
one more clarification which i need is should i include the toyasn1 plugin in epan/asn1 folder or in normal plugins folder ?
It's probably easier to build it as an normal dissector. At least start of like that.
thanks for yoursuggestion,but i wanted it as plugin.i tried as there in wiki,but didnt understand what the packet-template file is uesd for?
Research the Wiki a little more.
The template file is the base of the dissector and includes the auto generated files. You need to add the dissector specific code there and call the generated code from it, see the other asn1 based dissectors for examples. I still recommend starting it as a built in dissector to minimize the effort to get all the pieces togeter. THEN you can fiddle with the cmake files to make it a plugin.
Hi, Jaap Is the wiki works with wirshark 2.3 sources? the Toyasn1 plugin is last updated in 2010.
Thanks