This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

How do I add support for a new protocol to Wireshark?

asked Oct 05 '25

updated Oct 05 '25

Hello wireshark community, We are a hardware developer and we have created a simple UDP Ethernet protocol to stream with our own devices.

And It would be great to publish it on Wireshark.

I have a few questions:

  • Does the protocol have to be a standard? Is there a specification like port number, header count, etc..? Lets say We would like use UDP port: 7256 and our main header 20 byte long.
  • What do I need to do to publish and support it in Wireshark?

Thank you for your answers.

1 Answer

0

answered Oct 05 '25

To answer your questions:

  1. No, any protocol may be included if there's an interest to doing so
  2. To get a dissector (written in C) included, you would have to create a Merge Request on the GitLab Wireshark repository.

But there are a few other questions you may want to consider, among which.

  1. Do you want to create a dissector written in C, to be included in the Wireshark repository and be 'fixed' in a stable release, or you want to create a dissector written in Lua, which you maintain and distribute yourself? The first gives wider reach, but less flexibility, the later vice versa.

Go through the Developer's Guide and doc/README.dissector, and take inspiration from the other dissectors that are already build in.

Comments

Hello, Thank you for the fast response. I will follow up the guidelines through the Developer's Guide as soon as possible. Best regards

User 92807 ( Oct 05 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.