Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 2 KB

README.md

File metadata and controls

39 lines (26 loc) · 2 KB

Readme for MTP tools

The project contains an Wireshark plugin to deal with PTP / MTP / PTP-IP / Fuji PTP over IP in various flavors. One of the goals was to to create an easy to extend Wireshark dissector for PTP.

The toolchain implements:

  • extract the descriptions of PTP types and constants to JSON from other sources: ptp_descriptions
  • generate code for dealing with PTP data based on JSON API descriptions code_generation
  • an example of such generated code: wireshark, an wireshark dissector lua plugin that extracts much more of PTP data that the original C-based dissector plugin

The code-generation approach is influenced by

Licensing:

I hope I can explain it as simple as possible. And: IANAL. In my understanding, extracting constants from some source code produces 'derivate work'. So using one of the scripts in ptp_descriptions creates a JSON file that has the same license as the original source code. This gives the following matrix:

This means:

  • using the code-generator with your own templates to create some source based on descriptions in ptp-bsd-license will generate BSD-licensed code.
  • using the code-generator with your own templates to create some source based on descriptions in ptp-lgpl-license will generate LGPL-licensed code.
  • using the code-generator to generate an Wireshark dissector will build GPL code, regardless of the descriptions used.