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: Benjamin M Stocks <BMStocks@xxxxxxxxxxxxxxx>
Date: Wed, 9 Aug 2006 14:17:53 -0500


>> 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.


Great! Thanks for the answer, as a follow up question: how does it work when I want to filter on a header field? Will it match ANY of the fields?

Thanks,

Ben

--
Benjamin M. Stocks
Senior Embedded Software Engineer
Rockwell Automation Kinetix Motion
voice: (262)512-7157
email: bmstocks@xxxxxxxxxxxxxxx
  • Follow-Ups:
    • Re: [Wireshark-dev] Re-use of header fields
      • From: Guy Harris
  • Prev by Date: [Wireshark-dev] ANSI MAP / TCAP dissector hooks
  • Next by Date: Re: [Wireshark-dev] Re-use of header fields
  • Previous by thread: Re: [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