Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I install the Wireshark development using the Visual Studio 2002

Presumably meaning "Visual Studio 2022", not "2002".

If you want to add a built-in protocol dissector, in a source file named "packet-sf19.c", to Wireshark. you:

  • put packet-sf19.c in the "dissectors" subdirectory/subfolder of the "epan" directory/folder ("epan/dissectors" on UNIX, "epan\dissectors on Windows") - not in the "epan" directory/folder itself;
  • add to the "CMakeLists.txt" file in the "dissectors" directory/folder a line ${CMAKE_CURRENT_SOURCE_DIR}/packet-sf19.c to the list of dissectors following the set(DISSECTOR_SRC line (and before the closing ) line at the end of that list - not to the"CMakeLists.txt" file in the "epan" directory/folder.

It will probably not be necessary to re-run CMake - that should happen automatically, as you've modified the "CMakeLists.txt" file.

However, if you did the stuff in the list above and the resulting Wireshark still can't dissect SF19 packets, try running CMake again in the build directory and try building again.