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: [Wireshark-dev] IEEE 1588 PTP DataTypes

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


From: CeSaR PrAdOs <bradomyn@xxxxxxxxx>
Date: Thu, 2 Jul 2009 12:12:41 +0200

Hi,

I'm developing a PTP software (IEEE 1588)and  I was so surprised when I saw the definitions of the data type used in WhireShark's filter for the PTP standard v2. At the beginning I was freaking out because no one of my PTP packets machted with the information in Wireshark.

This is the definition of PTP fileds in whireshark:
http://www.wireshark.org/docs/dfref/p/ptp.html

and for example the the data type for the PTP msg header, according to the spec is:

    uint4_t             messageType;
    uint4_t            transportSpecific;
    uint4_t         versionPTP;          
    uint4_t            reserved1;
    uint16_t         messageLength;
    uint8_t            domainNumber;      
    uint8_t            reserved2;
    octet            flagField[2];
    int64_t            correctionField;
    uint8_t            reserved3;
    portIdentity     sourcePortId;
    uint16_t        sequenceId;
    uint8_t            controlfield;
    int8_t            logMessageInterval;


So we have for instance in the spec

  messageType --> 4 bits

WhireShark

  messageType -->  Unsigned 8-bit integer

does anybody tell why??

I mean it's a stadard we should follow the spec literally...

Thank you,

Cesar

  • Follow-Ups:
    • Re: [Wireshark-dev] IEEE 1588 PTP DataTypes
      • From: Jaap Keuter
  • Prev by Date: Re: [Wireshark-dev] New experimental feature: GTK2 based packet list(svn rev 28892)
  • Next by Date: Re: [Wireshark-dev] New experimental feature: GTK2 based packet list (svn rev 28892)
  • Previous by thread: Re: [Wireshark-dev] New experimental feature: GTK2 based packet list(svn rev 28892)
  • Next by thread: Re: [Wireshark-dev] IEEE 1588 PTP DataTypes
  • Index(es):
    • Date
    • Thread

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