Wireshark

  • Riverbed Technology
  • WinPcap
SHARKFEST '12 - Wireshark Developer and User Conference - June 24-27, 2012 - UC Berkeley, Clark Kerr Campus
  • 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] dissecting data portion of IP

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


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 31 Oct 2007 15:03:12 -0700


On Oct 31, 2007, at 1:58 PM, Daniel Roman wrote:

I'm attempting to do the same on my own dissector but I'm not to sure on what to use for the second argument of dissector_add. (TCP dissector uses IP_PROTO_TCP)

...which is the protocol type value for TCP in the IP header (6), so...

The IP Header of my packet contains 0xC8 for the Protocol Type. Can I do dissector_add("ip.proto", 0xC8, myprotocol_handle); to instruct wireshark to call my dissector if an IP protocol type of 0xC8 is encountered?

...that is what you should do.

  • References:
    • [Wireshark-dev] dissecting data portion of IP
      • From: Daniel Roman
  • Prev by Date: [Wireshark-dev] dissecting data portion of IP
  • Previous by thread: [Wireshark-dev] dissecting data portion of IP
  • Index(es):
    • Date
    • Thread

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