Cannot see example "foo" ASN1 dissector after building

asked 2021-12-29 13:51:02 +0000

Hi all, I'm fairly new to ASN and asn2wrs in particular. I'm trying to set up the "foo" example ASN.1-based dissector and make sure it works before moving on to try and create one using my own asn files. I'm working on Windows x64. Here are my steps:

  • I DLed and built WS from source and made sure it works.
  • I added the example "foo" folder to Wireshark/epan/dissectors/asn1.
  • Changed "CMakeListsCustom.example.txt" to "CmakeListsCustom.txt" in both /dissectors and /dissectors/asn1 and made sure they're set:




  • Ran:

    cmake -G "Visual Studio 16 2019" -A x64 ..\wireshark

    after creating the wsbuild64 folder.

  • I then generated packet-foo.c and packet-foo.h by navigating to \wsbuild64\epan\dissectors\asn1\foo, running "generate_dissector-foo.vcxproj" in VS and building it. The .c and header files generate properly.
  • Finally I built WS by running:

msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln

I then run the build by either running Wireshark.sln through VS or through /run/RelWithDebInfo/Wireshark.exe, but I can't seem to be able to see the "foo" dissector (for instance, I can't find the "foo" display filter). I probably messed something up, but I'm not sure what. Would love some help.


edit retag flag offensive close merge delete