Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Re-use of header fields

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 09 Aug 2006 12:06:44 -0700

Benjamin M Stocks wrote:

I have a question on the mechanics of the header fields in Wireshark. I am developing a dissector for a protocol where a specific data format may repeat from 1 -> N times within the same payload. Can I reuse the same header field identifier, registered with proto_register_field_array, for each of the individual data blocks
within the same payload?

Yes. There is nothing whatsoever that requires that only one instance of a particular registered field appear in a given protocol tree, and there are plenty of dissectors that put multiple instances of a field in a protocol tree if the packet has more than one of them.

  • References:
    • [Wireshark-dev] Re-use of header fields
      • From: Benjamin M Stocks
  • Prev by Date: [Wireshark-dev] Standards supported by dissectors
  • Next by Date: [Wireshark-dev] ANSI MAP / TCAP dissector hooks
  • Previous by thread: [Wireshark-dev] Re-use of header fields
  • Next by thread: Re: [Wireshark-dev] Re-use of header fields
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation