2004-05-12 03:37:28 +00:00
|
|
|
/* packet-ptp.c
|
|
|
|
* Routines for PTP (Precision Time Protocol) dissection
|
|
|
|
* Copyright 2004, Auges Tchouante <tchouante2001@yahoo.fr>
|
2007-08-08 20:06:51 +00:00
|
|
|
* Copyright 2004, Dominic Bechaz <bdo@zhwin.ch> , ZHW/InES
|
2004-05-12 03:37:28 +00:00
|
|
|
* Copyright 2004, Markus Seehofer <mseehofe@nt.hirschmann.de>
|
2007-08-08 20:06:51 +00:00
|
|
|
* Copyright 2006, Christian Schaer <scc@zhwin.ch>
|
|
|
|
* Copyright 2007, Markus Renz <Markus.Renz@hirschmann.de>
|
2010-05-13 21:47:38 +00:00
|
|
|
* Copyright 2010, Torrey Atcitty <torrey.atcitty@harman.com>
|
|
|
|
* Dave Olsen <dave.olsen@harman.com>
|
2004-05-12 03:37:28 +00:00
|
|
|
*
|
2005-08-19 09:28:58 +00:00
|
|
|
* Revisions:
|
|
|
|
* - Markus Seehofer 09.08.2005 <mseehofe@nt.hirschmann.de>
|
|
|
|
* - Included the "startingBoundaryHops" field in
|
|
|
|
* ptp_management messages.
|
2007-08-08 20:06:51 +00:00
|
|
|
* - Christian Schaer 07.07.2006 <scc@zhwin.ch>
|
2008-03-15 22:41:57 +00:00
|
|
|
* - Added support for PTP version 2
|
|
|
|
* - Markus Renz 2007-06-01
|
2010-05-13 21:47:38 +00:00
|
|
|
* - updated support for PTPv2
|
|
|
|
* - Markus Renz added Management for PTPv2, update to Draft 2.2
|
|
|
|
* - Torrey Atcitty & Dave Olsen 05.14.2010
|
|
|
|
* - Added support for 802.1AS D7.0
|
2008-03-15 22:41:57 +00:00
|
|
|
*
|
2004-09-30 19:54:01 +00:00
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-05-12 03:37:28 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-05-12 03:37:28 +00:00
|
|
|
*/
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
#include <math.h>
|
|
|
|
|
2004-05-12 03:37:28 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
2007-08-08 20:06:51 +00:00
|
|
|
#include <epan/etypes.h>
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Port definition's for PTP */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
|
|
|
#define EVENT_PORT_PTP 319
|
|
|
|
#define GENERAL_PORT_PTP 320
|
|
|
|
|
|
|
|
/*END Port definition's for PTP*/
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
static int proto_ptp = -1;
|
|
|
|
|
|
|
|
/***********************************************************************************/
|
|
|
|
/* Definitions and fields for PTPv1 dissection. */
|
|
|
|
/***********************************************************************************/
|
|
|
|
|
|
|
|
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Offsets of fields within a PTPv1 packet. */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
|
|
|
|
|
|
|
/*Common offsets for all Messages (Synch, Delay_Req, Follow_Up, Delay_Resp ....)*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_VERSIONPTP_OFFSET 0
|
|
|
|
#define PTP_VERSIONNETWORK_OFFSET 2
|
|
|
|
#define PTP_SUBDOMAIN_OFFSET 4
|
|
|
|
#define PTP_MESSAGETYPE_OFFSET 20
|
|
|
|
#define PTP_SOURCECOMMUNICATIONTECHNOLOGY_OFFSET 21
|
|
|
|
#define PTP_SOURCEUUID_OFFSET 22
|
|
|
|
#define PTP_SOURCEPORTID_OFFSET 28
|
|
|
|
#define PTP_SEQUENCEID_OFFSET 30
|
|
|
|
#define PTP_CONTROL_OFFSET 32
|
|
|
|
#define PTP_FLAGS_OFFSET 34
|
|
|
|
#define PTP_FLAGS_LI61_OFFSET 34
|
|
|
|
#define PTP_FLAGS_LI59_OFFSET 34
|
|
|
|
#define PTP_FLAGS_BOUNDARY_CLOCK_OFFSET 34
|
|
|
|
#define PTP_FLAGS_ASSIST_OFFSET 34
|
|
|
|
#define PTP_FLAGS_EXT_SYNC_OFFSET 34
|
|
|
|
#define PTP_FLAGS_PARENT_STATS_OFFSET 34
|
|
|
|
#define PTP_FLAGS_SYNC_BURST_OFFSET 34
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*Offsets for PTP_Sync and Delay_Req (=SDR) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_SDR_ORIGINTIMESTAMP_OFFSET 40
|
|
|
|
#define PTP_SDR_ORIGINTIMESTAMP_SECONDS_OFFSET 40
|
|
|
|
#define PTP_SDR_ORIGINTIMESTAMP_NANOSECONDS_OFFSET 44
|
|
|
|
#define PTP_SDR_EPOCHNUMBER_OFFSET 48
|
|
|
|
#define PTP_SDR_CURRENTUTCOFFSET_OFFSET 50
|
|
|
|
#define PTP_SDR_GRANDMASTERCOMMUNICATIONTECHNOLOGY_OFFSET 53
|
|
|
|
#define PTP_SDR_GRANDMASTERCLOCKUUID_OFFSET 54
|
|
|
|
#define PTP_SDR_GRANDMASTERPORTID_OFFSET 60
|
|
|
|
#define PTP_SDR_GRANDMASTERSEQUENCEID_OFFSET 62
|
|
|
|
#define PTP_SDR_GRANDMASTERCLOCKSTRATUM_OFFSET 67
|
|
|
|
#define PTP_SDR_GRANDMASTERCLOCKIDENTIFIER_OFFSET 68
|
|
|
|
#define PTP_SDR_GRANDMASTERCLOCKVARIANCE_OFFSET 74
|
|
|
|
#define PTP_SDR_GRANDMASTERPREFERRED_OFFSET 77
|
|
|
|
#define PTP_SDR_GRANDMASTERISBOUNDARYCLOCK_OFFSET 79
|
|
|
|
#define PTP_SDR_SYNCINTERVAL_OFFSET 83
|
|
|
|
#define PTP_SDR_LOCALCLOCKVARIANCE_OFFSET 86
|
|
|
|
#define PTP_SDR_LOCALSTEPSREMOVED_OFFSET 90
|
|
|
|
#define PTP_SDR_LOCALCLOCKSTRATUM_OFFSET 95
|
|
|
|
#define PTP_SDR_LOCALCLOCKIDENTIFIER_OFFSET 96
|
|
|
|
#define PTP_SDR_PARENTCOMMUNICATIONTECHNOLOGY_OFFSET 101
|
|
|
|
#define PTP_SDR_PARENTUUID_OFFSET 102
|
|
|
|
#define PTP_SDR_PARENTPORTFIELD_OFFSET 110
|
|
|
|
#define PTP_SDR_ESTIMATEDMASTERVARIANCE_OFFSET 114
|
|
|
|
#define PTP_SDR_ESTIMATEDMASTERDRIFT_OFFSET 116
|
|
|
|
#define PTP_SDR_UTCREASONABLE_OFFSET 123
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*Offsets for Follow_Up (=FU) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_FU_ASSOCIATEDSEQUENCEID_OFFSET 42
|
|
|
|
#define PTP_FU_PRECISEORIGINTIMESTAMP_OFFSET 44
|
|
|
|
#define PTP_FU_PRECISEORIGINTIMESTAMP_SECONDS_OFFSET 44
|
|
|
|
#define PTP_FU_PRECISEORIGINTIMESTAMP_NANOSECONDS_OFFSET 48
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*Offsets for Delay_Resp (=DR) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_DR_DELAYRECEIPTTIMESTAMP_OFFSET 40
|
|
|
|
#define PTP_DR_DELAYRECEIPTTIMESTAMP_SECONDS_OFFSET 40
|
|
|
|
#define PTP_DR_DELAYRECEIPTTIMESTAMP_NANOSECONDS_OFFSET 44
|
|
|
|
#define PTP_DR_REQUESTINGSOURCECOMMUNICATIONTECHNOLOGY_OFFSET 49
|
|
|
|
#define PTP_DR_REQUESTINGSOURCEUUID_OFFSET 50
|
|
|
|
#define PTP_DR_REQUESTINGSOURCEPORTID_OFFSET 56
|
|
|
|
#define PTP_DR_REQUESTINGSOURCESEQUENCEID_OFFSET 58
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*Offsets for Management (=MM) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_MM_TARGETCOMMUNICATIONTECHNOLOGY_OFFSET 41
|
|
|
|
#define PTP_MM_TARGETUUID_OFFSET 42
|
|
|
|
#define PTP_MM_TARGETPORTID_OFFSET 48
|
|
|
|
#define PTP_MM_STARTINGBOUNDARYHOPS_OFFSET 50
|
|
|
|
#define PTP_MM_BOUNDARYHOPS_OFFSET 52
|
|
|
|
#define PTP_MM_MANAGEMENTMESSAGEKEY_OFFSET 55
|
|
|
|
#define PTP_MM_PARAMETERLENGTH_OFFSET 58
|
|
|
|
|
|
|
|
/*PARAMETERLENGTH > 0*/
|
|
|
|
#define PTP_MM_MESSAGEPARAMETERS_OFFSET 60
|
|
|
|
|
|
|
|
/*PTP_MM_CLOCK_IDENTITY (PARAMETERLENGTH = 64)*/
|
|
|
|
#define PTP_MM_CLOCK_IDENTITY_CLOCKCOMMUNICATIONTECHNOLOGY_OFFSET 63
|
|
|
|
#define PTP_MM_CLOCK_IDENTITY_CLOCKUUIDFIELD_OFFSET 64
|
|
|
|
#define PTP_MM_CLOCK_IDENTITY_CLOCKPORTFIELD_OFFSET 74
|
|
|
|
#define PTP_MM_CLOCK_IDENTITY_MANUFACTURERIDENTITY_OFFSET 76
|
|
|
|
|
|
|
|
/*PTP_MM_INITIALIZE_CLOCK (PARAMETERLENGTH = 4)*/
|
|
|
|
#define PTP_MM_INITIALIZE_CLOCK_INITIALISATIONKEY_OFFSET 62
|
|
|
|
|
|
|
|
/*PTP_MM_SET_SUBDOMAIN (PARAMETERLENGTH = 16)*/
|
|
|
|
#define PTP_MM_SET_SUBDOMAIN_SUBDOMAINNAME_OFFSET 60
|
|
|
|
|
|
|
|
/*PTP_MM_DEFAULT_DATA_SET (PARAMETERLENGTH = 76)*/
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKCOMMUNICATIONTECHNOLOGY_OFFSET 63
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKUUIDFIELD_OFFSET 64
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKPORTFIELD_OFFSET 74
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKSTRATUM_OFFSET 79
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKIDENTIFIER_OFFSET 80
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKVARIANCE_OFFSET 86
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_CLOCKFOLLOWUPCAPABLE_OFFSET 89
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_PREFERRED_OFFSET 95
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_INITIALIZABLE_OFFSET 99
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_EXTERNALTIMING_OFFSET 103
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_ISBOUNDARYCLOCK_OFFSET 107
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_SYNCINTERVAL_OFFSET 111
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_SUBDOMAINNAME_OFFSET 112
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_NUMBERPORTS_OFFSET 130
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET_NUMBERFOREIGNRECORDS_OFFSET 134
|
|
|
|
|
|
|
|
/*PTP_MM_UPDATE_DEFAULT_DATA_SET (PARAMETERLENGTH = 36)*/
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKSTRATUM_OFFSET 63
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKIDENTIFIER_OFFSET 64
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKVARIANCE_OFFSET 70
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_PREFERRED_OFFSET 75
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_SYNCINTERVAL_OFFSET 79
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET_SUBDOMAINNAME_OFFSET 80
|
|
|
|
|
|
|
|
/*PTP_MM_CURRENT_DATA_SET (PARAMETERLENGTH = 20)*/
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_STEPSREMOVED_OFFSET 62
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTER_OFFSET 64
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERSECONDS_OFFSET 64
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERNANOSECONDS_OFFSET 68
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_ONEWAYDELAY_OFFSET 72
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYSECONDS_OFFSET 72
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYNANOSECONDS_OFFSET 76
|
|
|
|
|
|
|
|
/*PTP_MM_PARENT_DATA_SET (PARAMETERLENGTH = 90)*/
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTCOMMUNICATIONTECHNOLOGY_OFFSET 63
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTUUID_OFFSET 64
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTPORTID_OFFSET 74
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTLASTSYNCSEQUENCENUMBER_OFFSET 78
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTFOLLOWUPCAPABLE_OFFSET 83
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTEXTERNALTIMING_OFFSET 87
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTVARIANCE_OFFSET 90
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_PARENTSTATS_OFFSET 95
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_OBSERVEDVARIANCE_OFFSET 98
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_OBSERVEDDRIFT_OFFSET 100
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_UTCREASONABLE_OFFSET 107
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERCOMMUNICATIONTECHNOLOGY_OFFSET 111
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERUUIDFIELD_OFFSET 112
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERPORTIDFIELD_OFFSET 122
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERSTRATUM_OFFSET 127
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERIDENTIFIER_OFFSET 128
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERVARIANCE_OFFSET 134
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERPREFERRED_OFFSET 139
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERISBOUNDARYCLOCK_OFFSET 143
|
|
|
|
#define PTP_MM_PARENT_DATA_SET_GRANDMASTERSEQUENCENUMBER_OFFSET 146
|
|
|
|
|
|
|
|
/*PTP_MM_PORT_DATA_SET (PARAMETERLENGTH = 52)*/
|
|
|
|
#define PTP_MM_PORT_DATA_SET_RETURNEDPORTNUMBER_OFFSET 62
|
|
|
|
#define PTP_MM_PORT_DATA_SET_PORTSTATE_OFFSET 67
|
|
|
|
#define PTP_MM_PORT_DATA_SET_LASTSYNCEVENTSEQUENCENUMBER_OFFSET 70
|
|
|
|
#define PTP_MM_PORT_DATA_SET_LASTGENERALEVENTSEQUENCENUMBER_OFFSET 74
|
|
|
|
#define PTP_MM_PORT_DATA_SET_PORTCOMMUNICATIONTECHNOLOGY_OFFSET 79
|
|
|
|
#define PTP_MM_PORT_DATA_SET_PORTUUIDFIELD_OFFSET 80
|
|
|
|
#define PTP_MM_PORT_DATA_SET_PORTIDFIELD_OFFSET 90
|
|
|
|
#define PTP_MM_PORT_DATA_SET_BURSTENABLED_OFFSET 95
|
|
|
|
#define PTP_MM_PORT_DATA_SET_SUBDOMAINADDRESSOCTETS_OFFSET 97
|
|
|
|
#define PTP_MM_PORT_DATA_SET_EVENTPORTADDRESSOCTETS_OFFSET 98
|
|
|
|
#define PTP_MM_PORT_DATA_SET_GENERALPORTADDRESSOCTETS_OFFSET 99
|
|
|
|
#define PTP_MM_PORT_DATA_SET_SUBDOMAINADDRESS_OFFSET 100
|
|
|
|
#define PTP_MM_PORT_DATA_SET_EVENTPORTADDRESS_OFFSET 106
|
|
|
|
#define PTP_MM_PORT_DATA_SET_GENERALPORTADDRESS_OFFSET 110
|
|
|
|
|
|
|
|
/*PTP_MM_GLOBAL_TIME_DATA_SET (PARAMETERLENGTH = 24)*/
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIME_OFFSET 60
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMESECONDS_OFFSET 60
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMENANOSECONDS_OFFSET 64
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_CURRENTUTCOFFSET_OFFSET 70
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_LEAP59_OFFSET 75
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_LEAP61_OFFSET 79
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET_EPOCHNUMBER_OFFSET 82
|
|
|
|
|
|
|
|
/*PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES (PARAMETERLENGTH = 16)*/
|
|
|
|
#define PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_CURRENTUTCOFFSET_OFFSET 62
|
|
|
|
#define PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_LEAP59_OFFSET 67
|
|
|
|
#define PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_LEAP61_OFFSET 71
|
|
|
|
#define PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_EPOCHNUMBER_OFFSET 74
|
|
|
|
|
|
|
|
/*PTP_MM_GET_FOREIGN_DATA_SET (PARAMETERLENGTH = 4)*/
|
|
|
|
#define PTP_MM_GET_FOREIGN_DATA_SET_RECORDKEY_OFFSET 62
|
|
|
|
|
|
|
|
/*PTP_MM_FOREIGN_DATA_SET (PARAMETERLENGTH = 28)*/
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_RETURNEDPORTNUMBER_OFFSET 62
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_RETURNEDRECORDNUMBER_OFFSET 66
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERCOMMUNICATIONTECHNOLOGY_OFFSET 71
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERUUIDFIELD_OFFSET 72
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERPORTIDFIELD_OFFSET 82
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERSYNCS_OFFSET 86
|
|
|
|
|
|
|
|
/*PTP_MM_SET_SYNC_INTERVAL (PARAMETERLENGTH = 4)*/
|
|
|
|
#define PTP_MM_SET_SYNC_INTERVAL_SYNCINTERVAL_OFFSET 62
|
|
|
|
|
|
|
|
/*PTP_MM_SET_TIME (PARAMETERLENGTH = 8)*/
|
|
|
|
#define PTP_MM_SET_TIME_LOCALTIME_OFFSET 60
|
|
|
|
#define PTP_MM_SET_TIME_LOCALTIMESECONDS_OFFSET 60
|
|
|
|
#define PTP_MM_SET_TIME_LOCALTIMENANOSECONDS_OFFSET 64
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END Offsets of fields within a PTP packet.*/
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* flag-field-mask-definitions */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_FLAGS_LI61_BITMASK 0x01
|
|
|
|
#define PTP_FLAGS_LI59_BITMASK 0x02
|
|
|
|
#define PTP_FLAGS_BOUNDARY_CLOCK_BITMASK 0x04
|
|
|
|
#define PTP_FLAGS_ASSIST_BITMASK 0x08
|
|
|
|
#define PTP_FLAGS_EXT_SYNC_BITMASK 0x10
|
|
|
|
#define PTP_FLAGS_PARENT_STATS_BITMASK 0x20
|
|
|
|
#define PTP_FLAGS_SYNC_BURST_BITMASK 0x40
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END flag-field-mask-definitions*/
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* managementMessage definitions */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_MM_NULL 0
|
|
|
|
#define PTP_MM_OBTAIN_IDENTITY 1
|
|
|
|
#define PTP_MM_CLOCK_IDENTITY 2
|
|
|
|
#define PTP_MM_INITIALIZE_CLOCK 3
|
|
|
|
#define PTP_MM_SET_SUBDOMAIN 4
|
|
|
|
#define PTP_MM_CLEAR_DESIGNATED_PREFERRED_MASTER 5
|
|
|
|
#define PTP_MM_SET_DESIGNATED_PREFERRED_MASTER 6
|
|
|
|
#define PTP_MM_GET_DEFAULT_DATA_SET 7
|
|
|
|
#define PTP_MM_DEFAULT_DATA_SET 8
|
|
|
|
#define PTP_MM_UPDATE_DEFAULT_DATA_SET 9
|
|
|
|
#define PTP_MM_GET_CURRENT_DATA_SET 10
|
|
|
|
#define PTP_MM_CURRENT_DATA_SET 11
|
|
|
|
#define PTP_MM_GET_PARENT_DATA_SET 12
|
|
|
|
#define PTP_MM_PARENT_DATA_SET 13
|
|
|
|
#define PTP_MM_GET_PORT_DATA_SET 14
|
|
|
|
#define PTP_MM_PORT_DATA_SET 15
|
|
|
|
#define PTP_MM_GET_GLOBAL_TIME_DATA_SET 16
|
|
|
|
#define PTP_MM_GLOBAL_TIME_DATA_SET 17
|
|
|
|
#define PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES 18
|
|
|
|
#define PTP_MM_GOTO_FAULTY_STATE 19
|
|
|
|
#define PTP_MM_GET_FOREIGN_DATA_SET 20
|
|
|
|
#define PTP_MM_FOREIGN_DATA_SET 21
|
|
|
|
#define PTP_MM_SET_SYNC_INTERVAL 22
|
|
|
|
#define PTP_MM_DISABLE_PORT 23
|
|
|
|
#define PTP_MM_ENABLE_PORT 24
|
|
|
|
#define PTP_MM_DISABLE_BURST 25
|
|
|
|
#define PTP_MM_ENABLE_BURST 26
|
|
|
|
#define PTP_MM_SET_TIME 27
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
static const value_string ptp_managementMessageKey_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_MM_NULL , "PTP_MM_NULL"},
|
|
|
|
{PTP_MM_OBTAIN_IDENTITY , "PTP_MM_OBTAIN_IDENTITY"},
|
|
|
|
{PTP_MM_CLOCK_IDENTITY , "PTP_MM_CLOCK_IDENTITY"},
|
|
|
|
{PTP_MM_INITIALIZE_CLOCK , "PTP_MM_INITIALIZE_CLOCK"},
|
|
|
|
{PTP_MM_SET_SUBDOMAIN , "PTP_MM_SET_SUBDOMAIN"},
|
|
|
|
{PTP_MM_CLEAR_DESIGNATED_PREFERRED_MASTER , "PTP_MM_CLEAR_DESIGNATED_PREFERRED_MASTER"},
|
|
|
|
{PTP_MM_SET_DESIGNATED_PREFERRED_MASTER , "PTP_MM_SET_DESIGNATED_PREFERRED_MASTER"},
|
|
|
|
{PTP_MM_GET_DEFAULT_DATA_SET , "PTP_MM_GET_DEFAULT_DATA_SET"},
|
|
|
|
{PTP_MM_DEFAULT_DATA_SET , "PTP_MM_DEFAULT_DATA_SET"},
|
|
|
|
{PTP_MM_UPDATE_DEFAULT_DATA_SET , "PTP_MM_UPDATE_DEFAULT_DATA_SET"},
|
|
|
|
{PTP_MM_GET_CURRENT_DATA_SET , "PTP_MM_GET_CURRENT_DATA_SET"},
|
|
|
|
{PTP_MM_CURRENT_DATA_SET , "PTP_MM_CURRENT_DATA_SET"},
|
|
|
|
{PTP_MM_GET_PARENT_DATA_SET , "PTP_MM_GET_PARENT_DATA_SET"},
|
|
|
|
{PTP_MM_PARENT_DATA_SET , "PTP_MM_PARENT_DATA_SET"},
|
|
|
|
{PTP_MM_GET_PORT_DATA_SET , "PTP_MM_GET_PORT_DATA_SET"},
|
|
|
|
{PTP_MM_PORT_DATA_SET , "PTP_MM_PORT_DATA_SET"},
|
|
|
|
{PTP_MM_GET_GLOBAL_TIME_DATA_SET , "PTP_MM_GET_GLOBAL_TIME_DATA_SET"},
|
|
|
|
{PTP_MM_GLOBAL_TIME_DATA_SET , "PTP_MM_GLOBAL_TIME_DATA_SET"},
|
|
|
|
{PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES , "PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES"},
|
|
|
|
{PTP_MM_GOTO_FAULTY_STATE , "PTP_MM_GOTO_FAULTY_STATE"},
|
|
|
|
{PTP_MM_GET_FOREIGN_DATA_SET , "PTP_MM_GET_FOREIGN_DATA_SET"},
|
|
|
|
{PTP_MM_FOREIGN_DATA_SET , "PTP_MM_FOREIGN_DATA_SET"},
|
|
|
|
{PTP_MM_SET_SYNC_INTERVAL , "PTP_MM_SET_SYNC_INTERVAL"},
|
|
|
|
{PTP_MM_DISABLE_PORT , "PTP_MM_DISABLE_PORT"},
|
|
|
|
{PTP_MM_ENABLE_PORT , "PTP_MM_ENABLE_PORT"},
|
|
|
|
{PTP_MM_DISABLE_BURST , "PTP_MM_DISABLE_BURST"},
|
|
|
|
{PTP_MM_ENABLE_BURST , "PTP_MM_ENABLE_BURST"},
|
|
|
|
{PTP_MM_SET_TIME , "PTP_MM_SET_TIME"},
|
|
|
|
{0, NULL } };
|
|
|
|
|
|
|
|
/*same again but better readable text for info column*/
|
|
|
|
static const value_string ptp_managementMessageKey_infocolumn_vals[] = {
|
|
|
|
{PTP_MM_NULL , "Null"},
|
|
|
|
{PTP_MM_OBTAIN_IDENTITY , "Obtain Identity"},
|
|
|
|
{PTP_MM_CLOCK_IDENTITY , "Clock Identity"},
|
|
|
|
{PTP_MM_INITIALIZE_CLOCK , "Initialize Clock"},
|
|
|
|
{PTP_MM_SET_SUBDOMAIN , "Set Subdomain"},
|
|
|
|
{PTP_MM_CLEAR_DESIGNATED_PREFERRED_MASTER , "Clear Designated Preferred Master"},
|
|
|
|
{PTP_MM_SET_DESIGNATED_PREFERRED_MASTER , "Set Designated Preferred Master"},
|
|
|
|
{PTP_MM_GET_DEFAULT_DATA_SET , "Get Default Data Set"},
|
|
|
|
{PTP_MM_DEFAULT_DATA_SET , "Default Data Set"},
|
|
|
|
{PTP_MM_UPDATE_DEFAULT_DATA_SET , "Update Default Data Set"},
|
|
|
|
{PTP_MM_GET_CURRENT_DATA_SET , "Get Current Data Set"},
|
|
|
|
{PTP_MM_CURRENT_DATA_SET , "Current Data Set"},
|
|
|
|
{PTP_MM_GET_PARENT_DATA_SET , "Get Parent Data Set"},
|
|
|
|
{PTP_MM_PARENT_DATA_SET , "Parent Data Set"},
|
|
|
|
{PTP_MM_GET_PORT_DATA_SET , "Get Port Data Set"},
|
|
|
|
{PTP_MM_PORT_DATA_SET , "Port Data Set"},
|
|
|
|
{PTP_MM_GET_GLOBAL_TIME_DATA_SET , "Get Global Time Data Set"},
|
|
|
|
{PTP_MM_GLOBAL_TIME_DATA_SET , "Global Time Data Set"},
|
|
|
|
{PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES , "Update Global Time Properties"},
|
|
|
|
{PTP_MM_GOTO_FAULTY_STATE , "Goto Faulty State"},
|
|
|
|
{PTP_MM_GET_FOREIGN_DATA_SET , "Get Foreign Data Set"},
|
|
|
|
{PTP_MM_FOREIGN_DATA_SET , "Foreign Data Set"},
|
|
|
|
{PTP_MM_SET_SYNC_INTERVAL , "Set Sync Interval"},
|
|
|
|
{PTP_MM_DISABLE_PORT , "Disable Port"},
|
|
|
|
{PTP_MM_ENABLE_PORT , "Enable Port"},
|
|
|
|
{PTP_MM_DISABLE_BURST , "Disable Burst"},
|
|
|
|
{PTP_MM_ENABLE_BURST , "Enable Burst"},
|
|
|
|
{PTP_MM_SET_TIME , "Set Time"},
|
|
|
|
{0, NULL } };
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END managementMessage definitions*/
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* CommunicationId definitions */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_CLOSED 0
|
|
|
|
#define PTP_ETHER 1
|
|
|
|
#define PTP_FFBUS 4
|
|
|
|
#define PTP_PROFIBUS 5
|
|
|
|
#define PTP_LON 6
|
|
|
|
#define PTP_DNET 7
|
|
|
|
#define PTP_SDS 8
|
|
|
|
#define PTP_CONTROLNET 9
|
|
|
|
#define PTP_CANOPEN 10
|
|
|
|
#define PTP_IEEE1394 243
|
|
|
|
#define PTP_IEEE802_11A 244
|
|
|
|
#define PTP_IEEE_WIRELESS 245
|
|
|
|
#define PTP_INFINIBAND 246
|
|
|
|
#define PTP_BLUETOOTH 247
|
|
|
|
#define PTP_IEEE802_15_1 248
|
|
|
|
#define PTP_IEEE1451_3 249
|
|
|
|
#define PTP_IEEE1451_5 250
|
|
|
|
#define PTP_USB 251
|
|
|
|
#define PTP_ISA 252
|
|
|
|
#define PTP_PCI 253
|
|
|
|
#define PTP_VXI 254
|
|
|
|
#define PTP_DEFAULT 255
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
static const value_string ptp_communicationid_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_CLOSED , "Closed system outside the scope of this standard."},
|
|
|
|
{PTP_ETHER , "IEEE 802.3 (Ethernet)"},
|
|
|
|
{PTP_FFBUS , "FOUNDATION Fieldbus"},
|
|
|
|
{PTP_PROFIBUS , "PROFIBUS"},
|
|
|
|
{PTP_LON , "LonTalk"},
|
|
|
|
{PTP_DNET , "DeviceNet"},
|
|
|
|
{PTP_SDS , "SmartDistributedSystem"},
|
|
|
|
{PTP_CONTROLNET , "ControlNet"},
|
|
|
|
{PTP_CANOPEN , "CANopen"},
|
|
|
|
{PTP_IEEE1394 , "IEEE 1394"},
|
|
|
|
{PTP_IEEE802_11A , "IEEE 802.11a"},
|
|
|
|
{PTP_IEEE_WIRELESS , "IEEE 802.11b"},
|
|
|
|
{PTP_INFINIBAND , "InfiniBand"},
|
|
|
|
{PTP_BLUETOOTH , "Bluetooth wireless"},
|
|
|
|
{PTP_IEEE802_15_1 , "IEEE 802.15.1"},
|
|
|
|
{PTP_IEEE1451_3 , "IEEE 1451.3"},
|
|
|
|
{PTP_IEEE1451_5 , "IEEE 1451.5"},
|
|
|
|
{PTP_USB , "USB bus"},
|
|
|
|
{PTP_ISA , "ISA bus"},
|
|
|
|
{PTP_PCI , "PCI bus"},
|
|
|
|
{PTP_VXI , "VXI bus"},
|
|
|
|
{PTP_DEFAULT , "Default value"},
|
|
|
|
{0, NULL } };
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END CommunicationId definitions*/
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* PTP message types (PTP_CONTROL field) */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_SYNC_MESSAGE 0x00
|
|
|
|
#define PTP_DELAY_REQ_MESSAGE 0x01
|
|
|
|
#define PTP_FOLLOWUP_MESSAGE 0x02
|
|
|
|
#define PTP_DELAY_RESP_MESSAGE 0x03
|
|
|
|
#define PTP_MANAGEMENT_MESSAGE 0x04
|
|
|
|
#define PTP_OTHER_MESSAGE 0x05
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
static const value_string ptp_control_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_SYNC_MESSAGE , "Sync Message"},
|
|
|
|
{PTP_DELAY_REQ_MESSAGE , "Delay_Req Message"},
|
|
|
|
{PTP_FOLLOWUP_MESSAGE , "Follow_Up Message"},
|
|
|
|
{PTP_DELAY_RESP_MESSAGE , "Delay_Resp Message"},
|
|
|
|
{PTP_MANAGEMENT_MESSAGE , "Management Message"},
|
|
|
|
{PTP_OTHER_MESSAGE , "Other Message"},
|
|
|
|
{0, NULL } };
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END PTP message types*/
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Channel values for the PTP_MESSAGETYPE field */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_MESSAGETYPE_EVENT 0x01
|
|
|
|
#define PTP_MESSAGETYPE_GENERAL 0x02
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
static const value_string ptp_messagetype_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_MESSAGETYPE_EVENT , "Event Message"},
|
|
|
|
{PTP_MESSAGETYPE_GENERAL , "General Message"},
|
|
|
|
{0, NULL } };
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/*END channel values for the PTP_MESSAGETYPE field*/
|
|
|
|
|
|
|
|
/* Channel values for boolean vals (FLAGS)*/
|
|
|
|
|
|
|
|
static const value_string ptp_bool_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{1, "True"},
|
|
|
|
{0, "False"},
|
|
|
|
{0, NULL }};
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
2004-05-12 03:37:28 +00:00
|
|
|
/**********************************************************/
|
|
|
|
|
|
|
|
static int hf_ptp_versionptp = -1;
|
|
|
|
static int hf_ptp_versionnetwork = -1;
|
|
|
|
static int hf_ptp_subdomain = -1;
|
|
|
|
static int hf_ptp_messagetype = -1;
|
|
|
|
static int hf_ptp_sourcecommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_sourceuuid = -1;
|
|
|
|
static int hf_ptp_sourceportid = -1;
|
|
|
|
static int hf_ptp_sequenceid = -1;
|
|
|
|
static int hf_ptp_control = -1;
|
|
|
|
static int hf_ptp_flags = -1;
|
|
|
|
static int hf_ptp_flags_li61 = -1;
|
|
|
|
static int hf_ptp_flags_li59 = -1;
|
|
|
|
static int hf_ptp_flags_boundary_clock = -1;
|
|
|
|
static int hf_ptp_flags_assist = -1;
|
|
|
|
static int hf_ptp_flags_ext_sync = -1;
|
|
|
|
static int hf_ptp_flags_parent = -1;
|
|
|
|
static int hf_ptp_flags_sync_burst = -1;
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for ptp_sync and delay_req (=sdr) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_sdr_origintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_sdr_origintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_sdr_origintimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_sdr_epochnumber = -1;
|
|
|
|
static int hf_ptp_sdr_currentutcoffset = -1;
|
|
|
|
static int hf_ptp_sdr_grandmastercommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterclockuuid = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterportid = -1;
|
|
|
|
static int hf_ptp_sdr_grandmastersequenceid = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterclockstratum = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterclockidentifier = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterclockvariance = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterpreferred = -1;
|
|
|
|
static int hf_ptp_sdr_grandmasterisboundaryclock = -1;
|
|
|
|
static int hf_ptp_sdr_syncinterval = -1;
|
|
|
|
static int hf_ptp_sdr_localclockvariance = -1;
|
|
|
|
static int hf_ptp_sdr_localstepsremoved = -1;
|
|
|
|
static int hf_ptp_sdr_localclockstratum = -1;
|
|
|
|
static int hf_ptp_sdr_localclockidentifier = -1;
|
|
|
|
static int hf_ptp_sdr_parentcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_sdr_parentuuid = -1;
|
|
|
|
static int hf_ptp_sdr_parentportfield = -1;
|
|
|
|
static int hf_ptp_sdr_estimatedmastervariance = -1;
|
|
|
|
static int hf_ptp_sdr_estimatedmasterdrift = -1;
|
|
|
|
static int hf_ptp_sdr_utcreasonable = -1;
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for follow_up (=fu) messages*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_fu_associatedsequenceid = -1;
|
|
|
|
static int hf_ptp_fu_preciseorigintimestamp = -1;
|
|
|
|
static int hf_ptp_fu_preciseorigintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_fu_preciseorigintimestamp_nanoseconds = -1;
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for delay_resp (=dr) messages*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_dr_delayreceipttimestamp = -1;
|
|
|
|
static int hf_ptp_dr_delayreceipttimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_dr_delayreceipttimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_dr_requestingsourcecommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_dr_requestingsourceuuid = -1;
|
|
|
|
static int hf_ptp_dr_requestingsourceportid = -1;
|
|
|
|
static int hf_ptp_dr_requestingsourcesequenceid = -1;
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for management (=mm) messages*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_targetcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_targetuuid = -1;
|
|
|
|
static int hf_ptp_mm_targetportid = -1;
|
2005-08-19 09:28:58 +00:00
|
|
|
static int hf_ptp_mm_startingboundaryhops = -1;
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_boundaryhops = -1;
|
|
|
|
static int hf_ptp_mm_managementmessagekey = -1;
|
|
|
|
static int hf_ptp_mm_parameterlength = -1;
|
2010-05-10 15:54:57 +00:00
|
|
|
/*parameterlength > 0*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_messageparameters = -1;
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_clock_identity (parameterlength = 64)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_clock_identity_clockcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_clock_identity_clockuuidfield = -1;
|
|
|
|
static int hf_ptp_mm_clock_identity_clockportfield = -1;
|
|
|
|
static int hf_ptp_mm_clock_identity_manufactureridentity = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_initialize_clock (parameterlength = 4)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_initialize_clock_initialisationkey = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_set_subdomain (parameterlength = 16)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_set_subdomain_subdomainname = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_default_data_set (parameterlength = 76)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_default_data_set_clockcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockuuidfield = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockportfield = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockstratum = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockidentifier = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockvariance = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_clockfollowupcapable = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_preferred = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_initializable = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_externaltiming = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_isboundaryclock = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_syncinterval = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_subdomainname = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_numberports = -1;
|
|
|
|
static int hf_ptp_mm_default_data_set_numberforeignrecords = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_update_default_data_set (parameterlength = 36)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_update_default_data_set_clockstratum = -1;
|
|
|
|
static int hf_ptp_mm_update_default_data_set_clockidentifier = -1;
|
|
|
|
static int hf_ptp_mm_update_default_data_set_clockvariance = -1;
|
|
|
|
static int hf_ptp_mm_update_default_data_set_preferred = -1;
|
|
|
|
static int hf_ptp_mm_update_default_data_set_syncinterval = -1;
|
|
|
|
static int hf_ptp_mm_update_default_data_set_subdomainname = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_current_data_set (parameterlength = 20)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_current_data_set_stepsremoved = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_offsetfrommaster = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_offsetfrommasterseconds = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_offsetfrommasternanoseconds = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_onewaydelay = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_onewaydelayseconds = -1;
|
|
|
|
static int hf_ptp_mm_current_data_set_onewaydelaynanoseconds = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_parent_data_set (parameterlength = 90)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_parent_data_set_parentcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentuuid = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentportid = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentlastsyncsequencenumber = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentfollowupcapable = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentexternaltiming = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentvariance = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_parentstats = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_observedvariance = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_observeddrift = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_utcreasonable = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmastercommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasteruuidfield = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasterportidfield = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasterstratum = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasteridentifier = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmastervariance = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasterpreferred = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmasterisboundaryclock = -1;
|
|
|
|
static int hf_ptp_mm_parent_data_set_grandmastersequencenumber = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_port_data_set (parameterlength = 52)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_port_data_set_returnedportnumber = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_portstate = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_lastsynceventsequencenumber = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_lastgeneraleventsequencenumber = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_portcommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_portuuidfield = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_portidfield = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_burstenabled = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_subdomainaddressoctets = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_eventportaddressoctets = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_generalportaddressoctets = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_subdomainaddress = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_eventportaddress = -1;
|
|
|
|
static int hf_ptp_mm_port_data_set_generalportaddress = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_global_time_data_set (parameterlength = 24)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_global_time_data_set_localtime = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_localtimeseconds = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_localtimenanoseconds = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_currentutcoffset = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_leap59 = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_leap61 = -1;
|
|
|
|
static int hf_ptp_mm_global_time_data_set_epochnumber = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_update_global_time_properties (parameterlength = 16)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_update_global_time_properties_currentutcoffset = -1;
|
|
|
|
static int hf_ptp_mm_update_global_time_properties_leap59 = -1;
|
|
|
|
static int hf_ptp_mm_update_global_time_properties_leap61 = -1;
|
|
|
|
static int hf_ptp_mm_update_global_time_properties_epochnumber = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_get_foreign_data_set (parameterlength = 4)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_get_foreign_data_set_recordkey = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_foreign_data_set (parameterlength = 28)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_foreign_data_set_returnedportnumber = -1;
|
|
|
|
static int hf_ptp_mm_foreign_data_set_returnedrecordnumber = -1;
|
|
|
|
static int hf_ptp_mm_foreign_data_set_foreignmastercommunicationtechnology = -1;
|
|
|
|
static int hf_ptp_mm_foreign_data_set_foreignmasteruuidfield = -1;
|
|
|
|
static int hf_ptp_mm_foreign_data_set_foreignmasterportidfield = -1;
|
|
|
|
static int hf_ptp_mm_foreign_data_set_foreignmastersyncs = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_set_sync_interval (parameterlength = 4)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_set_sync_interval_syncinterval = -1;
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*ptp_mm_set_time (parameterlength = 8)*/
|
2004-05-12 03:37:28 +00:00
|
|
|
static int hf_ptp_mm_set_time_localtime = -1;
|
|
|
|
static int hf_ptp_mm_set_time_localtimeseconds = -1;
|
|
|
|
static int hf_ptp_mm_set_time_localtimenanoseconds = -1;
|
|
|
|
|
|
|
|
/*END Initialize the protocol and registered fields */
|
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_ptp = -1;
|
|
|
|
static gint ett_ptp_flags = -1;
|
|
|
|
static gint ett_ptp_time = -1;
|
|
|
|
static gint ett_ptp_time2 = -1;
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/* END Definitions and fields for PTPv1 dissection. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************************/
|
|
|
|
/* Definitions and fields for PTPv2 dissection. */
|
|
|
|
/***********************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Offsets of fields within a PTPv2 packet. */
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
|
|
|
|
|
|
|
/*Common offsets for all Messages (Sync, Delay_Req, Follow_Up, Delay_Resp ....)*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET 0
|
|
|
|
#define PTP_V2_VERSIONPTP_OFFSET 1
|
|
|
|
#define PTP_V2_MESSAGE_LENGTH_OFFSET 2
|
|
|
|
#define PTP_V2_DOMAIN_NUMBER_OFFSET 4
|
|
|
|
#define PTP_V2_FLAGS_OFFSET 6
|
|
|
|
#define PTP_V2_CORRECTION_OFFSET 8
|
|
|
|
#define PTP_V2_CORRECTIONNS_OFFSET 8
|
|
|
|
#define PTP_V2_CORRECTIONSUBNS_OFFSET 14
|
|
|
|
#define PTP_V2_CLOCKIDENTITY_OFFSET 20
|
|
|
|
#define PTP_V2_SOURCEPORTID_OFFSET 28
|
|
|
|
#define PTP_V2_SEQUENCEID_OFFSET 30
|
|
|
|
#define PTP_V2_CONTROL_OFFSET 32
|
|
|
|
#define PTP_V2_LOGMESSAGEPERIOD_OFFSET 33
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*Offsets for PTP_Announce (=AN) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_AN_ORIGINTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_AN_ORIGINTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_AN_ORIGINTIMESTAMPNANOSECONDS_OFFSET 40
|
|
|
|
#define PTP_V2_AN_ORIGINCURRENTUTCOFFSET_OFFSET 44
|
|
|
|
#define PTP_V2_AN_PRIORITY_1_OFFSET 47
|
|
|
|
#define PTP_V2_AN_GRANDMASTERCLOCKCLASS_OFFSET 48
|
|
|
|
#define PTP_V2_AN_GRANDMASTERCLOCKACCURACY_OFFSET 49
|
|
|
|
#define PTP_V2_AN_GRANDMASTERCLOCKVARIANCE_OFFSET 50
|
|
|
|
#define PTP_V2_AN_PRIORITY_2_OFFSET 52
|
|
|
|
#define PTP_V2_AN_GRANDMASTERCLOCKIDENTITY_OFFSET 53
|
|
|
|
#define PTP_V2_AN_LOCALSTEPSREMOVED_OFFSET 61
|
|
|
|
#define PTP_V2_AN_TIMESOURCE_OFFSET 63
|
|
|
|
#define PTP_V2_AN_TLV_OFFSET 64
|
2010-05-13 21:47:38 +00:00
|
|
|
|
2009-05-06 07:12:07 +00:00
|
|
|
/* Announce TLV field offsets */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_AN_TLV_TYPE_OFFSET 0
|
|
|
|
#define PTP_V2_AN_TLV_LENGTHFIELD_OFFSET 2
|
2010-05-13 21:47:38 +00:00
|
|
|
|
2012-09-05 07:40:36 +00:00
|
|
|
/* PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION field offsets */
|
|
|
|
#define PTP_V2_AN_TLV_OE_ORGANIZATIONID_OFFSET 4
|
|
|
|
#define PTP_V2_AN_TLV_OE_ORGANIZATIONSUBTYPE_OFFSET 7
|
|
|
|
#define PTP_V2_AN_TLV_OE_DATAFIELD_OFFSET 10
|
|
|
|
|
|
|
|
/* PTPv2 IEEE_C37_238 TLV (organization extension subtype) field offsets */
|
|
|
|
#define PTP_V2_AN_TLV_OE_IEEEC37238TLV_GMID_OFFSET 10
|
|
|
|
#define PTP_V2_AN_TLV_OE_IEEEC37238TLV_GMINACCURACY_OFFSET 12
|
|
|
|
#define PTP_V2_AN_TLV_OE_IEEEC37238TLV_NWINACCURACY_OFFSET 16
|
|
|
|
#define PTP_V2_AN_TLV_OE_IEEEC37238TLV_RESERVED_OFFSET 20
|
|
|
|
|
2009-05-06 07:12:07 +00:00
|
|
|
/* PTP_V2_TLV_TYPE_ALTERNATE_TIME_OFFSET_INDICATOR field offsets */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_AN_TLV_ATOI_KEYFIELD_OFFSET 4
|
|
|
|
#define PTP_V2_AN_TLV_ATOI_CURRENTOFFSET_OFFSET 5
|
|
|
|
#define PTP_V2_AN_TLV_ATOI_JUMPSECONDS_OFFSET 9
|
|
|
|
#define PTP_V2_AN_TLV_ATOI_TIMEOFNEXTJUMP_OFFSET 13
|
|
|
|
#define PTP_V2_AN_TLV_ATOI_DISPLAYNAME_OFFSET 19
|
2010-05-13 21:47:38 +00:00
|
|
|
|
2009-05-06 07:12:07 +00:00
|
|
|
/* Undissected TLV field offset */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_AN_TLV_DATA_OFFSET 4
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* 802.1AS Path Sequence Offset */
|
|
|
|
#define PTP_AS_AN_TLV_PATH_TRACE_OFFSET 4
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Offsets for PTP_Sync AND PTP_DelayRequest (=SDR) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_SDR_ORIGINTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_SDR_ORIGINTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_SDR_ORIGINTIMESTAMPNANOSECONDS_OFFSET 40
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Offsets for PTP_Follow_Up (=FU) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_FU_PRECISEORIGINTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_FU_PRECISEORIGINTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_FU_PRECISEORIGINTIMESTAMPNANOSECONDS_OFFSET 40
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* 802.1AS Follow_Up information TLV */
|
|
|
|
#define PTP_AS_FU_TLV_INFORMATION_OFFSET 44
|
|
|
|
|
|
|
|
/* 802.1AS Follow_Up TLV field offsets */
|
|
|
|
#define PTP_AS_FU_TLV_TYPE_OFFSET 0
|
|
|
|
#define PTP_AS_FU_TLV_LENGTHFIELD_OFFSET 2
|
|
|
|
#define PTP_AS_FU_TLV_ORGANIZATIONID_OFFSET 4
|
|
|
|
#define PTP_AS_FU_TLV_ORGANIZATIONSUBTYPE_OFFSET 7
|
|
|
|
#define PTP_AS_FU_TLV_CUMULATIVESCALEDRATEOFFSET_OFFSET 10
|
|
|
|
#define PTP_AS_FU_TLV_GMTIMEBASEINDICATOR_OFFSET 14
|
|
|
|
#define PTP_AS_FU_TLV_LASTGMPHASECHANGE_OFFSET 16
|
|
|
|
#define PTP_AS_FU_TLV_SCALEDLASTGMFREQCHANGE_OFFSET 28
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Offsets for PTP_DelayResponse (=DR) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_DR_RECEIVETIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_DR_RECEIVETIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_DR_RECEIVETIMESTAMPNANOSECONDS_OFFSET 40
|
|
|
|
#define PTP_V2_DR_REQUESTINGPORTIDENTITY_OFFSET 44
|
|
|
|
#define PTP_V2_DR_REQUESTINGSOURCEPORTID_OFFSET 52
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Offsets for PTP_PDelayRequest (=PDRQ) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_PDRQ_ORIGINTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_PDRQ_ORIGINTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_PDRQ_ORIGINTIMESTAMPNANOSECONDS_OFFSET 40
|
|
|
|
#define PTP_V2_PDRQ_RESERVED_OFFSET 44
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Offsets for PTP_PDelayResponse (=PDRS) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_PDRS_REQUESTRECEIPTTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_PDRS_REQUESTRECEIPTTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_PDRS_REQUESTRECEIPTTIMESTAMPNANOSECONDS_OFFSET 40
|
|
|
|
#define PTP_V2_PDRS_REQUESTINGPORTIDENTITY_OFFSET 44 /* ++ */
|
|
|
|
#define PTP_V2_PDRS_REQUESTINGSOURCEPORTID_OFFSET 52 /* ++ */
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*Offsets for PTP_PDelayResponseFollowUp (=PDFU) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_PDFU_RESPONSEORIGINTIMESTAMP_OFFSET 34
|
|
|
|
#define PTP_V2_PDFU_RESPONSEORIGINTIMESTAMPSECONDS_OFFSET 34
|
|
|
|
#define PTP_V2_PDFU_RESPONSEORIGINTIMESTAMPNANOSECONDS_OFFSET 40
|
|
|
|
#define PTP_V2_PDFU_REQUESTINGPORTIDENTITY_OFFSET 44 /* ++ */
|
|
|
|
#define PTP_V2_PDFU_REQUESTINGSOURCEPORTID_OFFSET 52
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*Offsets for PTP_Signalling (=SIG) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_SIG_TARGETPORTIDENTITY_OFFSET 34
|
|
|
|
#define PTP_V2_SIG_TARGETPORTID_OFFSET 42
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* 802.1AS Signalling Message Interval Request TLV */
|
|
|
|
#define PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET 44
|
|
|
|
|
|
|
|
/* 802.1AS Signalling TLV field offsets */
|
|
|
|
#define PTP_AS_SIG_TLV_TYPE_OFFSET 0
|
|
|
|
#define PTP_AS_SIG_TLV_LENGTHFIELD_OFFSET 2
|
|
|
|
#define PTP_AS_SIG_TLV_ORGANIZATIONID_OFFSET 4
|
|
|
|
#define PTP_AS_SIG_TLV_ORGANIZATIONSUBTYPE_OFFSET 7
|
|
|
|
#define PTP_AS_SIG_TLV_LINKDELAYINTERVAL_OFFSET 10
|
|
|
|
#define PTP_AS_SIG_TLV_TIMESYNCINTERVAL_OFFSET 11
|
|
|
|
#define PTP_AS_SIG_TLV_ANNOUNCEINTERVAL_OFFSET 12
|
|
|
|
#define PTP_AS_SIG_TLV_FLAGS_OFFSET 13
|
|
|
|
|
|
|
|
/**********************************************************/
|
|
|
|
/* Message Interval Request flag-field-mask-definitions */
|
|
|
|
/**********************************************************/
|
|
|
|
#define PTP_AS_FLAGS_COMP_NEIGHBOR_RATE_RATIO_BITMASK 0x0002
|
|
|
|
#define PTP_AS_FLAGS_COMP_NEIGHBOR_PROP_DELAY_BITMASK 0x0004
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
/*Offsets for PTP_V2_Management (=MM) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_MM_TARGETPORTIDENTITY_OFFSET 34
|
|
|
|
#define PTP_V2_MM_TARGETPORTID_OFFSET 42
|
|
|
|
#define PTP_V2_MM_STARTINGBOUNDARYHOPS_OFFSET 44
|
|
|
|
#define PTP_V2_MM_BOUNDARYHOPS_OFFSET 45
|
|
|
|
#define PTP_V2_MM_ACTION_OFFSET 46
|
|
|
|
#define PTP_V2_MM_RESERVED_OFFSET 47
|
|
|
|
|
|
|
|
#define PTP_V2_MM_MANAGEMENTTLV_OFFSET 48
|
2008-03-03 20:26:37 +00:00
|
|
|
/* Management TLV */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_MM_TLV_TYPE_OFFSET 48
|
|
|
|
#define PTP_V2_MM_TLV_LENGTHFIELD_OFFSET 50
|
|
|
|
#define PTP_V2_MM_TLV_MANAGEMENTID_OFFSET 52
|
|
|
|
#define PTP_V2_MM_TLV_MANAGEMENTERRORID_OFFSET 52
|
|
|
|
#define PTP_V2_MM_TLV_DATAFIELD_OFFSET 54
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
/* TLV Types */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_TLV_TYPE_RESERVED 0x0000
|
|
|
|
#define PTP_V2_TLV_TYPE_MANAGEMENT 0x0001
|
|
|
|
#define PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS 0x0002
|
|
|
|
#define PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION 0x0003
|
|
|
|
#define PTP_V2_TLV_TYPE_REQUEST_UNICAST_TRANSMISSION 0x0004
|
|
|
|
#define PTP_V2_TLV_TYPE_GRANT_UNICAST_TRANSMISSION 0x0005
|
|
|
|
#define PTP_V2_TLV_TYPE_CANCEL_UNICAST_TRANSMISSION 0x0006
|
|
|
|
#define PTP_V2_TLV_TYPE_ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION 0x0007
|
|
|
|
#define PTP_V2_TLV_TYPE_PATH_TRACE 0x0008
|
|
|
|
#define PTP_V2_TLV_TYPE_ALTERNATE_TIME_OFFSET_INDICATOR 0x0009
|
|
|
|
#define PTP_V2_TLV_TYPE_AUTHENTICATION 0x2000
|
|
|
|
#define PTP_V2_TLV_TYPE_AUTHENTICATION_CHALLENGE 0x2001
|
|
|
|
#define PTP_V2_TLV_TYPE_SECURITY_ASSOCIATION_UPDATE 0x2002
|
|
|
|
#define PTP_V2_TLV_TYPE_CUM_FREQ_SCALE_FACTOR_OFFSET 0x2003
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Signalling TLV Object IDs */
|
|
|
|
#define PTP_AS_TLV_OID_TYPE_802 0x0080C2
|
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
/* PTPv2 Management clockType Boolean[16] Bits mask */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define CLOCKTYPE_ORDINARY_CLOCK 0x8000
|
|
|
|
#define CLOCKTYPE_BOUNDARY_CLOCK 0x4000
|
|
|
|
#define CLOCKTYPE_P2P_TC 0x2000
|
|
|
|
#define CLOCKTYPE_E2E_TC 0x1000
|
|
|
|
#define CLOCKTYPE_MANAGEMENT_NODE 0x0800
|
|
|
|
#define CLOCKTYPE_RESERVED 0x07FF
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
/* PTPv2 Management IDs */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_MM_ID_NULL_MANAGEMENT 0x0000
|
|
|
|
#define PTP_V2_MM_ID_CLOCK_DESCRIPTION 0x0001
|
|
|
|
#define PTP_V2_MM_ID_USER_DESCRIPTION 0x0002
|
|
|
|
#define PTP_V2_MM_ID_SAVE_IN_NON_VOLATILE_STORAGE 0x0003
|
|
|
|
#define PTP_V2_MM_ID_RESET_NON_VOLATILE_STORAGE 0x0004
|
|
|
|
#define PTP_V2_MM_ID_INITIALIZE 0x0005
|
|
|
|
#define PTP_V2_MM_ID_FAULT_LOG 0x0006
|
|
|
|
#define PTP_V2_MM_ID_FAULT_LOG_RESET 0x0007
|
|
|
|
#define PTP_V2_MM_ID_DEFAULT_DATA_SET 0x2000
|
|
|
|
#define PTP_V2_MM_ID_CURRENT_DATA_SET 0x2001
|
|
|
|
#define PTP_V2_MM_ID_PARENT_DATA_SET 0x2002
|
|
|
|
#define PTP_V2_MM_ID_TIME_PROPERTIES_DATA_SET 0x2003
|
|
|
|
#define PTP_V2_MM_ID_PORT_DATA_SET 0x2004
|
|
|
|
#define PTP_V2_MM_ID_PRIORITY1 0x2005
|
|
|
|
#define PTP_V2_MM_ID_PRIORITY2 0x2006
|
|
|
|
#define PTP_V2_MM_ID_DOMAIN 0x2007
|
|
|
|
#define PTP_V2_MM_ID_SLAVE_ONLY 0x2008
|
|
|
|
#define PTP_V2_MM_ID_LOG_ANNOUNCE_INTERVAL 0x2009
|
|
|
|
#define PTP_V2_MM_ID_ANNOUNCE_RECEIPT_TIMEOUT 0x200A
|
|
|
|
#define PTP_V2_MM_ID_LOG_SYNC_INTERVAL 0x200B
|
|
|
|
#define PTP_V2_MM_ID_VERSION_NUMBER 0x200C
|
|
|
|
#define PTP_V2_MM_ID_ENABLE_PORT 0x200D
|
|
|
|
#define PTP_V2_MM_ID_DISABLE_PORT 0x200E
|
|
|
|
#define PTP_V2_MM_ID_TIME 0x200F
|
|
|
|
#define PTP_V2_MM_ID_CLOCK_ACCURACY 0x2010
|
|
|
|
#define PTP_V2_MM_ID_UTC_PROPERTIES 0x2011
|
|
|
|
#define PTP_V2_MM_ID_TRACEABILITY_PROPERTIES 0x2012
|
|
|
|
#define PTP_V2_MM_ID_TIMESCALE_PROPERTIES 0x2013
|
|
|
|
#define PTP_V2_MM_ID_UNICAST_NEGOTIATION_ENABLE 0x2014
|
|
|
|
#define PTP_V2_MM_ID_PATH_TRACE_LIST 0x2015
|
|
|
|
#define PTP_V2_MM_ID_PATH_TRACE_ENABLE 0x2016
|
|
|
|
#define PTP_V2_MM_ID_GRANDMASTER_CLUSTER_TABLE 0x2017
|
|
|
|
#define PTP_V2_MM_ID_UNICAST_MASTER_TABLE 0x2018
|
|
|
|
#define PTP_V2_MM_ID_UNICAST_MASTER_MAX_TABLE_SIZE 0x2019
|
|
|
|
#define PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE 0x201A
|
|
|
|
#define PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE_ENABLED 0x201B
|
|
|
|
#define PTP_V2_MM_ID_ACCEPTABLE_MASTER_MAX_TABLE_SIZE 0x201C
|
|
|
|
#define PTP_V2_MM_ID_ALTERNATE_MASTER 0x201D
|
|
|
|
#define PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_ENABLE 0x201E
|
|
|
|
#define PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_NAME 0x201F
|
|
|
|
#define PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_MAX_KEY 0x2020
|
|
|
|
#define PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_PROPERTIES 0x2021
|
|
|
|
#define PTP_V2_MM_ID_TC_DEFAULT_DATA_SET 0x4000
|
|
|
|
#define PTP_V2_MM_ID_TC_PORT_DATA_SET 0x4001
|
|
|
|
#define PTP_V2_MM_ID_PRIMARY_DOMAIN 0x4002
|
|
|
|
#define PTP_V2_MM_ID_DELAY_MECHANISM 0x6000
|
|
|
|
#define PTP_V2_MM_ID_LOG_MIN_PDELAY_REQ_INTERVAL 0x6001
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
/* Management DataField for DefaultDS */
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_MM_RESERVED1 PTP_V2_MM_TLV_DATAFIELD_OFFSET + 1
|
|
|
|
#define PTP_V2_MM_NUMBERPORTS PTP_V2_MM_TLV_DATAFIELD_OFFSET + 2
|
|
|
|
#define PTP_V2_MM_PRIORITY1 PTP_V2_MM_TLV_DATAFIELD_OFFSET + 4
|
|
|
|
#define PTP_V2_MM_CLOCKQUALITY PTP_V2_MM_TLV_DATAFIELD_OFFSET + 5
|
|
|
|
#define PTP_V2_MM_PRIORITY2 PTP_V2_MM_TLV_DATAFIELD_OFFSET + 9
|
|
|
|
#define PTP_V2_MM_CLOCKIDENTITY PTP_V2_MM_TLV_DATAFIELD_OFFSET + 10
|
|
|
|
#define PTP_V2_MM_DOMAINNUMBER PTP_V2_MM_TLV_DATAFIELD_OFFSET + 18
|
|
|
|
#define PTP_V2_MM_RESERVED2 PTP_V2_MM_TLV_DATAFIELD_OFFSET + 19
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2012-09-05 07:40:36 +00:00
|
|
|
/* Organization IDs for PTPv2 Organization Extension */
|
|
|
|
#define PTP_V2_OE_ORG_ID_IEEE_C37_238 0x1C129D /* Defined in IEEE Std C37.238-2011 */
|
|
|
|
|
|
|
|
/* Subtypes for the PTP_V2_OE_ORG_ID_IEEE_C37_238 organization ID */
|
|
|
|
#define PTP_V2_OE_ORG_IEEE_C37_238_SUBTYPE_C37238TLV 1 /* Defined in IEEE Std C37.238-2011 */
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_TRANSPORTSPECIFIC_V1COMPATIBILITY_BITMASK 0x10
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
#define PTP_V2_TRANSPORTSPECIFIC_ASPACKET_BITMASK 0x10
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* flag-field-mask-definitions */
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_FLAGS_LI61_BITMASK 0x0001
|
|
|
|
#define PTP_V2_FLAGS_LI59_BITMASK 0x0002
|
|
|
|
#define PTP_V2_FLAGS_UTC_OFFSET_VALID_BITMASK 0x0004
|
|
|
|
#define PTP_V2_FLAGS_PTP_TIMESCALE_BITMASK 0x0008
|
|
|
|
#define PTP_V2_FLAGS_TIME_TRACEABLE_BITMASK 0x0010
|
|
|
|
#define PTP_V2_FLAGS_FREQUENCY_TRACEABLE_BITMASK 0x0020
|
|
|
|
#define PTP_V2_FLAGS_ALTERNATE_BITMASK 0x0100
|
|
|
|
#define PTP_V2_FLAGS_TWO_STEP_BITMASK 0x0200
|
|
|
|
#define PTP_V2_FLAGS_UNICAST_BITMASK 0x0400
|
|
|
|
#define PTP_V2_FLAGS_SPECIFIC1_BITMASK 0x2000
|
|
|
|
#define PTP_V2_FLAGS_SPECIFIC2_BITMASK 0x4000
|
|
|
|
#define PTP_V2_FLAGS_SECURITY_BITMASK 0x8000
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* PTP v2 message ids (ptp messageid field) */
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
#define PTP_V2_SYNC_MESSAGE 0x00
|
|
|
|
#define PTP_V2_DELAY_REQ_MESSAGE 0x01
|
|
|
|
#define PTP_V2_PATH_DELAY_REQ_MESSAGE 0x02
|
|
|
|
#define PTP_V2_PATH_DELAY_RESP_MESSAGE 0x03
|
|
|
|
#define PTP_V2_FOLLOWUP_MESSAGE 0x08
|
|
|
|
#define PTP_V2_DELAY_RESP_MESSAGE 0x09
|
|
|
|
#define PTP_V2_PATH_DELAY_FOLLOWUP_MESSAGE 0x0A
|
|
|
|
#define PTP_V2_ANNOUNCE_MESSAGE 0x0B
|
|
|
|
#define PTP_V2_SIGNALLING_MESSAGE 0x0C
|
|
|
|
#define PTP_V2_MANAGEMENT_MESSAGE 0x0D
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
static const value_string ptp_v2_managementID_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_V2_MM_ID_NULL_MANAGEMENT ,"NULL_MANAGEMENT"},
|
|
|
|
{PTP_V2_MM_ID_CLOCK_DESCRIPTION ,"CLOCK_DESCRIPTION"},
|
|
|
|
{PTP_V2_MM_ID_USER_DESCRIPTION ,"USER_DESCRIPTION"},
|
|
|
|
{PTP_V2_MM_ID_SAVE_IN_NON_VOLATILE_STORAGE ,"SAVE_IN_NON_VOLATILE_STORAGE"},
|
|
|
|
{PTP_V2_MM_ID_RESET_NON_VOLATILE_STORAGE ,"RESET_NON_VOLATILE_STORAGE"},
|
|
|
|
{PTP_V2_MM_ID_INITIALIZE ,"INITIALIZE"},
|
|
|
|
{PTP_V2_MM_ID_FAULT_LOG ,"FAULT_LOG"},
|
|
|
|
{PTP_V2_MM_ID_FAULT_LOG_RESET ,"FAULT_LOG_RESET"},
|
|
|
|
{PTP_V2_MM_ID_DEFAULT_DATA_SET ,"DEFAULT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_CURRENT_DATA_SET ,"CURRENT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_PARENT_DATA_SET ,"PARENT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_TIME_PROPERTIES_DATA_SET ,"TIME_PROPERTIES_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_PORT_DATA_SET ,"PORT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_PRIORITY1 ,"PRIORITY1"},
|
|
|
|
{PTP_V2_MM_ID_PRIORITY2 ,"PRIORITY2"},
|
|
|
|
{PTP_V2_MM_ID_DOMAIN ,"DOMAIN"},
|
|
|
|
{PTP_V2_MM_ID_SLAVE_ONLY ,"SLAVE_ONLY"},
|
|
|
|
{PTP_V2_MM_ID_LOG_ANNOUNCE_INTERVAL ,"LOG_ANNOUNCE_INTERVAL"},
|
|
|
|
{PTP_V2_MM_ID_ANNOUNCE_RECEIPT_TIMEOUT ,"ANNOUNCE_RECEIPT_TIMEOUT"},
|
|
|
|
{PTP_V2_MM_ID_LOG_SYNC_INTERVAL ,"LOG_SYNC_INTERVAL"},
|
|
|
|
{PTP_V2_MM_ID_VERSION_NUMBER ,"VERSION_NUMBER"},
|
|
|
|
{PTP_V2_MM_ID_ENABLE_PORT ,"ENABLE_PORT"},
|
|
|
|
{PTP_V2_MM_ID_DISABLE_PORT ,"DISABLE_PORT"},
|
|
|
|
{PTP_V2_MM_ID_TIME ,"TIME"},
|
|
|
|
{PTP_V2_MM_ID_CLOCK_ACCURACY ,"CLOCK_ACCURACY"},
|
|
|
|
{PTP_V2_MM_ID_UTC_PROPERTIES ,"UTC_PROPERTIES"},
|
|
|
|
{PTP_V2_MM_ID_TRACEABILITY_PROPERTIES ,"TRACEABILITY_PROPERTIES"},
|
|
|
|
{PTP_V2_MM_ID_TIMESCALE_PROPERTIES ,"TIMESCALE_PROPERTIES"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_NEGOTIATION_ENABLE ,"UNICAST_NEGOTIATION_ENABLE"},
|
|
|
|
{PTP_V2_MM_ID_PATH_TRACE_LIST ,"PATH_TRACE_LIST"},
|
|
|
|
{PTP_V2_MM_ID_PATH_TRACE_ENABLE ,"PATH_TRACE_ENABLE"},
|
|
|
|
{PTP_V2_MM_ID_GRANDMASTER_CLUSTER_TABLE ,"GRANDMASTER_CLUSTER_TABLE"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_MASTER_TABLE ,"UNICAST_MASTER_TABLE"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_MASTER_MAX_TABLE_SIZE ,"UNICAST_MASTER_MAX_TABLE_SIZE"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE ,"ACCEPTABLE_MASTER_TABLE"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE_ENABLED ,"ACCEPTABLE_MASTER_TABLE_ENABLED"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_MAX_TABLE_SIZE ,"ACCEPTABLE_MASTER_MAX_TABLE_SIZE"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_MASTER ,"ALTERNATE_MASTER"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_ENABLE ,"ALTERNATE_TIME_OFFSET_ENABLE"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_NAME ,"ALTERNATE_TIME_OFFSET_NAME"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_MAX_KEY ,"ALTERNATE_TIME_OFFSET_MAX_KEY"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_PROPERTIES ,"ALTERNATE_TIME_OFFSET_PROPERTIES"},
|
|
|
|
{PTP_V2_MM_ID_TC_DEFAULT_DATA_SET ,"TC_DEFAULT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_TC_PORT_DATA_SET ,"TC_PORT_DATA_SET"},
|
|
|
|
{PTP_V2_MM_ID_PRIMARY_DOMAIN ,"PRIMARY_DOMAIN"},
|
|
|
|
{PTP_V2_MM_ID_DELAY_MECHANISM ,"DELAY_MECHANISM"},
|
|
|
|
{PTP_V2_MM_ID_LOG_MIN_PDELAY_REQ_INTERVAL ,"LOG_MIN_PDELAY_REQ_INTERVAL"},
|
|
|
|
{0 ,NULL} };
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
/*same again but better readable text for info column*/
|
|
|
|
static const value_string ptp_v2_managementID_infocolumn_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_V2_MM_ID_NULL_MANAGEMENT ,"Null management"},
|
|
|
|
{PTP_V2_MM_ID_CLOCK_DESCRIPTION ,"Clock description"},
|
|
|
|
{PTP_V2_MM_ID_USER_DESCRIPTION ,"User description"},
|
|
|
|
{PTP_V2_MM_ID_SAVE_IN_NON_VOLATILE_STORAGE ,"Save in non volatile storage"},
|
|
|
|
{PTP_V2_MM_ID_RESET_NON_VOLATILE_STORAGE ,"Reset non volatile storage"},
|
|
|
|
{PTP_V2_MM_ID_INITIALIZE ,"Initialize"},
|
|
|
|
{PTP_V2_MM_ID_FAULT_LOG ,"Fault log"},
|
|
|
|
{PTP_V2_MM_ID_FAULT_LOG_RESET ,"Fault log reset"},
|
|
|
|
{PTP_V2_MM_ID_DEFAULT_DATA_SET ,"Default dataset"},
|
|
|
|
{PTP_V2_MM_ID_CURRENT_DATA_SET ,"Current dataset"},
|
|
|
|
{PTP_V2_MM_ID_PARENT_DATA_SET ,"Parent dataset"},
|
|
|
|
{PTP_V2_MM_ID_TIME_PROPERTIES_DATA_SET ,"Time properties dataset"},
|
|
|
|
{PTP_V2_MM_ID_PORT_DATA_SET ,"Port dataset"},
|
|
|
|
{PTP_V2_MM_ID_PRIORITY1 ,"Priority 1"},
|
|
|
|
{PTP_V2_MM_ID_PRIORITY2 ,"Priority 2"},
|
|
|
|
{PTP_V2_MM_ID_DOMAIN ,"Domain"},
|
|
|
|
{PTP_V2_MM_ID_SLAVE_ONLY ,"Slave only"},
|
|
|
|
{PTP_V2_MM_ID_LOG_ANNOUNCE_INTERVAL ,"Log announce interval"},
|
|
|
|
{PTP_V2_MM_ID_ANNOUNCE_RECEIPT_TIMEOUT ,"Announce receipt timeout"},
|
|
|
|
{PTP_V2_MM_ID_LOG_SYNC_INTERVAL ,"Log sync interval"},
|
|
|
|
{PTP_V2_MM_ID_VERSION_NUMBER ,"Version number"},
|
|
|
|
{PTP_V2_MM_ID_ENABLE_PORT ,"Enable port"},
|
|
|
|
{PTP_V2_MM_ID_DISABLE_PORT ,"Disable port"},
|
|
|
|
{PTP_V2_MM_ID_TIME ,"Time"},
|
|
|
|
{PTP_V2_MM_ID_CLOCK_ACCURACY ,"Clock accuracy"},
|
|
|
|
{PTP_V2_MM_ID_UTC_PROPERTIES ,"UTC properties"},
|
|
|
|
{PTP_V2_MM_ID_TRACEABILITY_PROPERTIES ,"Traceability properties"},
|
|
|
|
{PTP_V2_MM_ID_TIMESCALE_PROPERTIES ,"Timescale properties"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_NEGOTIATION_ENABLE ,"Unicast negotiation enable"},
|
|
|
|
{PTP_V2_MM_ID_PATH_TRACE_LIST ,"Path trace list"},
|
|
|
|
{PTP_V2_MM_ID_PATH_TRACE_ENABLE ,"Path trace enable"},
|
|
|
|
{PTP_V2_MM_ID_GRANDMASTER_CLUSTER_TABLE ,"Grandmaster cluster table"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_MASTER_TABLE ,"Unicast master table"},
|
|
|
|
{PTP_V2_MM_ID_UNICAST_MASTER_MAX_TABLE_SIZE ,"Unicast master max table size"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE ,"Acceptable master table"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE_ENABLED ,"Acceptable master table enabled"},
|
|
|
|
{PTP_V2_MM_ID_ACCEPTABLE_MASTER_MAX_TABLE_SIZE ,"Acceptable master max table size"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_MASTER ,"Alternate master"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_ENABLE ,"Alternate time offset enable"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_NAME ,"Alternate time offset name"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_MAX_KEY ,"Alternate time offset max key"},
|
|
|
|
{PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_PROPERTIES ,"Alternate time offset properties"},
|
|
|
|
{PTP_V2_MM_ID_TC_DEFAULT_DATA_SET ,"Transparent clock default dataset"},
|
|
|
|
{PTP_V2_MM_ID_TC_PORT_DATA_SET ,"Transparent clock port dataset"},
|
|
|
|
{PTP_V2_MM_ID_PRIMARY_DOMAIN ,"Primary domain"},
|
|
|
|
{PTP_V2_MM_ID_DELAY_MECHANISM ,"Delay mechanism"},
|
|
|
|
{PTP_V2_MM_ID_LOG_MIN_PDELAY_REQ_INTERVAL ,"Log min pdelay req. interval"},
|
|
|
|
{0 , NULL} };
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
static const value_string ptp_v2_TLV_type_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_V2_TLV_TYPE_RESERVED ,"Reserved"},
|
|
|
|
{PTP_V2_TLV_TYPE_MANAGEMENT ,"Management"},
|
|
|
|
{PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS ,"Management error status"},
|
|
|
|
{PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION ,"Organization extension"},
|
|
|
|
{PTP_V2_TLV_TYPE_REQUEST_UNICAST_TRANSMISSION ,"Request unicast transmission"},
|
|
|
|
{PTP_V2_TLV_TYPE_GRANT_UNICAST_TRANSMISSION ,"Grant unicast transmission"},
|
|
|
|
{PTP_V2_TLV_TYPE_CANCEL_UNICAST_TRANSMISSION ,"Cancel unicast transmission"},
|
|
|
|
{PTP_V2_TLV_TYPE_ACKNOWLEDGE_CANCEL_UNICAST_TRANSMISSION ,"Acknowledge cancel unicast transmission"},
|
|
|
|
{PTP_V2_TLV_TYPE_PATH_TRACE ,"Path trace"},
|
|
|
|
{PTP_V2_TLV_TYPE_ALTERNATE_TIME_OFFSET_INDICATOR,"Alternate time offset indicator"},
|
|
|
|
{PTP_V2_TLV_TYPE_AUTHENTICATION ,"Authentication"},
|
|
|
|
{PTP_V2_TLV_TYPE_AUTHENTICATION_CHALLENGE ,"Authentication challenge"},
|
|
|
|
{PTP_V2_TLV_TYPE_SECURITY_ASSOCIATION_UPDATE ,"Security association update"},
|
|
|
|
{PTP_V2_TLV_TYPE_CUM_FREQ_SCALE_FACTOR_OFFSET ,"Cum. freq. scale factor offset"},
|
|
|
|
{0 , NULL} };
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
static const value_string ptp_as_TLV_oid_vals[] = {
|
|
|
|
{PTP_AS_TLV_OID_TYPE_802 ,"IEEE 802"},
|
2010-05-13 22:16:28 +00:00
|
|
|
{0 , NULL} };
|
2008-03-03 20:26:37 +00:00
|
|
|
|
|
|
|
static const value_string ptp2_networkProtocol_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x0000, "Reserved"},
|
|
|
|
{0x0001, "UDP/IPv4"},
|
|
|
|
{0x0002, "UDP/IPv6"},
|
|
|
|
{0x0003, "IEEE 802.3"},
|
|
|
|
{0x0004, "DeviceNet"},
|
|
|
|
{0x0005, "ControlNet"},
|
|
|
|
{0x0006, "PROFINET"},
|
|
|
|
{0x0007, "Reserved"},
|
|
|
|
{0xFFFE, "Unknown Protocol"},
|
|
|
|
{0xFFFF, "Reserved"},
|
|
|
|
{0, NULL } };
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
static const value_string ptp_v2_messageid_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_V2_SYNC_MESSAGE, "Sync Message"},
|
|
|
|
{PTP_V2_DELAY_REQ_MESSAGE, "Delay_Req Message"},
|
|
|
|
{PTP_V2_PATH_DELAY_REQ_MESSAGE, "Path_Delay_Req Message"},
|
|
|
|
{PTP_V2_PATH_DELAY_RESP_MESSAGE, "Path_Delay_Resp Message"},
|
|
|
|
{PTP_V2_FOLLOWUP_MESSAGE, "Follow_Up Message"},
|
|
|
|
{PTP_V2_DELAY_RESP_MESSAGE, "Delay_Resp Message"},
|
2008-03-03 20:26:37 +00:00
|
|
|
{PTP_V2_PATH_DELAY_FOLLOWUP_MESSAGE,"Path_Delay_Resp_Follow_Up Message"},
|
2010-05-10 15:54:57 +00:00
|
|
|
{PTP_V2_ANNOUNCE_MESSAGE, "Announce Message"},
|
|
|
|
{PTP_V2_SIGNALLING_MESSAGE, "Signalling Message"},
|
|
|
|
{PTP_V2_MANAGEMENT_MESSAGE, "Management Message"},
|
|
|
|
{0, NULL }
|
2007-08-08 20:06:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp_v2_clockaccuracy_vals[] = {
|
|
|
|
{0x20, "The time is accurate to within 25 ns"},
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x21, "The time is accurate to within 100 ns"},
|
|
|
|
{0x22, "The time is accurate to within 250 ns"},
|
|
|
|
{0x23, "The time is accurate to within 1 us"},
|
|
|
|
{0x24, "The time is accurate to within 2,5 us"},
|
|
|
|
{0x25, "The time is accurate to within 10 us"},
|
|
|
|
{0x26, "The time is accurate to within 25 us"},
|
|
|
|
{0x27, "The time is accurate to within 100 us"},
|
|
|
|
{0x28, "The time is accurate to within 250 us"},
|
|
|
|
{0x29, "The time is accurate to within 1 ms"},
|
|
|
|
{0x2A, "The time is accurate to within 2,5 ms"},
|
|
|
|
{0x2B, "The time is accurate to within 10 ms"},
|
|
|
|
{0x2C, "The time is accurate to within 25 ms"},
|
|
|
|
{0x2D, "The time is accurate to within 100 ms"},
|
|
|
|
{0x2E, "The time is accurate to within 250 ms"},
|
|
|
|
{0x2F, "The time is accurate to within 1 s"},
|
|
|
|
{0x30, "The time is accurate to within 10 s"},
|
|
|
|
{0x31, "The time is accurate to >10 s"},
|
|
|
|
{0x32, "reserved"},
|
|
|
|
{0x80, "For use by alternate PTP profiles"},
|
|
|
|
{0xFE, "Accuracy Unknown"},
|
|
|
|
{0xFF, "reserved"},
|
|
|
|
{0, NULL }
|
2007-08-08 20:06:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp_v2_timesource_vals[] = {
|
|
|
|
{0x10, "ATOMIC_CLOCK"},
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x20, "GPS"},
|
|
|
|
{0x30, "TERRESTRIAL_RADIO"},
|
|
|
|
{0x40, "PTP"},
|
|
|
|
{0x50, "NTP"},
|
|
|
|
{0x60, "HAND_SET"},
|
|
|
|
{0x90, "OTHER"},
|
|
|
|
{0xA0, "INTERNAL_OSCILLATOR"},
|
|
|
|
{0xFF, "reserved"},
|
|
|
|
{0, NULL }
|
2007-08-08 20:06:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp_v2_mm_action_vals[] = {
|
|
|
|
{0x0, "GET"},
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x1, "SET"},
|
|
|
|
{0x2, "RESPONSE"},
|
|
|
|
{0x3, "COMMAND"},
|
|
|
|
{0x4, "ACKNOWLEDGE"},
|
|
|
|
{0, NULL }
|
2007-08-08 20:06:51 +00:00
|
|
|
};
|
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
static const value_string ptp2_severityCode_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x00, "Emergency: system is unusable"},
|
|
|
|
{0x01, "Alert: immediate action needed"},
|
|
|
|
{0x02, "Critical: critical conditions"},
|
|
|
|
{0x03, "Error: error conditions"},
|
|
|
|
{0x04, "Warning: warning conditions"},
|
|
|
|
{0x05, "Notice: normal but significant condition"},
|
|
|
|
{0x06, "Informational: informational messages"},
|
|
|
|
{0x07, "Debug: debug-level messages"},
|
|
|
|
{0x08, "Reserved"},
|
|
|
|
{0xFF, "Reserved"},
|
|
|
|
{0, NULL}
|
2008-03-03 20:26:37 +00:00
|
|
|
};
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
static const value_string ptp2_portState_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x01, "INITIALIZING"},
|
|
|
|
{0x02, "FAULTY"},
|
|
|
|
{0x03, "DISABLED"},
|
|
|
|
{0x04, "LISTENING"},
|
|
|
|
{0x05, "PRE_MASTER"},
|
|
|
|
{0x06, "MASTER"},
|
|
|
|
{0x07, "PASSIVE"},
|
|
|
|
{0x08, "UNCALIBRATED"},
|
|
|
|
{0x09, "SLAVE"},
|
|
|
|
{0, NULL}
|
2008-03-03 20:26:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp2_delayMechanism_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x01, "E2E"},
|
|
|
|
{0x02, "P2P"},
|
|
|
|
{0xFE, "DISABLED"},
|
|
|
|
{0, NULL}
|
2008-03-03 20:26:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp2_managementErrorId_vals[] = {
|
2010-05-10 15:54:57 +00:00
|
|
|
{0x0000, "Reserved"},
|
|
|
|
{0x0001, "RESPONSE_TOO_BIG"},
|
|
|
|
{0x0002, "NO_SUCH_ID"},
|
|
|
|
{0x0003, "WRONG_LENGTH"},
|
|
|
|
{0x0004, "WRONG_VALUE"},
|
|
|
|
{0x0005, "NOT_SETABLE"},
|
|
|
|
{0x0006, "NOT_SUPPORTED"},
|
|
|
|
{0x0007, "Reserved"},
|
|
|
|
{0xFFFE, "GENERAL_ERROR"},
|
|
|
|
{0xFFFF, "Reserved"},
|
|
|
|
{0, NULL}
|
2008-03-03 20:26:37 +00:00
|
|
|
};
|
|
|
|
|
2012-09-05 07:40:36 +00:00
|
|
|
static const value_string ptp2_organizationExtensionOrgId_vals[] = {
|
|
|
|
{PTP_V2_OE_ORG_ID_IEEE_C37_238, "IEEE C37.238"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string ptp2_org_iee_c37_238_subtype_vals[] = {
|
|
|
|
{PTP_V2_OE_ORG_IEEE_C37_238_SUBTYPE_C37238TLV, "IEEE_C37_238 TLV"},
|
|
|
|
{0, NULL}
|
|
|
|
};
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
|
|
|
|
|
|
|
static int hf_ptp_v2_transportspecific = -1;
|
|
|
|
static int hf_ptp_v2_transportspecific_v1_compatibility = -1; /* over UDP */
|
|
|
|
static int hf_ptp_v2_transportspecific_802as_conform = -1; /* over Ethernet */
|
|
|
|
static int hf_ptp_v2_messageid = -1;
|
|
|
|
static int hf_ptp_v2_versionptp = -1;
|
|
|
|
static int hf_ptp_v2_messagelength = -1;
|
|
|
|
static int hf_ptp_v2_domainnumber = -1;
|
|
|
|
static int hf_ptp_v2_flags = -1;
|
|
|
|
static int hf_ptp_v2_flags_alternatemaster = -1;
|
|
|
|
static int hf_ptp_v2_flags_twostep = -1;
|
|
|
|
static int hf_ptp_v2_flags_unicast = -1;
|
|
|
|
static int hf_ptp_v2_flags_specific1 = -1;
|
|
|
|
static int hf_ptp_v2_flags_specific2 = -1;
|
|
|
|
static int hf_ptp_v2_flags_security = -1;
|
|
|
|
static int hf_ptp_v2_flags_li61 = -1;
|
|
|
|
static int hf_ptp_v2_flags_li59 = -1;
|
|
|
|
static int hf_ptp_v2_flags_utcoffsetvalid = -1;
|
|
|
|
static int hf_ptp_v2_flags_ptptimescale = -1;
|
|
|
|
static int hf_ptp_v2_flags_timetraceable = -1;
|
|
|
|
static int hf_ptp_v2_flags_frequencytraceable = -1;
|
|
|
|
static int hf_ptp_v2_correction = -1;
|
|
|
|
static int hf_ptp_v2_correctionsubns = -1;
|
|
|
|
static int hf_ptp_v2_clockidentity = -1;
|
|
|
|
static int hf_ptp_v2_sourceportid = -1;
|
|
|
|
static int hf_ptp_v2_sequenceid = -1;
|
|
|
|
static int hf_ptp_v2_control = -1;
|
|
|
|
static int hf_ptp_v2_logmessageperiod = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_Announce (=an) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_an_origintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_an_origintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_an_origintimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_v2_an_origincurrentutcoffset = -1;
|
|
|
|
static int hf_ptp_v2_an_timesource = -1;
|
|
|
|
static int hf_ptp_v2_an_localstepsremoved = -1;
|
|
|
|
static int hf_ptp_v2_an_grandmasterclockidentity = -1;
|
|
|
|
static int hf_ptp_v2_an_grandmasterclockclass = -1;
|
|
|
|
static int hf_ptp_v2_an_grandmasterclockaccuracy = -1;
|
|
|
|
static int hf_ptp_v2_an_grandmasterclockvariance = -1;
|
|
|
|
static int hf_ptp_v2_an_priority1 = -1;
|
|
|
|
static int hf_ptp_v2_an_priority2 = -1;
|
|
|
|
|
2009-05-06 07:12:07 +00:00
|
|
|
/* Fields for PTP_Announce TLVs */
|
|
|
|
static int hf_ptp_v2_an_tlv_tlvtype = -1;
|
|
|
|
static int hf_ptp_v2_an_tlv_lengthfield = -1;
|
2012-09-05 07:40:36 +00:00
|
|
|
/* Fields for the ORGANIZATION_EXTENSION TLV */
|
|
|
|
static int hf_ptp_v2_oe_tlv_organizationid = -1;
|
|
|
|
static int hf_ptp_v2_oe_tlv_organizationsubtype = -1;
|
|
|
|
static int hf_ptp_v2_oe_tlv_datafield = -1;
|
|
|
|
/* Fields for IEEE_C37_238 TLV (OE TLV subtype) */
|
|
|
|
static int hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmasterid = -1;
|
|
|
|
static int hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmastertimeinaccuracy = -1;
|
|
|
|
static int hf_ptp_v2_oe_tlv_subtype_c37238tlv_networktimeinaccuracy = -1;
|
|
|
|
static int hf_ptp_v2_oe_tlv_subtype_c37238tlv_reserved = -1;
|
2009-05-06 07:12:07 +00:00
|
|
|
/* Fields for the ALTERNATE_TIME_OFFSET_INDICATOR TLV */
|
|
|
|
static int hf_ptp_v2_atoi_tlv_keyfield = -1;
|
|
|
|
static int hf_ptp_v2_atoi_tlv_currentoffset = -1;
|
|
|
|
static int hf_ptp_v2_atoi_tlv_jumpseconds = -1;
|
|
|
|
static int hf_ptp_v2_atoi_tlv_timeofnextjump = -1;
|
|
|
|
static int hf_ptp_v2_atoi_tlv_displayname = -1;
|
|
|
|
static int hf_ptp_v2_atoi_tlv_displayname_length = -1;
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Field for the PATH TRACE TLV */
|
|
|
|
static int hf_ptp_v2_an_tlv_pathsequence = -1;
|
2009-05-06 07:12:07 +00:00
|
|
|
|
|
|
|
/* Fields for an undissected TLV */
|
|
|
|
static int hf_ptp_v2_an_tlv_data = -1;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_Sync AND PTP_DelayRequest (=sdr) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_sdr_origintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_sdr_origintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_sdr_origintimestamp_nanoseconds = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_Follow_Up (=fu) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_fu_preciseorigintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_fu_preciseorigintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_fu_preciseorigintimestamp_nanoseconds = -1;
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Fields for the Follow_Up Information TLV */
|
|
|
|
static int hf_ptp_as_fu_tlv_tlvtype = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_lengthfield = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_organization_id = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_organization_subtype = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_cumulative_offset = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_gm_base_indicator = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_last_gm_phase_change = -1;
|
|
|
|
static int hf_ptp_as_fu_tlv_scaled_last_gm_phase_change = -1;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_DelayResponse (=dr) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_dr_receivetimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_dr_receivetimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_dr_receivetimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_v2_dr_requestingportidentity = -1;
|
|
|
|
static int hf_ptp_v2_dr_requestingsourceportid = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_PDelayRequest (=pdrq) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_pdrq_origintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_pdrq_origintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_pdrq_origintimestamp_nanoseconds = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_PDelayResponse (=pdrs) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_pdrs_requestreceipttimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_pdrs_requestreceipttimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_pdrs_requestreceipttimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_v2_pdrs_requestingportidentity = -1;
|
|
|
|
static int hf_ptp_v2_pdrs_requestingsourceportid = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_PDelayResponseFollowUp (=pdfu) messages*/
|
2010-05-10 15:54:57 +00:00
|
|
|
static int hf_ptp_v2_pdfu_responseorigintimestamp = -1; /*Field for seconds & nanoseconds*/
|
2007-08-08 20:06:51 +00:00
|
|
|
static int hf_ptp_v2_pdfu_responseorigintimestamp_seconds = -1;
|
|
|
|
static int hf_ptp_v2_pdfu_responseorigintimestamp_nanoseconds = -1;
|
|
|
|
static int hf_ptp_v2_pdfu_requestingportidentity = -1;
|
|
|
|
static int hf_ptp_v2_pdfu_requestingsourceportid = -1;
|
|
|
|
|
|
|
|
|
|
|
|
/*Fields for PTP_Signalling (=sig) messages*/
|
|
|
|
static int hf_ptp_v2_sig_targetportidentity = -1;
|
|
|
|
static int hf_ptp_v2_sig_targetportid = -1;
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Fields for the Message Interval Request TLV */
|
|
|
|
static int hf_ptp_as_sig_tlv_tlvtype = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_lengthfield = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_organization_id = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_organization_subtype = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_link_delay_interval = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_time_sync_interval = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_announce_interval = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_flags = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_flags_comp_rate_ratio = -1;
|
|
|
|
static int hf_ptp_as_sig_tlv_flags_comp_prop_delay = -1;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_Management (=mm) messages*/
|
|
|
|
static int hf_ptp_v2_mm_targetportidentity = -1;
|
|
|
|
static int hf_ptp_v2_mm_targetportid = -1;
|
|
|
|
static int hf_ptp_v2_mm_startingboundaryhops = -1;
|
|
|
|
static int hf_ptp_v2_mm_boundaryhops = -1;
|
|
|
|
static int hf_ptp_v2_mm_action = -1;
|
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
/* management TLV */
|
|
|
|
static int hf_ptp_v2_mm_tlvType = -1;
|
|
|
|
static int hf_ptp_v2_mm_lengthField = -1;
|
|
|
|
static int hf_ptp_v2_mm_managementId = -1;
|
|
|
|
static int hf_ptp_v2_mm_data = -1;
|
|
|
|
/* Management dataField */
|
|
|
|
|
|
|
|
static int hf_ptp_v2_mm_clockType = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_ordinaryClock = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_boundaryClock = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_p2p_transparentClock = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_e2e_transparentClock = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_managementNode = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockType_reserved = -1;
|
|
|
|
static int hf_ptp_v2_mm_physicalLayerProtocol = -1;
|
|
|
|
static int hf_ptp_v2_mm_physicalLayerProtocol_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_physicalAddressLength = -1;
|
|
|
|
static int hf_ptp_v2_mm_physicalAddress = -1;
|
|
|
|
static int hf_ptp_v2_mm_protocolAddress = -1;
|
|
|
|
static int hf_ptp_v2_mm_protocolAddress_networkProtocol = -1;
|
|
|
|
static int hf_ptp_v2_mm_protocolAddress_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_manufacturerIdentity = -1;
|
|
|
|
|
|
|
|
static int hf_ptp_v2_mm_reserved = -1;
|
|
|
|
static int hf_ptp_v2_mm_productDescription = -1;
|
|
|
|
static int hf_ptp_v2_mm_productDescription_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_revisionData = -1;
|
|
|
|
static int hf_ptp_v2_mm_revisionData_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_userDescription = -1;
|
|
|
|
static int hf_ptp_v2_mm_userDescription_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_profileIdentity = -1;
|
|
|
|
static int hf_ptp_v2_mm_pad = -1;
|
|
|
|
|
|
|
|
static int hf_ptp_v2_mm_numberOfFaultRecords = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultRecord = -1;
|
|
|
|
|
|
|
|
static int hf_ptp_v2_mm_initializationKey = -1;
|
|
|
|
static int hf_ptp_v2_mm_severityCode = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultRecordLength = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultTime = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultTime_s = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultTime_ns = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultValue = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultName = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultName_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultValue_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultDescription = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultDescription_length = -1;
|
2008-12-03 22:56:46 +00:00
|
|
|
static int hf_ptp_v2_mm_currentTime_s = -1;
|
2008-03-03 20:26:37 +00:00
|
|
|
static int hf_ptp_v2_mm_currentTime_ns = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockAccuracy = -1;
|
|
|
|
static int hf_ptp_v2_mm_priority1 = -1;
|
|
|
|
static int hf_ptp_v2_mm_priority2 = -1;
|
|
|
|
static int hf_ptp_v2_mm_dds_SO = -1;
|
|
|
|
static int hf_ptp_v2_mm_TSC = -1;
|
|
|
|
static int hf_ptp_v2_mm_numberPorts = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockclass = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockaccuracy = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockvariance = -1;
|
|
|
|
static int hf_ptp_v2_mm_clockidentity = -1;
|
|
|
|
static int hf_ptp_v2_mm_domainNumber = -1;
|
|
|
|
static int hf_ptp_v2_mm_SO = -1;
|
|
|
|
static int hf_ptp_v2_mm_stepsRemoved = -1;
|
|
|
|
static int hf_ptp_v2_mm_parentIdentity = -1;
|
|
|
|
static int hf_ptp_v2_mm_parentPort = -1;
|
|
|
|
static int hf_ptp_v2_mm_parentStats = -1;
|
|
|
|
static int hf_ptp_v2_mm_observedParentOffsetScaledLogVariance = -1;
|
|
|
|
static int hf_ptp_v2_mm_observedParentClockPhaseChangeRate = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterPriority1 = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterPriority2 = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterclockclass = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterclockaccuracy = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterclockvariance = -1;
|
|
|
|
static int hf_ptp_v2_mm_grandmasterIdentity = -1;
|
|
|
|
static int hf_ptp_v2_mm_currentUtcOffset = -1;
|
|
|
|
static int hf_ptp_v2_mm_LI_61 = -1;
|
|
|
|
static int hf_ptp_v2_mm_LI_59 = -1;
|
|
|
|
static int hf_ptp_v2_mm_UTCV = -1;
|
|
|
|
static int hf_ptp_v2_mm_PTP = -1;
|
|
|
|
static int hf_ptp_v2_mm_TTRA = -1;
|
|
|
|
static int hf_ptp_v2_mm_FTRA = -1;
|
|
|
|
static int hf_ptp_v2_mm_timesource = -1;
|
|
|
|
static int hf_ptp_v2_mm_offset_ns = -1;
|
|
|
|
static int hf_ptp_v2_mm_pathDelay_ns = -1;
|
|
|
|
static int hf_ptp_v2_mm_offset_subns = -1;
|
|
|
|
static int hf_ptp_v2_mm_pathDelay_subns = -1;
|
|
|
|
static int hf_ptp_v2_mm_PortNumber = -1;
|
|
|
|
static int hf_ptp_v2_mm_portState = -1;
|
|
|
|
static int hf_ptp_v2_mm_logMinDelayReqInterval = -1;
|
|
|
|
static int hf_ptp_v2_mm_peerMeanPathDelay_ns = -1;
|
|
|
|
static int hf_ptp_v2_mm_peerMeanPathDelay_subns = -1;
|
|
|
|
static int hf_ptp_v2_mm_logAnnounceInterval = -1;
|
|
|
|
static int hf_ptp_v2_mm_announceReceiptTimeout = -1;
|
|
|
|
static int hf_ptp_v2_mm_logSyncInterval = -1;
|
|
|
|
static int hf_ptp_v2_mm_delayMechanism = -1;
|
|
|
|
static int hf_ptp_v2_mm_logMinPdelayReqInterval = -1;
|
|
|
|
static int hf_ptp_v2_mm_versionNumber = -1;
|
|
|
|
static int hf_ptp_v2_mm_primaryDomain = -1;
|
|
|
|
static int hf_ptp_v2_mm_faultyFlag = -1;
|
|
|
|
static int hf_ptp_v2_mm_managementErrorId = -1;
|
|
|
|
static int hf_ptp_v2_mm_displayData = -1;
|
|
|
|
static int hf_ptp_v2_mm_displayData_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_ucEN = -1;
|
|
|
|
static int hf_ptp_v2_mm_ptEN = -1;
|
|
|
|
static int hf_ptp_v2_mm_atEN = -1;
|
|
|
|
static int hf_ptp_v2_mm_keyField = -1;
|
|
|
|
static int hf_ptp_v2_mm_displayName = -1;
|
|
|
|
static int hf_ptp_v2_mm_displayName_length = -1;
|
|
|
|
static int hf_ptp_v2_mm_maxKey = -1;
|
|
|
|
static int hf_ptp_v2_mm_currentOffset = -1;
|
|
|
|
static int hf_ptp_v2_mm_jumpSeconds = -1;
|
|
|
|
static int hf_ptp_v2_mm_logAlternateMulticastSyncInterval = -1;
|
|
|
|
static int hf_ptp_v2_mm_numberOfAlternateMasters = -1;
|
|
|
|
static int hf_ptp_v2_mm_transmitAlternateMulticastSync = -1;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_ptp_v2 = -1;
|
|
|
|
static gint ett_ptp_v2_flags = -1;
|
|
|
|
static gint ett_ptp_v2_correction = -1;
|
|
|
|
static gint ett_ptp_v2_time = -1;
|
|
|
|
static gint ett_ptp_v2_time2 = -1;
|
2008-03-03 20:26:37 +00:00
|
|
|
static gint ett_ptp_v2_managementData = -1;
|
|
|
|
static gint ett_ptp_v2_clockType = -1;
|
|
|
|
static gint ett_ptp_v2_physicalLayerProtocol = -1;
|
|
|
|
static gint ett_ptp_v2_protocolAddress = -1;
|
|
|
|
static gint ett_ptp_v2_faultRecord = -1;
|
|
|
|
static gint ett_ptp_v2_ptptext = -1;
|
|
|
|
static gint ett_ptp_v2_timeInterval = -1;
|
2009-05-06 07:12:07 +00:00
|
|
|
static gint ett_ptp_v2_tlv = -1;
|
2010-05-13 21:47:38 +00:00
|
|
|
static gint ett_ptp_as_sig_tlv_flags = -1;
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2008-03-15 22:41:57 +00:00
|
|
|
/* static gint ett_ptp_v2_timesource = -1;
|
2007-08-08 20:06:51 +00:00
|
|
|
static gint ett_ptp_v2_priority = -1; */
|
|
|
|
static gint ett_ptp_v2_transportspecific = -1;
|
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* For transport specific field Ethernet or UDP */
|
2007-08-08 20:06:51 +00:00
|
|
|
static gboolean ptpv2_oE = FALSE;
|
|
|
|
/* END Definitions and fields for PTPv2 dissection. */
|
|
|
|
|
|
|
|
|
|
|
|
/* forward declaration of local functions for v1 and v2 */
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp_oE(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
|
|
|
static int
|
|
|
|
is_ptp_v1(tvbuff_t *tvb);
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
is_ptp_v2(tvbuff_t *tvb);
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp_v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
|
|
|
|
|
|
|
/**********************************************************/
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Implementation of the functions */
|
2007-08-08 20:06:51 +00:00
|
|
|
/**********************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
/* Code to dissect the packet */
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp_oE(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
ptpv2_oE = TRUE;
|
|
|
|
/* PTP over Ethernet only available with PTPv2 */
|
|
|
|
dissect_ptp_v2(tvb, pinfo, tree);
|
2007-08-08 20:06:51 +00:00
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
ptpv2_oE = FALSE;
|
|
|
|
if(is_ptp_v1(tvb))
|
2007-08-08 20:06:51 +00:00
|
|
|
dissect_ptp_v1(tvb, pinfo, tree);
|
|
|
|
else if(is_ptp_v2(tvb))
|
|
|
|
dissect_ptp_v2(tvb, pinfo, tree);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Code to check if packet is PTPv1 */
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
is_ptp_v1(tvbuff_t *tvb)
|
|
|
|
{
|
|
|
|
guint16 version_ptp;
|
|
|
|
|
|
|
|
version_ptp = tvb_get_ntohs(tvb, PTP_VERSIONPTP_OFFSET);
|
|
|
|
|
|
|
|
if( version_ptp == 1) return TRUE;
|
|
|
|
else return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Code to check if packet is PTPv2 */
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
is_ptp_v2(tvbuff_t *tvb)
|
|
|
|
{
|
|
|
|
guint8 version_ptp;
|
|
|
|
|
|
|
|
version_ptp = 0x0F & tvb_get_guint8(tvb, PTP_V2_VERSIONPTP_OFFSET);
|
|
|
|
|
|
|
|
if( version_ptp == 2) return TRUE;
|
|
|
|
else return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Code to actually dissect the PTPv1 packets */
|
|
|
|
|
|
|
|
static void
|
|
|
|
dissect_ptp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
guint8 ptp_control, ptp_mm_messagekey = 0;
|
|
|
|
nstime_t ts; /*time structure with seconds and nanoseconds*/
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/* Set up structures needed to add the protocol subtree and manage it */
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_item *ti, *flags_ti, *time_ti, *time2_ti;
|
|
|
|
proto_tree *ptp_tree, *ptp_flags_tree, *ptp_time_tree, *ptp_time2_tree;
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/* Make entries in Protocol column and Info column on summary display */
|
2010-05-10 15:54:57 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTPv1");
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
|
2005-08-19 09:28:58 +00:00
|
|
|
/* Get control field (what kind of message is this? (Sync, DelayReq, ...) */
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_control = tvb_get_guint8 (tvb, PTP_CONTROL_OFFSET);
|
|
|
|
/* MGMT packet? */
|
|
|
|
if ( ptp_control == PTP_MANAGEMENT_MESSAGE ){
|
|
|
|
/* Get the managementMessageKey */
|
|
|
|
ptp_mm_messagekey = tvb_get_guint8(tvb, PTP_MM_MANAGEMENTMESSAGEKEY_OFFSET);
|
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/* Create and set the string for "Info" column */
|
2010-05-10 15:54:57 +00:00
|
|
|
switch(ptp_control){
|
|
|
|
case PTP_SYNC_MESSAGE:{
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Sync Message");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_DELAY_REQ_MESSAGE:{
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Delay_Request Message");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_FOLLOWUP_MESSAGE:{
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Follow_Up Message");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_DELAY_RESP_MESSAGE:{
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Delay_Response Message");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MANAGEMENT_MESSAGE:{
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO)){
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Management Message (%s)",
|
|
|
|
val_to_str(ptp_mm_messagekey,
|
|
|
|
ptp_managementMessageKey_infocolumn_vals,
|
|
|
|
"Unknown message key %u"));
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:{
|
|
|
|
col_set_str(pinfo->cinfo, COL_INFO, "Unknown Message");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if (tree) {
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* create display subtree for the protocol */
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_ptp, tvb, 0, -1, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_tree = proto_item_add_subtree(ti, ett_ptp);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_versionptp, tvb, PTP_VERSIONPTP_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_versionnetwork, tvb, PTP_VERSIONNETWORK_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-15 18:46:26 +00:00
|
|
|
hf_ptp_subdomain, tvb, PTP_SUBDOMAIN_OFFSET, 16, ENC_ASCII|ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_messagetype, tvb, PTP_MESSAGETYPE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sourcecommunicationtechnology, tvb, PTP_SOURCECOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-20 14:07:54 +00:00
|
|
|
hf_ptp_sourceuuid, tvb, PTP_SOURCEUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sourceportid, tvb, PTP_SOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sequenceid, tvb, PTP_SEQUENCEID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_control, tvb, PTP_CONTROL_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*Subtree for the flag-field*/
|
|
|
|
if(tree){
|
|
|
|
flags_ti = proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags, tvb, PTP_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_flags_tree = proto_item_add_subtree(flags_ti, ett_ptp_flags);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_li61, tvb, PTP_FLAGS_LI61_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_li59, tvb, PTP_FLAGS_LI59_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_boundary_clock, tvb, PTP_FLAGS_BOUNDARY_CLOCK_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_assist, tvb, PTP_FLAGS_ASSIST_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_ext_sync, tvb, PTP_FLAGS_EXT_SYNC_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_parent, tvb, PTP_FLAGS_PARENT_STATS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_flags_sync_burst, tvb, PTP_FLAGS_SYNC_BURST_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* The rest of the ptp-dissector depends on the control-field */
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
switch(ptp_control){
|
|
|
|
case PTP_SYNC_MESSAGE:
|
|
|
|
case PTP_DELAY_REQ_MESSAGE:{
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/*Subtree for the timestamp-field*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_SDR_ORIGINTIMESTAMP_SECONDS_OFFSET);
|
|
|
|
ts.nsecs = tvb_get_ntohl(tvb, PTP_SDR_ORIGINTIMESTAMP_NANOSECONDS_OFFSET);
|
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_sdr_origintimestamp, tvb, PTP_SDR_ORIGINTIMESTAMP_OFFSET, 8, &ts);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree,
|
|
|
|
hf_ptp_sdr_origintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_ORIGINTIMESTAMP_SECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_sdr_origintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_ORIGINTIMESTAMP_NANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_epochnumber, tvb, PTP_SDR_EPOCHNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_currentutcoffset, tvb, PTP_SDR_CURRENTUTCOFFSET_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_sdr_grandmastercommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_GRANDMASTERCOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-20 14:07:54 +00:00
|
|
|
hf_ptp_sdr_grandmasterclockuuid, tvb, PTP_SDR_GRANDMASTERCLOCKUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_grandmasterportid, tvb, PTP_SDR_GRANDMASTERPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_grandmastersequenceid, tvb, PTP_SDR_GRANDMASTERSEQUENCEID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_sdr_grandmasterclockstratum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_GRANDMASTERCLOCKSTRATUM_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_sdr_grandmasterclockidentifier, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
PTP_SDR_GRANDMASTERCLOCKIDENTIFIER_OFFSET, 4, ENC_ASCII|ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_sdr_grandmasterclockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_GRANDMASTERCLOCKVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_grandmasterpreferred, tvb, PTP_SDR_GRANDMASTERPREFERRED_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_sdr_grandmasterisboundaryclock, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_GRANDMASTERISBOUNDARYCLOCK_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_syncinterval, tvb, PTP_SDR_SYNCINTERVAL_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_localclockvariance, tvb, PTP_SDR_LOCALCLOCKVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_localstepsremoved, tvb, PTP_SDR_LOCALSTEPSREMOVED_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_localclockstratum, tvb, PTP_SDR_LOCALCLOCKSTRATUM_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-15 18:46:26 +00:00
|
|
|
hf_ptp_sdr_localclockidentifier, tvb, PTP_SDR_LOCALCLOCKIDENTIFIER_OFFSET, 4, ENC_ASCII|ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_sdr_parentcommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_PARENTCOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-20 14:07:54 +00:00
|
|
|
hf_ptp_sdr_parentuuid, tvb, PTP_SDR_PARENTUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_parentportfield, tvb, PTP_SDR_PARENTPORTFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_sdr_estimatedmastervariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_SDR_ESTIMATEDMASTERVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_sdr_estimatedmasterdrift, tvb, PTP_SDR_ESTIMATEDMASTERDRIFT_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_sdr_utcreasonable, tvb, PTP_SDR_UTCREASONABLE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_FOLLOWUP_MESSAGE:{
|
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_fu_associatedsequenceid, tvb, PTP_FU_ASSOCIATEDSEQUENCEID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
/*Subtree for the timestamp-field*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_FU_PRECISEORIGINTIMESTAMP_SECONDS_OFFSET);
|
|
|
|
ts.nsecs = tvb_get_ntohl(tvb, PTP_FU_PRECISEORIGINTIMESTAMP_NANOSECONDS_OFFSET);
|
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_fu_preciseorigintimestamp, tvb,
|
|
|
|
PTP_FU_PRECISEORIGINTIMESTAMP_OFFSET, 8, &ts);
|
|
|
|
|
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_fu_preciseorigintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_FU_PRECISEORIGINTIMESTAMP_SECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_fu_preciseorigintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_FU_PRECISEORIGINTIMESTAMP_NANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_DELAY_RESP_MESSAGE:{
|
|
|
|
/*Subtree for the timestamp-field*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_DR_DELAYRECEIPTTIMESTAMP_SECONDS_OFFSET);
|
|
|
|
ts.nsecs = tvb_get_ntohl(tvb, PTP_DR_DELAYRECEIPTTIMESTAMP_NANOSECONDS_OFFSET);
|
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_dr_delayreceipttimestamp, tvb,
|
|
|
|
PTP_DR_DELAYRECEIPTTIMESTAMP_OFFSET, 8, &ts);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_dr_delayreceipttimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_DR_DELAYRECEIPTTIMESTAMP_SECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_dr_delayreceipttimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_DR_DELAYRECEIPTTIMESTAMP_NANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_dr_requestingsourcecommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_DR_REQUESTINGSOURCECOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-20 14:07:54 +00:00
|
|
|
hf_ptp_dr_requestingsourceuuid, tvb, PTP_DR_REQUESTINGSOURCEUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_dr_requestingsourceportid, tvb, PTP_DR_REQUESTINGSOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_dr_requestingsourcesequenceid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_DR_REQUESTINGSOURCESEQUENCEID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MANAGEMENT_MESSAGE:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_targetcommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_TARGETCOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-20 14:07:54 +00:00
|
|
|
hf_ptp_mm_targetuuid, tvb, PTP_MM_TARGETUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_mm_targetportid, tvb, PTP_MM_TARGETPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_mm_startingboundaryhops, tvb, PTP_MM_STARTINGBOUNDARYHOPS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_mm_boundaryhops, tvb, PTP_MM_BOUNDARYHOPS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_mm_managementmessagekey, tvb, PTP_MM_MANAGEMENTMESSAGEKEY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_mm_parameterlength, tvb, PTP_MM_PARAMETERLENGTH_OFFSET, 2, ENC_BIG_ENDIAN);
|
2005-08-19 09:28:58 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
switch(ptp_mm_messagekey){
|
|
|
|
case PTP_MM_CLOCK_IDENTITY:{
|
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_mm_clock_identity_clockcommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_CLOCK_IDENTITY_CLOCKCOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_clock_identity_clockuuidfield, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_CLOCK_IDENTITY_CLOCKUUIDFIELD_OFFSET, 6, ENC_NA);
|
2005-08-19 09:28:58 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_clock_identity_clockportfield, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_CLOCK_IDENTITY_CLOCKPORTFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_clock_identity_manufactureridentity, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_CLOCK_IDENTITY_MANUFACTURERIDENTITY_OFFSET, 48, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_INITIALIZE_CLOCK:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_initialize_clock_initialisationkey, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_INITIALIZE_CLOCK_INITIALISATIONKEY_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_SET_SUBDOMAIN:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_set_subdomain_subdomainname, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
PTP_MM_SET_SUBDOMAIN_SUBDOMAINNAME_OFFSET, 16, ENC_ASCII|ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_DEFAULT_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockcommunicationtechnology,
|
|
|
|
tvb, PTP_MM_DEFAULT_DATA_SET_CLOCKCOMMUNICATIONTECHNOLOGY_OFFSET,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockuuidfield, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKUUIDFIELD_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockportfield, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKPORTFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockstratum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKSTRATUM_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockidentifier, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKIDENTIFIER_OFFSET, 4, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_clockfollowupcapable, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_CLOCKFOLLOWUPCAPABLE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_preferred, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_PREFERRED_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_initializable, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_INITIALIZABLE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_externaltiming, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_EXTERNALTIMING_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_isboundaryclock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_ISBOUNDARYCLOCK_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_syncinterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_SYNCINTERVAL_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_subdomainname, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_SUBDOMAINNAME_OFFSET, 16, ENC_ASCII|ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_numberports, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_NUMBERPORTS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_default_data_set_numberforeignrecords, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_DEFAULT_DATA_SET_NUMBERFOREIGNRECORDS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_UPDATE_DEFAULT_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_clockstratum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKSTRATUM_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_clockidentifier, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKIDENTIFIER_OFFSET, 4, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_clockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_CLOCKVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_preferred, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_PREFERRED_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_syncinterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_SYNCINTERVAL_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_default_data_set_subdomainname, tvb,
|
2011-10-15 18:46:26 +00:00
|
|
|
PTP_MM_UPDATE_DEFAULT_DATA_SET_SUBDOMAINNAME_OFFSET, 16, ENC_ASCII|ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_CURRENT_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_current_data_set_stepsremoved, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_CURRENT_DATA_SET_STEPSREMOVED_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Subtree for offset from master*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERSECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ts.nsecs = tvb_get_ntohl(tvb,
|
|
|
|
PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERNANOSECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if (ts.nsecs & 0x80000000) ts.nsecs = ts.nsecs & 0x7FFFFFFF;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_mm_current_data_set_offsetfrommaster, tvb,
|
|
|
|
PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTER_OFFSET, 8, &ts);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree,
|
|
|
|
hf_ptp_mm_current_data_set_offsetfrommasterseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time_tree,
|
|
|
|
hf_ptp_mm_current_data_set_offsetfrommasternanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_CURRENT_DATA_SET_OFFSETFROMMASTERNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Subtree for offset from master*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYSECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ts.nsecs = tvb_get_ntohl(tvb, PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYNANOSECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if(tree){
|
|
|
|
time2_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_mm_current_data_set_onewaydelay, tvb,
|
|
|
|
PTP_MM_CURRENT_DATA_SET_ONEWAYDELAY_OFFSET, 8, &ts);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_time2_tree = proto_item_add_subtree(time2_ti, ett_ptp_time2);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time2_tree, hf_ptp_mm_current_data_set_onewaydelayseconds,
|
2011-10-06 03:35:44 +00:00
|
|
|
tvb, PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_time2_tree,
|
|
|
|
hf_ptp_mm_current_data_set_onewaydelaynanoseconds,
|
2011-10-06 03:35:44 +00:00
|
|
|
tvb, PTP_MM_CURRENT_DATA_SET_ONEWAYDELAYNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_PARENT_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentcommunicationtechnology,
|
|
|
|
tvb, PTP_MM_PARENT_DATA_SET_PARENTCOMMUNICATIONTECHNOLOGY_OFFSET,
|
2011-10-06 03:35:44 +00:00
|
|
|
1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentuuid, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTUUID_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentlastsyncsequencenumber,
|
|
|
|
tvb, PTP_MM_PARENT_DATA_SET_PARENTLASTSYNCSEQUENCENUMBER_OFFSET,
|
2011-10-06 03:35:44 +00:00
|
|
|
2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentfollowupcapable, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTFOLLOWUPCAPABLE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentexternaltiming, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTEXTERNALTIMING_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_parentstats, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_PARENTSTATS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_observedvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_OBSERVEDVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_observeddrift, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_OBSERVEDDRIFT_OFFSET, 4, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_utcreasonable, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_UTCREASONABLE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_mm_parent_data_set_grandmastercommunicationtechnology,
|
|
|
|
tvb, PTP_MM_PARENT_DATA_SET_GRANDMASTERCOMMUNICATIONTECHNOLOGY_OFFSET, 1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasteruuidfield, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERUUIDFIELD_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasterportidfield, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERPORTIDFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasterstratum, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERSTRATUM_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasteridentifier, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERIDENTIFIER_OFFSET, 4, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmastervariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasterpreferred, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERPREFERRED_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmasterisboundaryclock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERISBOUNDARYCLOCK_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_parent_data_set_grandmastersequencenumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PARENT_DATA_SET_GRANDMASTERSEQUENCENUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_PORT_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_returnedportnumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_RETURNEDPORTNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_portstate, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_PORTSTATE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_lastsynceventsequencenumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_LASTSYNCEVENTSEQUENCENUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_lastgeneraleventsequencenumber,
|
|
|
|
tvb, PTP_MM_PORT_DATA_SET_LASTGENERALEVENTSEQUENCENUMBER_OFFSET,
|
2011-10-06 03:35:44 +00:00
|
|
|
2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_portcommunicationtechnology, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_PORTCOMMUNICATIONTECHNOLOGY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_portuuidfield, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_PORTUUIDFIELD_OFFSET, 6, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_portidfield, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_PORTIDFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_burstenabled, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_BURSTENABLED_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_subdomainaddressoctets, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_SUBDOMAINADDRESSOCTETS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_eventportaddressoctets, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_EVENTPORTADDRESSOCTETS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_generalportaddressoctets, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_GENERALPORTADDRESSOCTETS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_subdomainaddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_SUBDOMAINADDRESS_OFFSET, 4, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_eventportaddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_EVENTPORTADDRESS_OFFSET, 2, ENC_NA);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_port_data_set_generalportaddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_MM_PORT_DATA_SET_GENERALPORTADDRESS_OFFSET, 2, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_GLOBAL_TIME_DATA_SET:{
|
|
|
|
/* Subtree for local time*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMESECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ts.nsecs = tvb_get_ntohl(tvb,
|
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMENANOSECONDS_OFFSET);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree,
|
|
|
|
hf_ptp_mm_global_time_data_set_localtime, tvb,
|
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIME_OFFSET, 8, &ts);
|
|
|
|
|
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree,
|
|
|
|
hf_ptp_mm_global_time_data_set_localtimeseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMESECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree,
|
|
|
|
hf_ptp_mm_global_time_data_set_localtimenanoseconds,
|
2011-10-06 03:35:44 +00:00
|
|
|
tvb, PTP_MM_GLOBAL_TIME_DATA_SET_LOCALTIMENANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_global_time_data_set_currentutcoffset, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_CURRENTUTCOFFSET_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_global_time_data_set_leap59, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_LEAP59_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_global_time_data_set_leap61, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_LEAP61_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_global_time_data_set_epochnumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_GLOBAL_TIME_DATA_SET_EPOCHNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_global_time_properties_currentutcoffset,
|
|
|
|
tvb, PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_CURRENTUTCOFFSET_OFFSET,
|
2011-10-06 03:35:44 +00:00
|
|
|
2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_global_time_properties_leap59, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_LEAP59_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_update_global_time_properties_leap61, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_LEAP61_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_get_foreign_data_set_recordkey, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_UPDATE_GLOBAL_TIME_PROPERTIES_EPOCHNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_GET_FOREIGN_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_get_foreign_data_set_recordkey, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_GET_FOREIGN_DATA_SET_RECORDKEY_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_FOREIGN_DATA_SET:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_foreign_data_set_returnedportnumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_FOREIGN_DATA_SET_RETURNEDPORTNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_foreign_data_set_returnedrecordnumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_FOREIGN_DATA_SET_RETURNEDRECORDNUMBER_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree,
|
|
|
|
hf_ptp_mm_foreign_data_set_foreignmastercommunicationtechnology,
|
|
|
|
tvb, PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERCOMMUNICATIONTECHNOLOGY_OFFSET, 1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_foreign_data_set_foreignmasteruuidfield, tvb,
|
2011-10-20 14:07:54 +00:00
|
|
|
PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERUUIDFIELD_OFFSET, 6, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_foreign_data_set_foreignmasterportidfield, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERPORTIDFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_foreign_data_set_foreignmastersyncs, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_FOREIGN_DATA_SET_FOREIGNMASTERSYNCS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_SET_SYNC_INTERVAL:{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_mm_set_sync_interval_syncinterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_SET_SYNC_INTERVAL_SYNCINTERVAL_OFFSET, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_MM_SET_TIME:{
|
|
|
|
/* Subtree for local time*/
|
|
|
|
ts.secs = tvb_get_ntohl(tvb, PTP_MM_SET_TIME_LOCALTIMESECONDS_OFFSET);
|
|
|
|
|
|
|
|
ts.nsecs = tvb_get_ntohl(tvb, PTP_MM_SET_TIME_LOCALTIMENANOSECONDS_OFFSET);
|
|
|
|
|
|
|
|
if(tree){
|
|
|
|
time_ti = proto_tree_add_time(ptp_tree, hf_ptp_mm_set_time_localtime, tvb,
|
|
|
|
PTP_MM_SET_TIME_LOCALTIME_OFFSET, 8, &ts);
|
|
|
|
|
|
|
|
ptp_time_tree = proto_item_add_subtree(time_ti, ett_ptp_time);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_mm_set_time_localtimeseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_MM_SET_TIME_LOCALTIMESECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_time_tree, hf_ptp_mm_set_time_localtimenanoseconds,
|
2011-10-06 03:35:44 +00:00
|
|
|
tvb, PTP_MM_SET_TIME_LOCALTIMENANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default :{
|
|
|
|
/*- don't dissect any further. */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default :{
|
|
|
|
/* Not a valid MessageType - can't dissect. */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-05-12 03:37:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
/* Code to dissect PTPText */
|
2009-05-26 16:01:12 +00:00
|
|
|
static void
|
2008-03-03 20:26:37 +00:00
|
|
|
dissect_ptp_v2_text(tvbuff_t *tvb, guint16 *cur_offset, proto_tree *tree, int hf_ptp_v2_mm_ptptext, int hf_ptp_v2_mm_ptptext_length)
|
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
guint8 length = 0;
|
|
|
|
proto_item *ptptext_ti;
|
|
|
|
proto_tree *ptptext_subtree;
|
|
|
|
|
|
|
|
length = tvb_get_guint8 (tvb, *cur_offset);
|
|
|
|
|
|
|
|
if (tree)
|
|
|
|
{
|
|
|
|
ptptext_ti = proto_tree_add_item(tree, hf_ptp_v2_mm_ptptext, tvb,
|
2011-10-27 15:59:12 +00:00
|
|
|
*cur_offset+1, length, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
ptptext_subtree = proto_item_add_subtree(ptptext_ti, ett_ptp_v2_ptptext);
|
2011-10-27 15:59:12 +00:00
|
|
|
/* subtree */
|
|
|
|
proto_tree_add_item(ptptext_subtree, hf_ptp_v2_mm_ptptext_length, tvb,
|
|
|
|
*cur_offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ptptext_subtree, hf_ptp_v2_mm_ptptext, tvb,
|
|
|
|
*cur_offset+1, length, ENC_ASCII|ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
*cur_offset = *cur_offset + length + 1;
|
|
|
|
}
|
2008-03-03 20:26:37 +00:00
|
|
|
}
|
|
|
|
|
2009-05-26 16:01:12 +00:00
|
|
|
static void
|
2010-06-09 18:12:17 +00:00
|
|
|
dissect_ptp_v2_timeInterval(tvbuff_t *tvb, guint16 *cur_offset, proto_tree *tree, const char* name, int hf_ptp_v2_timeInterval_ns, int hf_ptp_v2_timeInterval_subns)
|
2008-03-03 20:26:37 +00:00
|
|
|
{
|
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
double time_double;
|
|
|
|
gint64 time_ns;
|
|
|
|
guint16 time_subns;
|
|
|
|
proto_item *ptptimeInterval_ti;
|
|
|
|
proto_tree *ptptimeInterval_subtree;
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
time_ns = tvb_get_ntoh64(tvb, *cur_offset);
|
|
|
|
time_double = (1.0*time_ns) / 65536.0;
|
|
|
|
time_ns = time_ns >> 16;
|
|
|
|
time_subns = tvb_get_ntohs(tvb, *cur_offset+6);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptptimeInterval_ti = proto_tree_add_text(tree, tvb, *cur_offset, 8,
|
|
|
|
"%s: %f nanoseconds", name, time_double);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptptimeInterval_subtree = proto_item_add_subtree(ptptimeInterval_ti, ett_ptp_v2_timeInterval);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_uint64_format_value(ptptimeInterval_subtree,
|
|
|
|
hf_ptp_v2_timeInterval_ns, tvb, *cur_offset, 6, time_ns, "Ns: %" G_GINT64_MODIFIER "d nanoseconds", time_ns);
|
2008-03-04 05:39:21 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_double_format(ptptimeInterval_subtree,
|
|
|
|
hf_ptp_v2_timeInterval_subns, tvb, *cur_offset+6, 2, (time_subns/65536.0),
|
|
|
|
"SubNs: %f nanoseconds", (time_subns/65536.0));
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
*cur_offset = *cur_offset + 8;
|
2008-03-03 20:26:37 +00:00
|
|
|
}
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/* Code to actually dissect the PTPv2 packets */
|
|
|
|
|
2009-05-26 16:01:12 +00:00
|
|
|
static void
|
2007-08-08 20:06:51 +00:00
|
|
|
dissect_ptp_v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
2010-05-13 21:47:38 +00:00
|
|
|
guint8 ptp_v2_transport_specific = 0;
|
2008-03-03 20:26:37 +00:00
|
|
|
guint8 ptp_v2_messageid = 0;
|
2010-05-10 15:54:57 +00:00
|
|
|
guint16 ptp_v2_mm_managementId = 0;
|
|
|
|
guint8 ptp_v2_management_action = 0;
|
2007-12-05 09:43:20 +00:00
|
|
|
guint64 timeStamp;
|
2008-03-03 20:26:37 +00:00
|
|
|
guint16 temp;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Set up structures needed to add the protocol subtree and manage it */
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_item *ti, *transportspecific_ti, *flags_ti, *managementData_ti, *clockType_ti, *protocolAddress_ti;
|
|
|
|
proto_tree *ptp_tree, *ptp_transportspecific_tree, *ptp_flags_tree, *ptp_managementData_tree,
|
|
|
|
*ptp_clockType_tree, *ptp_protocolAddress_tree;
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/* Make entries in Protocol column and Info column on summary display */
|
2009-08-09 06:26:46 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTPv2");
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Get transport specific bit to determine whether this is an AS packet or not */
|
|
|
|
ptp_v2_transport_specific = 0xF0 & tvb_get_guint8 (tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Get control field (what kind of message is this? (Sync, DelayReq, ...) */
|
2007-12-05 09:43:20 +00:00
|
|
|
ptp_v2_messageid = 0x0F & tvb_get_guint8 (tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* Extend Info column with managementId */
|
|
|
|
if (check_col(pinfo->cinfo, COL_INFO))
|
|
|
|
{
|
|
|
|
/* Create and set the string for "Info" column */
|
|
|
|
if ( ptp_v2_messageid == PTP_V2_MANAGEMENT_MESSAGE )
|
|
|
|
{
|
|
|
|
guint16 tlv_type;
|
|
|
|
/* Get TLV Type */
|
|
|
|
tlv_type = tvb_get_ntohs (tvb, PTP_V2_MM_TLV_TYPE_OFFSET);
|
|
|
|
/* For management there are PTP_V2_TLV_TYPE_MANAGEMENT and PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS TLVs */
|
|
|
|
switch(tlv_type)
|
|
|
|
{
|
|
|
|
case PTP_V2_TLV_TYPE_MANAGEMENT:
|
|
|
|
/* Get the managementId */
|
|
|
|
ptp_v2_mm_managementId = tvb_get_ntohs(tvb, PTP_V2_MM_TLV_MANAGEMENTID_OFFSET);
|
|
|
|
ptp_v2_management_action = 0x0F & tvb_get_guint8(tvb, PTP_V2_MM_ACTION_OFFSET);
|
2010-05-13 22:16:28 +00:00
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Management (%s) %s",
|
2010-05-10 15:54:57 +00:00
|
|
|
val_to_str(ptp_v2_mm_managementId, ptp_v2_managementID_infocolumn_vals, "Unknown management Id %u"),
|
|
|
|
val_to_str(ptp_v2_management_action, ptp_v2_mm_action_vals, "Unknown Action %u"));
|
|
|
|
break;
|
|
|
|
case PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS:
|
|
|
|
/* Get the managementErrorId */
|
|
|
|
ptp_v2_mm_managementId = tvb_get_ntohs(tvb, PTP_V2_MM_TLV_MANAGEMENTERRORID_OFFSET);
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "Management Error Message (%s)", val_to_str(ptp_v2_mm_managementId,
|
|
|
|
ptp2_managementErrorId_vals, "Unknown Error Id %u"));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(ptp_v2_messageid, ptp_v2_messageid_vals, "Unknown PTP Message (%u)"));
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(ptp_v2_messageid, ptp_v2_messageid_vals, "Unknown PTP Message (%u)"));
|
|
|
|
}
|
|
|
|
}
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
|
2011-10-21 02:10:19 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_ptp, tvb, 0, -1, ENC_NA);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
ptp_tree = proto_item_add_subtree(ti, ett_ptp_v2);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
transportspecific_ti = proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_transportspecific, tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
ptp_transportspecific_tree = proto_item_add_subtree(transportspecific_ti, ett_ptp_v2_transportspecific);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
if (ptpv2_oE == TRUE)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_transportspecific_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_transportspecific_802as_conform, tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_transportspecific_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_transportspecific_v1_compatibility, tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
}
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_messageid, tvb, PTP_V2_TRANSPORT_SPECIFIC_MESSAGE_ID_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_versionptp, tvb, PTP_V2_VERSIONPTP_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_messagelength, tvb, PTP_V2_MESSAGE_LENGTH_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_domainnumber, tvb, PTP_V2_DOMAIN_NUMBER_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
flags_ti = proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_flags, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
ptp_flags_tree = proto_item_add_subtree(flags_ti, ett_ptp_v2_flags);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_security, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_specific2, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_specific1, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_unicast, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_twostep, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_alternatemaster, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_frequencytraceable, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_timetraceable, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_ptptimescale, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_utcoffsetvalid, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_li59, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_flags_tree,
|
2011-10-10 00:39:31 +00:00
|
|
|
hf_ptp_v2_flags_li61, tvb, PTP_V2_FLAGS_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2008-03-04 09:27:14 +00:00
|
|
|
temp = PTP_V2_CORRECTIONNS_OFFSET;
|
2008-03-15 22:41:57 +00:00
|
|
|
|
|
|
|
dissect_ptp_v2_timeInterval(tvb, &temp, ptp_tree, "correction", hf_ptp_v2_correction, hf_ptp_v2_correctionsubns);
|
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_clockidentity, tvb, PTP_V2_CLOCKIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_sourceportid, tvb, PTP_V2_SOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_sequenceid, tvb, PTP_V2_SEQUENCEID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_control, tvb, PTP_V2_CONTROL_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_logmessageperiod, tvb, PTP_V2_LOGMESSAGEPERIOD_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
switch(ptp_v2_messageid){
|
|
|
|
case PTP_V2_ANNOUNCE_MESSAGE:{
|
2009-05-06 07:12:07 +00:00
|
|
|
guint16 Offset;
|
|
|
|
guint16 tlv_type;
|
|
|
|
guint16 tlv_length;
|
|
|
|
guint16 tlv_total_length;
|
|
|
|
proto_item *tlv_ti;
|
|
|
|
proto_tree *ptp_tlv_tree;
|
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* In 802.1AS there is no origin timestamp in an Announce Message */
|
|
|
|
if(!(ptp_v2_transport_specific & PTP_V2_TRANSPORTSPECIFIC_ASPACKET_BITMASK)){
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_origintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_ORIGINTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_origintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_ORIGINTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_origincurrentutcoffset, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_ORIGINCURRENTUTCOFFSET_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_priority1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_PRIORITY_1_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_grandmasterclockclass, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_GRANDMASTERCLOCKCLASS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_grandmasterclockaccuracy, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_GRANDMASTERCLOCKACCURACY_OFFSET, 1, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_grandmasterclockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_GRANDMASTERCLOCKVARIANCE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_priority2, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_PRIORITY_2_OFFSET, 1, ENC_BIG_ENDIAN);
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_grandmasterclockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_GRANDMASTERCLOCKIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_an_localstepsremoved, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_AN_LOCALSTEPSREMOVED_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree,
|
2011-10-06 03:35:44 +00:00
|
|
|
hf_ptp_v2_an_timesource, tvb, PTP_V2_AN_TIMESOURCE_OFFSET, 1, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
tlv_total_length = 0;
|
2012-09-05 07:40:36 +00:00
|
|
|
/* XXX It seems like at least 4 bytes must reamain to have a tlv_type and tlv_length */
|
2012-03-07 18:17:07 +00:00
|
|
|
while (tvb_reported_length_remaining(tvb, PTP_V2_AN_TLV_OFFSET + tlv_total_length) >= 4)
|
2010-05-10 15:54:57 +00:00
|
|
|
{
|
|
|
|
/* There are TLV's to be processed */
|
|
|
|
tlv_type = tvb_get_ntohs (tvb, PTP_V2_AN_TLV_OFFSET+tlv_total_length+PTP_V2_AN_TLV_TYPE_OFFSET);
|
|
|
|
tlv_length = tvb_get_ntohs (tvb, PTP_V2_AN_TLV_OFFSET+tlv_total_length+PTP_V2_AN_TLV_LENGTHFIELD_OFFSET);
|
|
|
|
|
|
|
|
tlv_ti = proto_tree_add_text(
|
|
|
|
ptp_tree,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length,
|
|
|
|
tlv_length + PTP_V2_AN_TLV_DATA_OFFSET,
|
|
|
|
"%s TLV",
|
|
|
|
val_to_str(tlv_type,
|
|
|
|
ptp_v2_TLV_type_vals,
|
|
|
|
"Unknown (%u)"));
|
|
|
|
|
|
|
|
ptp_tlv_tree = proto_item_add_subtree(tlv_ti, ett_ptp_v2_tlv);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_an_tlv_tlvtype,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_TYPE_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_an_tlv_lengthfield,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_LENGTHFIELD_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
switch (tlv_type)
|
|
|
|
{
|
2012-09-05 07:40:36 +00:00
|
|
|
case PTP_V2_TLV_TYPE_ORGANIZATION_EXTENSION:
|
|
|
|
{
|
|
|
|
guint32 org_id;
|
|
|
|
guint32 subtype;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_organizationid,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_ORGANIZATIONID_OFFSET,
|
|
|
|
3,
|
|
|
|
ENC_BIG_ENDIAN);
|
|
|
|
|
|
|
|
org_id = tvb_get_ntoh24(tvb, PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_ORGANIZATIONID_OFFSET);
|
|
|
|
subtype = tvb_get_ntoh24(tvb, PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_ORGANIZATIONSUBTYPE_OFFSET);
|
|
|
|
|
|
|
|
switch (org_id)
|
|
|
|
{
|
|
|
|
case PTP_V2_OE_ORG_ID_IEEE_C37_238:
|
|
|
|
{
|
2012-09-06 08:48:34 +00:00
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_organizationsubtype,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_ORGANIZATIONSUBTYPE_OFFSET,
|
|
|
|
3,
|
|
|
|
ENC_BIG_ENDIAN);
|
2012-09-05 07:40:36 +00:00
|
|
|
|
|
|
|
switch (subtype)
|
|
|
|
{
|
|
|
|
case PTP_V2_OE_ORG_IEEE_C37_238_SUBTYPE_C37238TLV:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmasterid,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_IEEEC37238TLV_GMID_OFFSET,
|
|
|
|
2,
|
|
|
|
ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmastertimeinaccuracy,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_IEEEC37238TLV_GMINACCURACY_OFFSET,
|
|
|
|
4,
|
|
|
|
ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_subtype_c37238tlv_networktimeinaccuracy,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_IEEEC37238TLV_NWINACCURACY_OFFSET,
|
|
|
|
4,
|
|
|
|
ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_subtype_c37238tlv_reserved,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_IEEEC37238TLV_RESERVED_OFFSET,
|
|
|
|
2,
|
|
|
|
ENC_NA);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_datafield,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_DATAFIELD_OFFSET,
|
|
|
|
tlv_length - 6,
|
|
|
|
ENC_NA);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
{
|
2012-09-06 08:48:34 +00:00
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_organizationsubtype,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_ORGANIZATIONSUBTYPE_OFFSET,
|
|
|
|
3,
|
|
|
|
ENC_BIG_ENDIAN);
|
2012-09-05 07:40:36 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_oe_tlv_datafield,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_OE_DATAFIELD_OFFSET,
|
|
|
|
tlv_length - 6,
|
|
|
|
ENC_NA);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2010-05-10 15:54:57 +00:00
|
|
|
case PTP_V2_TLV_TYPE_ALTERNATE_TIME_OFFSET_INDICATOR:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_atoi_tlv_keyfield,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_ATOI_KEYFIELD_OFFSET,
|
|
|
|
1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_atoi_tlv_currentoffset,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_ATOI_CURRENTOFFSET_OFFSET,
|
|
|
|
4,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_atoi_tlv_jumpseconds,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_ATOI_JUMPSECONDS_OFFSET,
|
|
|
|
4,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_atoi_tlv_timeofnextjump,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_ATOI_TIMEOFNEXTJUMP_OFFSET,
|
|
|
|
6,
|
2011-10-04 22:44:31 +00:00
|
|
|
ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
Offset = PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_ATOI_DISPLAYNAME_OFFSET;
|
|
|
|
dissect_ptp_v2_text(tvb,
|
|
|
|
&Offset,
|
|
|
|
ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_atoi_tlv_displayname,
|
|
|
|
hf_ptp_v2_atoi_tlv_displayname_length);
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
2010-05-13 21:47:38 +00:00
|
|
|
case PTP_V2_TLV_TYPE_PATH_TRACE:
|
|
|
|
{
|
|
|
|
guint16 path_seq_total_length;
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
for(path_seq_total_length = 0; path_seq_total_length < tlv_length; path_seq_total_length+=8)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tlv_tree, hf_ptp_v2_an_tlv_pathsequence, tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + PTP_AS_AN_TLV_PATH_TRACE_OFFSET + path_seq_total_length,
|
2011-10-06 03:35:44 +00:00
|
|
|
8, ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
2010-05-10 15:54:57 +00:00
|
|
|
default:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_v2_an_tlv_data,
|
|
|
|
tvb,
|
|
|
|
PTP_V2_AN_TLV_OFFSET + tlv_total_length + PTP_V2_AN_TLV_DATA_OFFSET,
|
|
|
|
tlv_length,
|
2011-10-04 22:44:31 +00:00
|
|
|
ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tlv_total_length += (tlv_length + PTP_V2_AN_TLV_DATA_OFFSET);
|
|
|
|
}
|
2009-05-06 07:12:07 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
case PTP_V2_SYNC_MESSAGE:
|
2007-08-08 20:06:51 +00:00
|
|
|
case PTP_V2_DELAY_REQ_MESSAGE:{
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_sdr_origintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_SDR_ORIGINTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_sdr_origintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_SDR_ORIGINTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
case PTP_V2_FOLLOWUP_MESSAGE:{
|
2010-05-13 21:47:38 +00:00
|
|
|
guint16 tlv_length;
|
|
|
|
proto_item *tlv_ti;
|
|
|
|
proto_tree *ptp_tlv_tree;
|
|
|
|
|
2008-12-03 22:56:46 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_fu_preciseorigintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_FU_PRECISEORIGINTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_fu_preciseorigintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_FU_PRECISEORIGINTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* In 802.1AS there is a Follow_UP information TLV in the Follow Up Message */
|
|
|
|
if(ptp_v2_transport_specific & PTP_V2_TRANSPORTSPECIFIC_ASPACKET_BITMASK){
|
|
|
|
|
|
|
|
/* There are TLV's to be processed */
|
|
|
|
tlv_length = tvb_get_ntohs (tvb, PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_LENGTHFIELD_OFFSET);
|
|
|
|
|
|
|
|
tlv_ti = proto_tree_add_text(
|
|
|
|
ptp_tree,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET,
|
|
|
|
tlv_length + PTP_AS_FU_TLV_ORGANIZATIONID_OFFSET,
|
|
|
|
"%s TLV",
|
|
|
|
"Follow Up information");
|
|
|
|
|
|
|
|
ptp_tlv_tree = proto_item_add_subtree(tlv_ti, ett_ptp_v2_tlv);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_tlvtype,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_TYPE_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_lengthfield,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_LENGTHFIELD_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_organization_id,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_ORGANIZATIONID_OFFSET,
|
|
|
|
3,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_organization_subtype,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_ORGANIZATIONSUBTYPE_OFFSET,
|
|
|
|
3,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_cumulative_offset,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_CUMULATIVESCALEDRATEOFFSET_OFFSET,
|
|
|
|
4,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_gm_base_indicator,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_GMTIMEBASEINDICATOR_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_last_gm_phase_change,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_LASTGMPHASECHANGE_OFFSET,
|
|
|
|
12,
|
2011-10-04 22:44:31 +00:00
|
|
|
ENC_NA);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_fu_tlv_scaled_last_gm_phase_change,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_FU_TLV_INFORMATION_OFFSET + PTP_AS_FU_TLV_SCALEDLASTGMFREQCHANGE_OFFSET,
|
|
|
|
4,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
case PTP_V2_DELAY_RESP_MESSAGE:{
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-12-03 22:56:46 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_dr_receivetimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_DR_RECEIVETIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_dr_receivetimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_DR_RECEIVETIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_dr_requestingportidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_DR_REQUESTINGPORTIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_dr_requestingsourceportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_DR_REQUESTINGSOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
case PTP_V2_PATH_DELAY_REQ_MESSAGE:{
|
2010-05-13 21:47:38 +00:00
|
|
|
/* In 802.1AS there is no origin timestamp in a Pdelay_Req Message */
|
|
|
|
if(!(ptp_v2_transport_specific & PTP_V2_TRANSPORTSPECIFIC_ASPACKET_BITMASK)){
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrq_origintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRQ_ORIGINTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrq_origintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRQ_ORIGINTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
case PTP_V2_PATH_DELAY_RESP_MESSAGE:{
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-12-03 22:56:46 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrs_requestreceipttimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRS_REQUESTRECEIPTTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2007-12-05 09:43:20 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrs_requestreceipttimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRS_REQUESTRECEIPTTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrs_requestingportidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRS_REQUESTINGPORTIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdrs_requestingsourceportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDRS_REQUESTINGSOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
case PTP_V2_PATH_DELAY_FOLLOWUP_MESSAGE:{
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-12-03 22:56:46 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdfu_responseorigintimestamp_seconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDFU_RESPONSEORIGINTIMESTAMPSECONDS_OFFSET, 6, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2007-12-05 09:43:20 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdfu_responseorigintimestamp_nanoseconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDFU_RESPONSEORIGINTIMESTAMPNANOSECONDS_OFFSET, 4, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdfu_requestingportidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDFU_REQUESTINGPORTIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_pdfu_requestingsourceportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_PDFU_REQUESTINGSOURCEPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2008-03-15 22:41:57 +00:00
|
|
|
break;
|
2007-08-08 20:06:51 +00:00
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
case PTP_V2_SIGNALLING_MESSAGE:{
|
2011-07-18 19:11:32 +00:00
|
|
|
guint16 tlv_length;
|
2010-05-13 21:47:38 +00:00
|
|
|
proto_item *tlv_ti, *sig_tlv_flags_ti;
|
|
|
|
proto_tree *ptp_tlv_tree, *sig_tlv_flags_tree;
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_sig_targetportidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_SIG_TARGETPORTIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_sig_targetportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_SIG_TARGETPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* In 802.1AS there is a Message Interval Request TLV in the Signalling Message */
|
|
|
|
if(ptp_v2_transport_specific & PTP_V2_TRANSPORTSPECIFIC_ASPACKET_BITMASK){
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
/* There are TLV's to be processed */
|
|
|
|
tlv_length = tvb_get_ntohs (tvb, PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_LENGTHFIELD_OFFSET);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
tlv_ti = proto_tree_add_text(
|
|
|
|
ptp_tree,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET,
|
|
|
|
tlv_length + PTP_AS_SIG_TLV_ORGANIZATIONID_OFFSET,
|
|
|
|
"%s TLV",
|
|
|
|
"Message Interval Request");
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-13 21:47:38 +00:00
|
|
|
ptp_tlv_tree = proto_item_add_subtree(tlv_ti, ett_ptp_v2_tlv);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_tlvtype,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_TYPE_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_lengthfield,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_LENGTHFIELD_OFFSET,
|
|
|
|
2,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_organization_id,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_ORGANIZATIONID_OFFSET,
|
|
|
|
3,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_organization_subtype,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_ORGANIZATIONSUBTYPE_OFFSET,
|
|
|
|
3,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_link_delay_interval,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_LINKDELAYINTERVAL_OFFSET,
|
|
|
|
1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_time_sync_interval,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_TIMESYNCINTERVAL_OFFSET,
|
|
|
|
1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_announce_interval,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_ANNOUNCEINTERVAL_OFFSET,
|
|
|
|
1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
sig_tlv_flags_ti = proto_tree_add_item(ptp_tlv_tree,
|
|
|
|
hf_ptp_as_sig_tlv_flags,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_FLAGS_OFFSET,
|
2010-05-13 22:16:28 +00:00
|
|
|
1,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
sig_tlv_flags_tree = proto_item_add_subtree(sig_tlv_flags_ti, ett_ptp_as_sig_tlv_flags);
|
|
|
|
|
|
|
|
proto_tree_add_item(sig_tlv_flags_tree,
|
2010-05-13 22:16:28 +00:00
|
|
|
hf_ptp_as_sig_tlv_flags_comp_rate_ratio,
|
|
|
|
tvb,
|
2010-05-13 21:47:38 +00:00
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_FLAGS_OFFSET,
|
2010-05-13 22:16:28 +00:00
|
|
|
1,
|
2011-10-10 00:39:31 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(sig_tlv_flags_tree,
|
2010-05-13 22:16:28 +00:00
|
|
|
hf_ptp_as_sig_tlv_flags_comp_prop_delay,
|
|
|
|
tvb,
|
|
|
|
PTP_AS_SIG_TLV_MESSAGEINTERVALREQUEST_OFFSET + PTP_AS_SIG_TLV_FLAGS_OFFSET,
|
|
|
|
1,
|
2011-10-10 00:39:31 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
2010-05-13 21:47:38 +00:00
|
|
|
else {
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_tlvType, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_SIG_TARGETPORTID_OFFSET+2, 2, ENC_BIG_ENDIAN);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
2012-07-05 20:07:43 +00:00
|
|
|
tlv_length = tvb_get_ntohs(tvb, PTP_V2_SIG_TARGETPORTID_OFFSET+4);
|
|
|
|
proto_tree_add_uint(ptp_tree, hf_ptp_v2_mm_lengthField, tvb,
|
|
|
|
PTP_V2_SIG_TARGETPORTID_OFFSET+4, 2, tlv_length);
|
2010-05-13 21:47:38 +00:00
|
|
|
|
|
|
|
if (tlv_length <= 2)
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
/* ToDO: Add dissector for TLVs and allow multiple TLVs */
|
2012-07-05 20:07:43 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_data, tvb,
|
|
|
|
PTP_V2_SIG_TARGETPORTID_OFFSET+6, tlv_length, ENC_NA);
|
2010-05-13 21:47:38 +00:00
|
|
|
}
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
2007-12-05 09:43:20 +00:00
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2008-03-03 20:26:37 +00:00
|
|
|
case PTP_V2_MANAGEMENT_MESSAGE:
|
2010-05-10 15:54:57 +00:00
|
|
|
{
|
|
|
|
guint16 tlv_type, tlv_length;
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_targetportidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_TARGETPORTIDENTITY_OFFSET, 8, ENC_BIG_ENDIAN);
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_targetportid, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_TARGETPORTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_startingboundaryhops, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_STARTINGBOUNDARYHOPS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2008-03-03 20:26:37 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_boundaryhops, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_BOUNDARYHOPS_OFFSET, 1, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_action, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_ACTION_OFFSET, 1, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* management TLV */
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_tlvType, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_TLV_TYPE_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_lengthField, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_TLV_LENGTHFIELD_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
tlv_type = tvb_get_ntohs (tvb, PTP_V2_MM_TLV_TYPE_OFFSET);
|
|
|
|
tlv_length = tvb_get_ntohs (tvb, PTP_V2_MM_TLV_LENGTHFIELD_OFFSET);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* For management there are PTP_V2_TLV_TYPE_MANAGEMENT and PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS TLVs */
|
|
|
|
switch(tlv_type) {
|
|
|
|
case PTP_V2_TLV_TYPE_MANAGEMENT:
|
|
|
|
{
|
|
|
|
guint16 ptp_v2_managementId;
|
|
|
|
guint16 Offset = PTP_V2_MM_TLV_DATAFIELD_OFFSET;
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_managementId, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_TLV_MANAGEMENTID_OFFSET, 2, ENC_BIG_ENDIAN);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
ptp_v2_managementId = tvb_get_ntohs (tvb, PTP_V2_MM_TLV_MANAGEMENTID_OFFSET);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
if (tlv_length <= 2)
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2012-07-05 20:07:43 +00:00
|
|
|
managementData_ti = proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_data, tvb, Offset, tlv_length, ENC_NA);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
/* data field of the management message (subtree)*/
|
|
|
|
ptp_managementData_tree = proto_item_add_subtree(managementData_ti, ett_ptp_v2_managementData);
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
switch(ptp_v2_managementId) {
|
|
|
|
case PTP_V2_MM_ID_NULL_MANAGEMENT:
|
|
|
|
{
|
|
|
|
/* no data in NULL management */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_CLOCK_DESCRIPTION:
|
|
|
|
{
|
|
|
|
guint16 N = 0, S = 0;
|
|
|
|
clockType_ti = proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockType, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
ptp_clockType_tree = proto_item_add_subtree(clockType_ti, ett_ptp_v2_clockType);
|
|
|
|
/* ClockType Subtree */
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_ordinaryClock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_boundaryClock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_p2p_transparentClock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_e2e_transparentClock, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_managementNode, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_clockType_tree, hf_ptp_v2_mm_clockType_reserved, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_physicalLayerProtocol, hf_ptp_v2_mm_physicalLayerProtocol_length);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_physicalAddressLength, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
S = tvb_get_ntohs (tvb, Offset);
|
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_physicalAddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, S, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset += S;
|
|
|
|
|
|
|
|
N = tvb_get_ntohs (tvb, Offset+2);
|
|
|
|
|
|
|
|
protocolAddress_ti = proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_protocolAddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+4, N, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
ptp_protocolAddress_tree = proto_item_add_subtree(protocolAddress_ti, ett_ptp_v2_protocolAddress);
|
|
|
|
/* physicalLayerProtocol subtree */
|
|
|
|
proto_tree_add_item(ptp_protocolAddress_tree, hf_ptp_v2_mm_protocolAddress_networkProtocol, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_protocolAddress_tree, hf_ptp_v2_mm_protocolAddress_length, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset+2, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_protocolAddress_tree, hf_ptp_v2_mm_protocolAddress, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+4, N, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
N = N + 4;
|
|
|
|
Offset += N;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_manufacturerIdentity, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 3, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
Offset += 3;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset += 1;
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_productDescription, hf_ptp_v2_mm_productDescription_length);
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_revisionData, hf_ptp_v2_mm_revisionData_length);
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_userDescription, hf_ptp_v2_mm_userDescription_length);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_profileIdentity, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 6, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset += 6;
|
|
|
|
|
|
|
|
/* Wenn Offset nicht gerade folgt noch ein pad Bit */
|
|
|
|
if ( (Offset - PTP_V2_MM_TLV_DATAFIELD_OFFSET) % 2 )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_pad, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_USER_DESCRIPTION:
|
|
|
|
{
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_userDescription, hf_ptp_v2_mm_userDescription_length);
|
|
|
|
|
|
|
|
/* Wenn Offset nicht gerade folgt noch ein pad Bit */
|
|
|
|
if ( (Offset - PTP_V2_MM_TLV_DATAFIELD_OFFSET) % 2 )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_pad, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_SAVE_IN_NON_VOLATILE_STORAGE:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_RESET_NON_VOLATILE_STORAGE:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_INITIALIZE:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_initializationKey, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_FAULT_LOG:
|
|
|
|
{
|
2012-10-11 19:20:21 +00:00
|
|
|
guint16 ii, num = 0;
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_item *ptpError_ti;
|
|
|
|
proto_tree *ptpError_subtree;
|
|
|
|
|
|
|
|
num = tvb_get_ntohs (tvb, Offset);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_numberOfFaultRecords, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
2012-10-11 19:20:21 +00:00
|
|
|
for (ii = 0; ii < num; ii++)
|
2010-05-10 15:54:57 +00:00
|
|
|
{
|
|
|
|
ptpError_ti = proto_tree_add_text(ptp_managementData_tree, tvb, Offset, tvb_get_ntohs (tvb, Offset), "Fault record");
|
|
|
|
|
|
|
|
/* (subtree)*/
|
|
|
|
ptpError_subtree = proto_item_add_subtree(ptpError_ti, ett_ptp_v2_faultRecord);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptpError_subtree, hf_ptp_v2_mm_faultRecordLength, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptpError_subtree, hf_ptp_v2_mm_faultTime_s, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 6, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
Offset +=6;
|
|
|
|
proto_tree_add_item(ptpError_subtree, hf_ptp_v2_mm_faultTime_ns, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=4;
|
|
|
|
proto_tree_add_item(ptpError_subtree, hf_ptp_v2_mm_severityCode, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptpError_subtree,
|
|
|
|
hf_ptp_v2_mm_faultName, hf_ptp_v2_mm_faultName_length);
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptpError_subtree,
|
|
|
|
hf_ptp_v2_mm_faultValue, hf_ptp_v2_mm_faultValue_length);
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptpError_subtree,
|
|
|
|
hf_ptp_v2_mm_faultDescription, hf_ptp_v2_mm_faultDescription_length);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Wenn Offset nicht gerade folgt noch ein pad Bit */
|
|
|
|
if ( (Offset - PTP_V2_MM_TLV_DATAFIELD_OFFSET) % 2 )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_pad, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_FAULT_LOG_RESET:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_DEFAULT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_TSC, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_V2_MM_TLV_DATAFIELD_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_dds_SO, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
PTP_V2_MM_TLV_DATAFIELD_OFFSET, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_V2_MM_RESERVED1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_numberPorts, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_NUMBERPORTS, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_priority1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_PRIORITY1, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockclass, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_CLOCKQUALITY, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockaccuracy, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_CLOCKQUALITY+1, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_CLOCKQUALITY+2, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_priority2, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_PRIORITY2, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_CLOCKIDENTITY, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_domainNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
PTP_V2_MM_DOMAINNUMBER, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
PTP_V2_MM_RESERVED2, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_CURRENT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_stepsRemoved, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
dissect_ptp_v2_timeInterval(tvb, &Offset, ptp_managementData_tree,
|
|
|
|
"Offset from Master", hf_ptp_v2_mm_offset_ns, hf_ptp_v2_mm_offset_subns);
|
|
|
|
dissect_ptp_v2_timeInterval(tvb, &Offset, ptp_managementData_tree,
|
|
|
|
"Mean path delay", hf_ptp_v2_mm_pathDelay_ns, hf_ptp_v2_mm_pathDelay_subns);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PARENT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_parentIdentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_parentPort, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset+8, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=10;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_parentStats, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_observedParentOffsetScaledLogVariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_observedParentClockPhaseChangeRate, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=4;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterPriority1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterclockclass, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterclockaccuracy, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset+1, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterclockvariance, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset+2, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset += 4;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterPriority2, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_grandmasterIdentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TIME_PROPERTIES_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_currentUtcOffset, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_LI_61, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_LI_59, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_UTCV, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_PTP, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_TTRA, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_FTRA, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_timesource, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PORT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=8;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_PortNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_portState, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logMinDelayReqInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
dissect_ptp_v2_timeInterval(tvb, &Offset, ptp_managementData_tree,
|
|
|
|
"Peer mean path delay", hf_ptp_v2_mm_peerMeanPathDelay_ns, hf_ptp_v2_mm_peerMeanPathDelay_subns);
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logAnnounceInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_announceReceiptTimeout, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logSyncInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_delayMechanism, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logMinPdelayReqInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_versionNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PRIORITY1:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_priority1, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PRIORITY2:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_priority2, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_DOMAIN:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_domainNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_SLAVE_ONLY:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_SO, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_LOG_ANNOUNCE_INTERVAL:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logAnnounceInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ANNOUNCE_RECEIPT_TIMEOUT:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_announceReceiptTimeout, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_LOG_SYNC_INTERVAL:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logSyncInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_VERSION_NUMBER:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_versionNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ENABLE_PORT:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_DISABLE_PORT:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TIME:
|
|
|
|
{
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_currentTime_s, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 6, ENC_BIG_ENDIAN);
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=6;
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_currentTime_ns, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_CLOCK_ACCURACY:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockAccuracy, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_UTC_PROPERTIES:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_currentUtcOffset, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_LI_61, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_LI_59, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_UTCV, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TRACEABILITY_PROPERTIES:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_TTRA, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_FTRA, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TIMESCALE_PROPERTIES:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_PTP, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_timesource, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_UNICAST_NEGOTIATION_ENABLE:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_ucEN, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PATH_TRACE_LIST:
|
|
|
|
{
|
|
|
|
guint16 i = 0;
|
|
|
|
/* one or more ClockIdentity */
|
2012-10-11 19:20:21 +00:00
|
|
|
for (i = 0; i < (tlv_length / 8); i++)
|
2010-05-10 15:54:57 +00:00
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PATH_TRACE_ENABLE:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_ptEN, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_GRANDMASTER_CLUSTER_TABLE:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_UNICAST_MASTER_TABLE:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_UNICAST_MASTER_MAX_TABLE_SIZE:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ACCEPTABLE_MASTER_TABLE_ENABLED:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ACCEPTABLE_MASTER_MAX_TABLE_SIZE:
|
|
|
|
{
|
|
|
|
/* ToDo */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_ENABLE:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_keyField, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_atEN, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_NAME:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_keyField, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_managementData_tree,
|
|
|
|
hf_ptp_v2_mm_displayName, hf_ptp_v2_mm_displayName_length);
|
|
|
|
|
|
|
|
/* Wenn Offset nicht gerade folgt noch ein pad Bit */
|
|
|
|
if ( (Offset - PTP_V2_MM_TLV_DATAFIELD_OFFSET) % 2 )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_pad, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_MAX_KEY:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_maxKey, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ALTERNATE_MASTER:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_transmitAlternateMulticastSync, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_numberOfAlternateMasters, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logAlternateMulticastSyncInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_ALTERNATE_TIME_OFFSET_PROPERTIES:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_keyField, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_currentOffset, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=4;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_jumpSeconds, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 4, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=4;
|
|
|
|
|
|
|
|
timeStamp = tvb_get_ntohl(tvb, Offset);
|
|
|
|
timeStamp = timeStamp << 16;
|
|
|
|
timeStamp = timeStamp | tvb_get_ntohs(tvb, Offset+4);
|
|
|
|
|
|
|
|
proto_tree_add_text(ptp_managementData_tree, tvb, Offset, 6,
|
|
|
|
"Time of next jump (seconds): %" G_GINT64_MODIFIER "u", timeStamp);
|
|
|
|
Offset +=6;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TC_DEFAULT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=8;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_numberPorts, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_delayMechanism, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_primaryDomain, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_TC_PORT_DATA_SET:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_clockidentity, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 8, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=8;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_PortNumber, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_faultyFlag, tvb,
|
2011-10-10 00:39:31 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logMinPdelayReqInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=1;
|
|
|
|
|
|
|
|
dissect_ptp_v2_timeInterval(tvb, &Offset, ptp_managementData_tree,
|
|
|
|
"Peer mean path delay", hf_ptp_v2_mm_peerMeanPathDelay_ns, hf_ptp_v2_mm_peerMeanPathDelay_subns);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_PRIMARY_DOMAIN:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_primaryDomain, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_DELAY_MECHANISM:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_delayMechanism, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_MM_ID_LOG_MIN_PDELAY_REQ_INTERVAL:
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_logMinPdelayReqInterval, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 1, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
|
|
|
|
proto_tree_add_item(ptp_managementData_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset+1, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
/* no data */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} /* switch(ptp_v2_managementId) */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case PTP_V2_TLV_TYPE_MANAGEMENT_ERROR_STATUS:
|
|
|
|
{
|
|
|
|
/* there is only one error TLV */
|
|
|
|
guint16 Offset = PTP_V2_MM_TLV_MANAGEMENTERRORID_OFFSET;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_managementErrorId, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_managementId, tvb,
|
2011-10-06 03:35:44 +00:00
|
|
|
Offset, 2, ENC_BIG_ENDIAN);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_reserved, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 4, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
Offset +=4;
|
|
|
|
|
|
|
|
/* optional Field! */
|
|
|
|
if (Offset - PTP_V2_MM_TLV_MANAGEMENTERRORID_OFFSET + 2 < tlv_length)
|
|
|
|
{
|
|
|
|
dissect_ptp_v2_text (tvb, &Offset, ptp_tree,
|
|
|
|
hf_ptp_v2_mm_displayData, hf_ptp_v2_mm_displayData_length);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Wenn Offset nicht gerade folgt noch ein pad Bit */
|
|
|
|
if ( (Offset - PTP_V2_MM_TLV_MANAGEMENTERRORID_OFFSET) % 2 )
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ptp_tree, hf_ptp_v2_mm_pad, tvb,
|
2011-10-04 22:44:31 +00:00
|
|
|
Offset, 1, ENC_NA);
|
2010-05-10 15:54:57 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
} /* switch TLV Type */
|
|
|
|
} /* case Management Message */
|
2008-03-03 20:26:37 +00:00
|
|
|
} /* switch message ID*/
|
2010-05-10 15:54:57 +00:00
|
|
|
} /* tree */
|
2007-08-08 20:06:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* Register the protocol with Wireshark */
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
proto_register_ptp(void)
|
|
|
|
{
|
2010-05-10 15:54:57 +00:00
|
|
|
static hf_register_info hf[] = {
|
2007-08-08 20:06:51 +00:00
|
|
|
/* PTPv1 fields **********************************************************/
|
2008-03-04 09:27:14 +00:00
|
|
|
/*Common fields for all frames*/
|
|
|
|
{ &hf_ptp_versionptp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "versionPTP", "ptp.versionptp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_versionnetwork,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "versionNetwork", "ptp.versionnetwork",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_subdomain,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomain", "ptp.subdomain",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_messagetype,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "messageType", "ptp.messagetype",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_messagetype_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sourcecommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "sourceCommunicationTechnology", "ptp.sourcecommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sourceuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "sourceUuid", "ptp.sourceuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "sourcePortId", "ptp.sourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sequenceid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "sequenceId", "ptp.sequenceid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_control,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "control", "ptp.control",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_control_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*THE FLAGS-FIELD*/
|
|
|
|
{ &hf_ptp_flags,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "flags", "ptp.flags",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_li61,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_LI61", "ptp.flags.li61",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_LI61_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_li59,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_LI59", "ptp.flags.li59",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_LI59_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_boundary_clock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_BOUNDARY_CLOCK", "ptp.flags.boundary_clock",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_BOUNDARY_CLOCK_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_assist,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_ASSIST", "ptp.flags.assist",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_ASSIST_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_ext_sync,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_EXT_SYNC", "ptp.flags.ext_sync",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_EXT_SYNC_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_parent,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_PARENT_STATS", "ptp.flags.parent_stats",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_PARENT_STATS_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_flags_sync_burst,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_SYNC_BURST", "ptp.flags.sync_burst",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_bool_vals), PTP_FLAGS_SYNC_BURST_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*END OF THE FLAG-FIELD*/
|
|
|
|
|
|
|
|
/*offsets for ptp_sync and delay_req (=sdr) messages*/
|
|
|
|
{ &hf_ptp_sdr_origintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp", "ptp.sdr.origintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_origintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (seconds)", "ptp.sdr.origintimestamp_seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_origintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (nanoseconds)", "ptp.sdr.origintimestamp_nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_epochnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "epochNumber", "ptp.sdr.epochnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_currentutcoffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "currentUTCOffset", "ptp.sdr.currentutcoffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmastercommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterCommunicationTechnology", "ptp.sdr.grandmastercommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterclockuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandMasterClockUuid", "ptp.sdr.grandmasterclockuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterPortId", "ptp.sdr.grandmasterportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmastersequenceid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterSequenceId", "ptp.sdr.grandmastersequenceid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterclockstratum,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockStratum", "ptp.sdr.grandmasterclockstratum",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterclockidentifier,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockIdentifier", "ptp.sdr.grandmasterclockidentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterclockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockVariance", "ptp.sdr.grandmasterclockvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterpreferred,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterPreferred", "ptp.sdr.grandmasterpreferred",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_grandmasterisboundaryclock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterIsBoundaryClock", "ptp.sdr.grandmasterisboundaryclock",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_syncinterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "syncInterval", "ptp.sdr.syncinterval",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_localclockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localClockVariance", "ptp.sdr.localclockvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_localstepsremoved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localStepsRemoved", "ptp.sdr.localstepsremoved",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_localclockstratum,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localClockStratum", "ptp.sdr.localclockstratum",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_localclockidentifier,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localClockIdentifier", "ptp.sdr.localclockidentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_parentcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentCommunicationTechnology", "ptp.sdr.parentcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_parentuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentUuid", "ptp.sdr.parentuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_parentportfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentPortField", "ptp.sdr.parentportfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_estimatedmastervariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "estimatedMasterVariance", "ptp.sdr.estimatedmastervariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_estimatedmasterdrift,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "estimatedMasterDrift", "ptp.sdr.estimatedmasterdrift",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_sdr_utcreasonable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "utcReasonable", "ptp.sdr.utcreasonable",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*offsets for follow_up (=fu) messages*/
|
|
|
|
{ &hf_ptp_fu_associatedsequenceid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "associatedSequenceId", "ptp.fu.associatedsequenceid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_fu_preciseorigintimestamp,
|
2012-05-17 19:41:19 +00:00
|
|
|
{ "preciseOriginTimestamp", "ptp.fu.preciseorigintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_fu_preciseorigintimestamp_seconds,
|
2012-05-17 19:41:19 +00:00
|
|
|
{ "preciseOriginTimestamp (seconds)", "ptp.fu.preciseorigintimestamp_seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_fu_preciseorigintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preciseOriginTimestamp (nanoseconds)", "ptp.fu.preciseorigintimestamp_nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*offsets for delay_resp (=dr) messages*/
|
|
|
|
{ &hf_ptp_dr_delayreceipttimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "delayReceiptTimestamp", "ptp.dr.delayreceipttimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_delayreceipttimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "delayReceiptTimestamp (Seconds)", "ptp.dr.delayreceipttimestamp_seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_delayreceipttimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "delayReceiptTimestamp (nanoseconds)", "ptp.dr.delayreceipttimestamp_nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_requestingsourcecommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourceCommunicationTechnology", "ptp.dr.requestingsourcecommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_requestingsourceuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourceUuid", "ptp.dr.requestingsourceuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_requestingsourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortId", "ptp.dr.requestingsourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_dr_requestingsourcesequenceid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourceSequenceId", "ptp.dr.requestingsourcesequenceid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*offsets for management (=mm) messages*/
|
|
|
|
{ &hf_ptp_mm_targetcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetCommunicationTechnology", "ptp.mm.targetcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_targetuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetUuid", "ptp.mm.targetuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_targetportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetPortId", "ptp.mm.targetportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_startingboundaryhops,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "startingBoundaryHops", "ptp.mm.startingboundaryhops",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_boundaryhops,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "boundaryHops", "ptp.mm.boundaryhops",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_managementmessagekey,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "managementMessageKey", "ptp.mm.managementmessagekey",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_managementMessageKey_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parameterlength,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parameterLength", "ptp.mm.parameterlength",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*parameterlength > 0*/
|
|
|
|
{ &hf_ptp_mm_messageparameters,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "messageParameters", "ptp.mm.messageparameters",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_clock_identity (parameterlength = 64)*/
|
|
|
|
{ &hf_ptp_mm_clock_identity_clockcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockCommunicationTechnology", "ptp.mm.clock.identity.clockcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_clock_identity_clockuuidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockUuidField", "ptp.mm.clock.identity.clockuuidfield",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_clock_identity_clockportfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockPortField", "ptp.mm.clock.identity.clockportfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_clock_identity_manufactureridentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "manufacturerIdentity", "ptp.mm.clock.identity.manufactureridentity",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/*ptp_mm_initialize_clock (parameterlength = 4)*/
|
|
|
|
{ &hf_ptp_mm_initialize_clock_initialisationkey,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "initialisationKey", "ptp.mm.initialize.clock.initialisationkey",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_set_subdomain (parameterlength = 16)*/
|
|
|
|
{ &hf_ptp_mm_set_subdomain_subdomainname,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomainName", "ptp.mm.set.subdomain.subdomainname",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_default_data_set (parameterlength = 76)*/
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockCommunicationTechnology", "ptp.mm.default.data.set.clockcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockuuidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockUuidField", "ptp.mm.default.data.set.clockuuidfield",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockportfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockPortField", "ptp.mm.default.data.set.clockportfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockstratum,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockStratum", "ptp.mm.default.data.set.clockstratum",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockidentifier,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockIdentifier", "ptp.mm.default.data.set.clockidentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockVariance", "ptp.mm.default.data.set.clockvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_clockfollowupcapable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockFollowupCapable", "ptp.mm.default.data.set.clockfollowupcapable",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_preferred,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preferred", "ptp.mm.default.data.set.preferred",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_initializable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "initializable", "ptp.mm.default.data.set.initializable",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_externaltiming,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "externalTiming", "ptp.mm.default.data.set.externaltiming",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_isboundaryclock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "isBoundaryClock", "ptp.mm.default.data.set.isboundaryclock",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_syncinterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "syncInterval", "ptp.mm.default.data.set.syncinterval",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_subdomainname,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subDomainName", "ptp.mm.default.data.set.subdomainname",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_numberports,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "numberPorts", "ptp.mm.default.data.set.numberports",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_default_data_set_numberforeignrecords,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "numberForeignRecords", "ptp.mm.default.data.set.numberforeignrecords",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_update_default_data_set (parameterlength = 36)*/
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_clockstratum,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockStratum", "ptp.mm.update.default.data.set.clockstratum",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_clockidentifier,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockIdentifier", "ptp.mm.update.default.data.set.clockidentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_clockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockVariance", "ptp.mm.update.default.data.set.clockvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_preferred,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preferred", "ptp.mm.update.default.data.set.preferred",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_syncinterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "syncInterval", "ptp.mm.update.default.data.set.syncinterval",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_default_data_set_subdomainname,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomainName", "ptp.mm.update.default.data.set.subdomainname",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_current_data_set (parameterlength = 20)*/
|
|
|
|
{ &hf_ptp_mm_current_data_set_stepsremoved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "stepsRemoved", "ptp.mm.current.data.set.stepsremoved",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_offsetfrommaster,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "offsetFromMaster", "ptp.mm.current.data.set.offsetfrommaster",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_offsetfrommasterseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "offsetFromMasterSeconds", "ptp.mm.current.data.set.offsetfrommasterseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_offsetfrommasternanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "offsetFromMasterNanoseconds", "ptp.mm.current.data.set.offsetfrommasternanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_onewaydelay,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "oneWayDelay", "ptp.mm.current.data.set.onewaydelay",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_onewaydelayseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "oneWayDelaySeconds", "ptp.mm.current.data.set.onewaydelayseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_current_data_set_onewaydelaynanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "oneWayDelayNanoseconds", "ptp.mm.current.data.set.onewaydelaynanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_parent_data_set (parameterlength = 90)*/
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentCommunicationTechnology", "ptp.mm.parent.data.set.parentcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentuuid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentUuid", "ptp.mm.parent.data.set.parentuuid",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentPortId", "ptp.mm.parent.data.set.parentportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentlastsyncsequencenumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentLastSyncSequenceNumber", "ptp.mm.parent.data.set.parentlastsyncsequencenumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentfollowupcapable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentFollowupCapable", "ptp.mm.parent.data.set.parentfollowupcapable",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentexternaltiming,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentExternalTiming", "ptp.mm.parent.data.set.parentexternaltiming",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentVariance", "ptp.mm.parent.data.set.parentvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_parentstats,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parentStats", "ptp.mm.parent.data.set.parentstats",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_observedvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "observedVariance", "ptp.mm.parent.data.set.observedvariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_observeddrift,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "observedDrift", "ptp.mm.parent.data.set.observeddrift",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_utcreasonable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "utcReasonable", "ptp.mm.parent.data.set.utcreasonable",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmastercommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterCommunicationTechnology", "ptp.mm.parent.data.set.grandmastercommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasteruuidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterUuidField", "ptp.mm.parent.data.set.grandmasteruuidfield",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasterportidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterPortIdField", "ptp.mm.parent.data.set.grandmasterportidfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasterstratum,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterStratum", "ptp.mm.parent.data.set.grandmasterstratum",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasteridentifier,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterIdentifier", "ptp.mm.parent.data.set.grandmasteridentifier",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmastervariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterVariance", "ptp.mm.parent.data.set.grandmastervariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasterpreferred,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterPreferred", "ptp.mm.parent.data.set.grandmasterpreferred",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmasterisboundaryclock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterIsBoundaryClock", "ptp.mm.parent.data.set.grandmasterisboundaryclock",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_parent_data_set_grandmastersequencenumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterSequenceNumber", "ptp.mm.parent.data.set.grandmastersequencenumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_port_data_set (parameterlength = 52)*/
|
|
|
|
{ &hf_ptp_mm_port_data_set_returnedportnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "returnedPortNumber", "ptp.mm.port.data.set.returnedportnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_portstate,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "portState", "ptp.mm.port.data.set.portstate",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_lastsynceventsequencenumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "lastSyncEventSequenceNumber", "ptp.mm.port.data.set.lastsynceventsequencenumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_lastgeneraleventsequencenumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "lastGeneralEventSequenceNumber", "ptp.mm.port.data.set.lastgeneraleventsequencenumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_portcommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "portCommunicationTechnology", "ptp.mm.port.data.set.portcommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_portuuidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "portUuidField", "ptp.mm.port.data.set.portuuidfield",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_portidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "portIdField", "ptp.mm.port.data.set.portidfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_burstenabled,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "burstEnabled", "ptp.mm.port.data.set.burstenabled",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_subdomainaddressoctets,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomainAddressOctets", "ptp.mm.port.data.set.subdomainaddressoctets",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_eventportaddressoctets,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "eventPortAddressOctets", "ptp.mm.port.data.set.eventportaddressoctets",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_generalportaddressoctets,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "generalPortAddressOctets", "ptp.mm.port.data.set.generalportaddressoctets",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_subdomainaddress,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomainAddress", "ptp.mm.port.data.set.subdomainaddress",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_eventportaddress,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "eventPortAddress", "ptp.mm.port.data.set.eventportaddress",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_port_data_set_generalportaddress,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "generalPortAddress", "ptp.mm.port.data.set.generalportaddress",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_global_time_data_set (parameterlength = 24)*/
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_localtime,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localTime", "ptp.mm.global.time.data.set.localtime",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_localtimeseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localTimeSeconds", "ptp.mm.global.time.data.set.localtimeseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_localtimenanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localTimeNanoseconds", "ptp.mm.global.time.data.set.localtimenanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_currentutcoffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "currentUtcOffset", "ptp.mm.global.time.data.set.currentutcoffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_leap59,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap59", "ptp.mm.global.time.data.set.leap59",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_leap61,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap61", "ptp.mm.global.time.data.set.leap61",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_global_time_data_set_epochnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "epochNumber", "ptp.mm.global.time.data.set.epochnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_update_global_time_properties (parameterlength = 16)*/
|
|
|
|
{ &hf_ptp_mm_update_global_time_properties_currentutcoffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "currentUtcOffset", "ptp.mm.update.global.time.properties.currentutcoffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_global_time_properties_leap59,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap59", "ptp.mm.update.global.time.properties.leap59",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_global_time_properties_leap61,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap61", "ptp.mm.update.global.time.properties.leap61",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_update_global_time_properties_epochnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "epochNumber", "ptp.mm.update.global.time.properties.epochnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_get_foreign_data_set (parameterlength = 4)*/
|
|
|
|
{ &hf_ptp_mm_get_foreign_data_set_recordkey,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "recordKey", "ptp.mm.get.foreign.data.set.recordkey",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_foreign_data_set (parameterlength = 28)*/
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_returnedportnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "returnedPortNumber", "ptp.mm.foreign.data.set.returnedportnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_returnedrecordnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "returnedRecordNumber", "ptp.mm.foreign.data.set.returnedrecordnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_foreignmastercommunicationtechnology,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "foreignMasterCommunicationTechnology",
|
|
|
|
"ptp.mm.foreign.data.set.foreignmastercommunicationtechnology",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_communicationid_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_foreignmasteruuidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "foreignMasterUuidField", "ptp.mm.foreign.data.set.foreignmasteruuidfield",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_ETHER, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_foreignmasterportidfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "foreignMasterPortIdField", "ptp.mm.foreign.data.set.foreignmasterportidfield",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_foreign_data_set_foreignmastersyncs,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "foreignMasterSyncs", "ptp.mm.foreign.data.set.foreignmastersyncs",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_set_sync_interval (parameterlength = 4)*/
|
|
|
|
{ &hf_ptp_mm_set_sync_interval_syncinterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "syncInterval", "ptp.mm.set.sync.interval.syncinterval",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/*ptp_mm_set_time (parameterlength = 8)*/
|
|
|
|
{ &hf_ptp_mm_set_time_localtime,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localtime", "ptp.mm.set.time.localtime",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_set_time_localtimeseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localtimeSeconds", "ptp.mm.set.time.localtimeseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_mm_set_time_localtimenanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localTimeNanoseconds", "ptp.mm.set.time.localtimenanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2008-03-15 22:41:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-04 09:27:14 +00:00
|
|
|
/* PTPv2 fields **********************************************************/
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Common fields for all frames*/
|
|
|
|
{ &hf_ptp_v2_transportspecific,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "transportSpecific", "ptp.v2.transportspecific",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, NULL, 0xF0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_transportspecific_v1_compatibility,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "V1 Compatibility", "ptp.v2.transportspecific.v1compatibility",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, PTP_V2_TRANSPORTSPECIFIC_V1COMPATIBILITY_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_transportspecific_802as_conform,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "802.1as conform", "ptp.v2.transportspecific.802.1asconform",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, PTP_V2_TRANSPORTSPECIFIC_V1COMPATIBILITY_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_messageid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "messageId", "ptp.v2.messageid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_messageid_vals), 0x0F,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_versionptp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "versionPTP", "ptp.v2.versionptp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0F,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_messagelength,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "messageLength", "ptp.v2.messagelength",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_domainnumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "subdomainNumber", "ptp.v2.subdomainnumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_flags,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "flags", "ptp.v2.flags",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_alternatemaster,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_ALTERNATE_MASTER", "ptp.v2.flags.alternatemaster",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_ALTERNATE_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_twostep,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_TWO_STEP", "ptp.v2.flags.twostep",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_TWO_STEP_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_unicast,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_UNICAST", "ptp.v2.flags.unicast",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_UNICAST_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_specific1,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP profile Specific 1", "ptp.v2.flags.specific1",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_SPECIFIC1_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_specific2,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP profile Specific 2", "ptp.v2.flags.specific2",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_SPECIFIC2_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_flags_security,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_SECURITY", "ptp.v2.flags.security",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_SECURITY_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_flags_li61,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_LI_61", "ptp.v2.flags.li61",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_LI61_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_flags_li59,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_LI_59", "ptp.v2.flags.li59",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_LI59_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_flags_utcoffsetvalid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_UTC_REASONABLE", "ptp.v2.flags.utcreasonable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_UTC_OFFSET_VALID_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_flags_ptptimescale,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP_TIMESCALE", "ptp.v2.flags.timescale",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_PTP_TIMESCALE_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2008-03-04 09:27:14 +00:00
|
|
|
{ &hf_ptp_v2_flags_timetraceable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "TIME_TRACEABLE", "ptp.v2.flags.timetraceable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_TIME_TRACEABLE_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2008-03-04 09:27:14 +00:00
|
|
|
{ &hf_ptp_v2_flags_frequencytraceable,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "FREQUENCY_TRACEABLE", "ptp.v2.flags.frequencytraceable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, PTP_V2_FLAGS_FREQUENCY_TRACEABLE_BITMASK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_correction,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "correction", "ptp.v2.correction.ns",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_correctionsubns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "correctionSubNs", "ptp.v2.correction.subns",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_DOUBLE, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_clockidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "ClockIdentity", "ptp.v2.clockidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_sourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "SourcePortID", "ptp.v2.sourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_sequenceid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "sequenceId", "ptp.v2.sequenceid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_control,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "control", "ptp.v2.control",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_control_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_logmessageperiod,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "logMessagePeriod", "ptp.v2.logmessageperiod",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_Announce (=an) messages*/
|
|
|
|
{ &hf_ptp_v2_an_origintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp", "ptp.v2.an.origintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_origintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (seconds)", "ptp.v2.an.origintimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_origintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (nanoseconds)", "ptp.v2.an.origintimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_origincurrentutcoffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originCurrentUTCOffset", "ptp.v2.an.origincurrentutcoffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_an_timesource,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "TimeSource", "ptp.v2.timesource",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_timesource_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_localstepsremoved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "localStepsRemoved", "ptp.v2.an.localstepsremoved",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_grandmasterclockidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockIdentity", "ptp.v2.an.grandmasterclockidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_grandmasterclockclass,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockClass", "ptp.v2.an.grandmasterclockclass",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_grandmasterclockaccuracy,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockAccuracy", "ptp.v2.an.grandmasterclockaccuracy",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_clockaccuracy_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_grandmasterclockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "grandmasterClockVariance", "ptp.v2.an.grandmasterclockvariance",
|
2008-12-03 22:56:46 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_priority1,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "priority1", "ptp.v2.an.priority1",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_an_priority2,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "priority2", "ptp.v2.an.priority2",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
2009-05-06 07:12:07 +00:00
|
|
|
/*Fields for PTP_Announce TLVs */
|
|
|
|
{ &hf_ptp_v2_an_tlv_tlvtype,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "tlvType", "ptp.v2.an.tlvType",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_v2_TLV_type_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_an_tlv_lengthfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "lengthField", "ptp.v2.an.lengthField",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
2012-09-05 07:40:36 +00:00
|
|
|
/*Fields for ORGANIZATION_EXTENSION TLV */
|
|
|
|
{ &hf_ptp_v2_oe_tlv_organizationid,
|
|
|
|
{ "organizationId", "ptp.v2.an.oe.organizationId",
|
|
|
|
FT_UINT24, BASE_HEX, VALS(ptp2_organizationExtensionOrgId_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_oe_tlv_organizationsubtype,
|
|
|
|
{ "organizationSubType", "ptp.v2.an.oe.organizationSubType",
|
2012-09-06 08:48:34 +00:00
|
|
|
FT_UINT24, BASE_HEX, VALS(ptp2_org_iee_c37_238_subtype_vals), 0x00,
|
2012-09-05 07:40:36 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_oe_tlv_datafield,
|
|
|
|
{ "dataField", "ptp.v2.an.oe.dataField",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
/*Fields for IEEE_C37_238 TLV (OE TLV subtype) */
|
|
|
|
{ &hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmasterid,
|
|
|
|
{ "grandmasterID", "ptp.v2.an.oe.grandmasterID",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_oe_tlv_subtype_c37238tlv_grandmastertimeinaccuracy,
|
|
|
|
{ "grandmasterTimeInaccuracy (nanoseconds)", "ptp.v2.an.oe.grandmasterTimeInaccuracy",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_oe_tlv_subtype_c37238tlv_networktimeinaccuracy,
|
|
|
|
{ "networkTimeInaccuracy (nanoseconds)", "ptp.v2.an.oe.networkTimeInaccuracy",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_oe_tlv_subtype_c37238tlv_reserved,
|
|
|
|
{ "reserved", "ptp.v2.an.oe.reserved",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-05-06 07:12:07 +00:00
|
|
|
/*Fields for ALTERNATE_TIME_OFFSET_INDICATOR TLV */
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_keyfield,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "keyField", "ptp.v2.an.atoi.keyField",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_currentoffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "currentOffset", "ptp.v2.an.atoi.currentOffset",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_jumpseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "jumpSeconds", "ptp.v2.an.atoi.jumpSeconds",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_timeofnextjump,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "timeOfNextJump", "ptp.v2.an.atoi.timeOfNextJump",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_displayname,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "displayName", "ptp.v2.an.atoi.dislpayName",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_atoi_tlv_displayname_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.an.atoi.dislpayName.length",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
/* Field for Path Trace TLV */
|
|
|
|
{ &hf_ptp_v2_an_tlv_pathsequence,
|
|
|
|
{ "PathSequence", "ptp.v2.an.pathsequence",
|
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2009-05-06 07:12:07 +00:00
|
|
|
|
|
|
|
/* Fields for undissected TLV */
|
|
|
|
{ &hf_ptp_v2_an_tlv_data,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "data", "ptp.v2.an.tlv.data",
|
2009-05-06 07:12:07 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2009-05-06 07:12:07 +00:00
|
|
|
},
|
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for PTP_Sync AND PTP_DelayRequest (=sdr) messages*/
|
|
|
|
{ &hf_ptp_v2_sdr_origintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp", "ptp.v2.sdr.origintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_sdr_origintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (seconds)", "ptp.v2.sdr.origintimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_sdr_origintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (nanoseconds)", "ptp.v2.sdr.origintimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_Follow_Up (=fu) messages*/
|
|
|
|
{ &hf_ptp_v2_fu_preciseorigintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preciseOriginTimestamp", "ptp.v2.fu.preciseorigintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_fu_preciseorigintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preciseOriginTimestamp (seconds)", "ptp.v2.fu.preciseorigintimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_fu_preciseorigintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "preciseOriginTimestamp (nanoseconds)", "ptp.v2.fu.preciseorigintimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
/*Fields for PTP_Follow_up TLVs */
|
|
|
|
{ &hf_ptp_as_fu_tlv_tlvtype,
|
|
|
|
{ "tlvType", "ptp.as.fu.tlvType",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_v2_TLV_type_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_fu_tlv_lengthfield,
|
|
|
|
{ "lengthField", "ptp.as.fu.lengthField",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_fu_tlv_organization_id,
|
|
|
|
{ "organizationId", "ptp.as.fu.organizationId",
|
|
|
|
FT_UINT24, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_fu_tlv_organization_subtype,
|
|
|
|
{ "OrganizationSubType", "ptp.as.fu.organizationSubType",
|
|
|
|
FT_INT24, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2010-05-13 22:16:28 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
{ &hf_ptp_as_fu_tlv_cumulative_offset,
|
|
|
|
{ "cumulativeScaledRateOffset", "ptp.as.fu.cumulativeScaledRateOffset",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2010-05-13 22:16:28 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
{ &hf_ptp_as_fu_tlv_gm_base_indicator,
|
|
|
|
{ "gmTimeBaseIndicator", "ptp.as.fu.gmTimeBaseIndicator",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_fu_tlv_last_gm_phase_change,
|
|
|
|
{ "lastGMPhaseChange", "ptp.as.fu.lastGmPhaseChange",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_fu_tlv_scaled_last_gm_phase_change,
|
|
|
|
{ "scaledLastGMPhaseChange", "ptp.as.fu.scaledLastGmPhaseChange",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_DelayResponse (=dr) messages*/
|
|
|
|
{ &hf_ptp_v2_dr_receivetimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "receiveTimestamp", "ptp.v2.dr.receivetimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_dr_receivetimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "receiveTimestamp (seconds)", "ptp.v2.dr.receivetimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_dr_receivetimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "receiveTimestamp (nanoseconds)", "ptp.v2.dr.receivetimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_dr_requestingportidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortIdentity", "ptp.v2.dr.requestingsourceportidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_dr_requestingsourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortId", "ptp.v2.dr.requestingsourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_PDelayRequest (=pdrq) messages*/
|
|
|
|
{ &hf_ptp_v2_pdrq_origintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp", "ptp.v2.pdrq.origintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrq_origintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (seconds)", "ptp.v2.pdrq.origintimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrq_origintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "originTimestamp (nanoseconds)", "ptp.v2.pdrq.origintimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_PDelayResponse (=pdrs) messages*/
|
|
|
|
{ &hf_ptp_v2_pdrs_requestreceipttimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestreceiptTimestamp", "ptp.v2.pdrs.requestreceipttimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrs_requestreceipttimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestreceiptTimestamp (seconds)", "ptp.v2.pdrs.requestreceipttimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrs_requestreceipttimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestreceiptTimestamp (nanoseconds)", "ptp.v2.pdrs.requestreceipttimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrs_requestingportidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortIdentity", "ptp.v2.pdrs.requestingportidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdrs_requestingsourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortId", "ptp.v2.pdrs.requestingsourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_PDelayResponseFollowUp (=pdfu) messages*/
|
|
|
|
{ &hf_ptp_v2_pdfu_responseorigintimestamp,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "responseOriginTimestamp", "ptp.v2.pdfu.responseorigintimestamp",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdfu_responseorigintimestamp_seconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "responseOriginTimestamp (seconds)", "ptp.v2.pdfu.responseorigintimestamp.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdfu_responseorigintimestamp_nanoseconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "responseOriginTimestamp (nanoseconds)", "ptp.v2.pdfu.responseorigintimestamp.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdfu_requestingportidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortIdentity", "ptp.v2.pdfu.requestingportidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_pdfu_requestingsourceportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "requestingSourcePortId", "ptp.v2.pdfu.requestingsourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
|
|
|
|
/*Fields for PTP_Signalling (=sig) messages*/
|
|
|
|
{ &hf_ptp_v2_sig_targetportidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetPortIdentity", "ptp.v2.sig.targetportidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2007-08-08 20:06:51 +00:00
|
|
|
{ &hf_ptp_v2_sig_targetportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetPortId", "ptp.v2.sig.targetportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
/*Fields for PTP_Signalling (=sig) TLVs */
|
|
|
|
{ &hf_ptp_as_sig_tlv_tlvtype,
|
|
|
|
{ "tlvType", "ptp.as.sig.tlvType",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_v2_TLV_type_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_lengthfield,
|
|
|
|
{ "lengthField", "ptp.as.sig.lengthField",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2010-05-13 22:16:28 +00:00
|
|
|
},
|
2010-05-13 21:47:38 +00:00
|
|
|
{ &hf_ptp_as_sig_tlv_organization_id,
|
|
|
|
{ "organizationId", "ptp.as.sig.tlv.organizationId",
|
|
|
|
FT_UINT24, BASE_HEX, VALS(ptp_as_TLV_oid_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_organization_subtype,
|
|
|
|
{ "OrganizationSubType", "ptp.as.sig.tlv.organizationSubType",
|
|
|
|
FT_INT24, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_link_delay_interval,
|
|
|
|
{ "linkDelayInterval", "ptp.as.sig.tlv.linkdelayinterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_time_sync_interval,
|
|
|
|
{ "timeSyncInterval", "ptp.as.sig.tlv.timesyncinterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_announce_interval,
|
|
|
|
{ "announceInterval", "ptp.as.sig.tlv.announceinterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_flags,
|
|
|
|
{ "flags", "ptp.as.sig.tvl.flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_flags_comp_rate_ratio,
|
|
|
|
{ "computeNeighborRateRatio", "ptp.as.sig.tlv.flags.rateratio",
|
|
|
|
FT_BOOLEAN, 8, NULL, PTP_AS_FLAGS_COMP_NEIGHBOR_RATE_RATIO_BITMASK,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_ptp_as_sig_tlv_flags_comp_prop_delay,
|
|
|
|
{ "computeNeighborPropDelay", "ptp.as.sig.tlv.flags.propdelay",
|
|
|
|
FT_BOOLEAN, 8, NULL, PTP_AS_FLAGS_COMP_NEIGHBOR_PROP_DELAY_BITMASK,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2010-05-13 22:16:28 +00:00
|
|
|
|
2007-08-08 20:06:51 +00:00
|
|
|
/*Fields for PTP_Management (=mm) messages*/
|
2008-03-04 09:27:14 +00:00
|
|
|
{ &hf_ptp_v2_mm_targetportidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetPortIdentity", "ptp.v2.mm.targetportidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_targetportid,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "targetPortId", "ptp.v2.mm.targetportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_startingboundaryhops,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "startingBoundaryHops", "ptp.v2.mm.startingboundaryhops",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_boundaryhops,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "boundaryHops", "ptp.v2.mm.boundaryhops",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_action,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "action", "ptp.v2.mm.action",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp_v2_mm_action_vals), 0x0F,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/* Management TLV */
|
|
|
|
{ &hf_ptp_v2_mm_tlvType,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "tlvType", "ptp.v2.mm.tlvType",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_v2_TLV_type_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_lengthField,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "lengthField", "ptp.v2.mm.lengthField",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_managementId,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "managementId", "ptp.v2.mm.managementId",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp_v2_managementID_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_data,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "data", "ptp.v2.mm.data",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
/* Management TLV dataField */
|
|
|
|
/* CLOCK_DESCRIPTION */
|
|
|
|
{ &hf_ptp_v2_mm_clockType,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "clockType", "ptp.v2.mm.clockType",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_ordinaryClock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "The node implements an ordinary clock", "ptp.v2.mm.clockType.OC",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_ORDINARY_CLOCK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_boundaryClock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "The node implements a boundary clock", "ptp.v2.mm.clockType.BC",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_BOUNDARY_CLOCK,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_p2p_transparentClock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "The node implements a peer-to-peer transparent clock", "ptp.v2.mm.clockType.p2p_TC",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_P2P_TC,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_e2e_transparentClock,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "The node implements an end-to-end transparent clock", "ptp.v2.mm.clockType.e2e_TC",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_E2E_TC,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_managementNode,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "The node implements a management node", "ptp.v2.mm.clockType.MM",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_MANAGEMENT_NODE,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockType_reserved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Reserved", "ptp.v2.mm.clockType.reserved",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 16, NULL, CLOCKTYPE_RESERVED,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_physicalLayerProtocol,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "physicalLayerProtocol", "ptp.v2.mm.physicalLayerProtocol",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_physicalLayerProtocol_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.physicalLayerProtocol.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_physicalAddressLength,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "physical address length", "ptp.v2.mm.physicalAddressLength",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_physicalAddress,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "physical address", "ptp.v2.mm.physicalAddress",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_protocolAddress,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "protocol address", "ptp.v2.mm.protocolAddress",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_protocolAddress_networkProtocol,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "network protocol", "ptp.v2.mm.networkProtocol",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp2_networkProtocol_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_protocolAddress_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.protocolAddress.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_manufacturerIdentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "manufacturer identity", "ptp.v2.mm.manufacturerIdentity",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_reserved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "reserved", "ptp.v2.mm.reserved",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_productDescription,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "product description", "ptp.v2.mm.productDescription",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_productDescription_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.productDescription.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_revisionData,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "revision data", "ptp.v2.mm.revisionData",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_revisionData_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.revisionData.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_userDescription,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "user description", "ptp.v2.mm.userDescription",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_userDescription_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.userDescription.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_profileIdentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "profileIdentity", "ptp.v2.mm.profileIdentity",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_pad,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Pad", "ptp.v2.mm.pad",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_initializationKey,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "initialization key", "ptp.v2.mm.initializationKey",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2008-03-04 09:27:14 +00:00
|
|
|
{ &hf_ptp_v2_mm_numberOfFaultRecords,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "number of fault records", "ptp.v2.mm.numberOfFaultRecords",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultRecord,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "fault record", "ptp.v2.mm.faultRecord",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultRecordLength,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "fault record length", "ptp.v2.mm.faultRecordLength",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_severityCode,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "severity code", "ptp.v2.mm.severityCode",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp2_severityCode_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultName,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "faultName", "ptp.v2.mm.faultName",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultName_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.faultName.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultValue,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "faultValue", "ptp.v2.mm.faultValue",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultValue_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.faultValue.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultDescription,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "faultDescription", "ptp.v2.mm.faultDescription",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultDescription_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.faultDescription.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultTime,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Fault time", "ptp.v2.mm.faultTime",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultTime_s,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Fault time (seconds)", "ptp.v2.mm.faultTime.seconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultTime_ns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Fault time (nanoseconds)", "ptp.v2.mm.faultTime.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2008-12-03 22:56:46 +00:00
|
|
|
{ &hf_ptp_v2_mm_currentTime_s,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "current time (seconds)", "ptp.v2.mm.currentTime.seconds",
|
2008-12-03 22:56:46 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_currentTime_ns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "current time (nanoseconds)", "ptp.v2.mm.currentTime.nanoseconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockAccuracy,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Clock accuracy", "ptp.v2.mm.clockaccuracy",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_clockaccuracy_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_ptp_v2_mm_priority1,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "priority1", "ptp.v2.mm.priority1",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_priority2,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "priority2", "ptp.v2.mm.priority2",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_dds_SO,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Slave only", "ptp.v2.mm.SlavOnly",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x02,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_TSC,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Two step", "ptp.v2.mm.twoStep",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_numberPorts,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "number of ports", "ptp.v2.mm.numberPorts",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockclass,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Clock class", "ptp.v2.mm.clockclass",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockaccuracy,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Clock accuracy", "ptp.v2.mm.clockaccuracy",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_clockaccuracy_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Clock variance", "ptp.v2.mm.clockvariance",
|
2008-12-03 22:56:46 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_clockidentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Clock identity", "ptp.v2.mm.clockidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_domainNumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "domain number", "ptp.v2.mm.domainNumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL , 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_SO,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Slave only", "ptp.v2.mm.SlavOnly",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_stepsRemoved,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "steps removed", "ptp.v2.mm.stepsRemoved",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_parentIdentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parent ClockIdentity", "ptp.v2.mm.parentclockidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_parentPort,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parent SourcePortID", "ptp.v2.mm.parentsourceportid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_parentStats,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "parent stats", "ptp.v2.mm.parentstats",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_observedParentOffsetScaledLogVariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "observedParentOffsetScaledLogVariance", "ptp.v2.mm.observedParentOffsetScaledLogVariance",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_observedParentClockPhaseChangeRate,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "observedParentClockPhaseChangeRate", "ptp.v2.mm.observedParentClockPhaseChangeRate",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterPriority1,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster priority1", "ptp.v2.mm.grandmasterPriority1",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterPriority2,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster priority2", "ptp.v2.mm.grandmasterPriority2",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterclockclass,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster clock class", "ptp.v2.mm.grandmasterclockclass",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterclockaccuracy,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster clock accuracy", "ptp.v2.mm.grandmasterclockaccuracy",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_clockaccuracy_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterclockvariance,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster clock variance", "ptp.v2.mm.grandmasterclockvariance",
|
2008-12-03 22:56:46 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_grandmasterIdentity,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Grandmaster clock identity", "ptp.v2.mm.grandmasterclockidentity",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT64, BASE_HEX, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_currentUtcOffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "CurrentUTCOffset", "ptp.v2.mm.currentutcoffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_LI_61,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap 61", "ptp.v2.mm.li61",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_LI_59,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "leap 59", "ptp.v2.mm.li59",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x02,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_UTCV,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "CurrentUTCOffset valid", "ptp.v2.mm.CurrentUTCOffsetValid",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x04,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_PTP,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PTP timescale", "ptp.v2.mm.ptptimescale",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x08,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_TTRA,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Time traceable", "ptp.v2.mm.timeTraceable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x10,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_FTRA,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Frequency traceable", "ptp.v2.mm.frequencyTraceable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x20,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_timesource,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "TimeSource", "ptp.v2.mm.timesource",
|
2008-03-15 22:41:57 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(ptp_v2_timesource_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_offset_ns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "correction", "ptp.v2.mm.offset.ns",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2008-03-03 20:26:37 +00:00
|
|
|
{ &hf_ptp_v2_mm_offset_subns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "SubNs", "ptp.v2.mm.offset.subns",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_DOUBLE, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_pathDelay_ns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "ns", "ptp.v2.mm.pathDelay.ns",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
2008-03-03 20:26:37 +00:00
|
|
|
{ &hf_ptp_v2_mm_pathDelay_subns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "SubNs", "ptp.v2.mm.pathDelay.subns",
|
2009-07-07 09:02:59 +00:00
|
|
|
FT_DOUBLE, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_PortNumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "PortNumber", "ptp.v2.mm.PortNumber",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_portState,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Port state", "ptp.v2.mm.portState",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp2_portState_vals), 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_logMinDelayReqInterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "logMinDelayReqInterval", "ptp.v2.mm.logMinDelayReqInterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_peerMeanPathDelay_ns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "ns", "ptp.v2.mm.peerMeanPathDelay.ns",
|
|
|
|
FT_UINT64, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_peerMeanPathDelay_subns,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "SubNs", "ptp.v2.mm.peerMeanPathDelay.subns",
|
|
|
|
FT_DOUBLE, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_logAnnounceInterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "logAnnounceInterval", "ptp.v2.mm.logAnnounceInterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_announceReceiptTimeout,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "announceReceiptTimeout", "ptp.v2.mm.announceReceiptTimeout",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_logSyncInterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "logSyncInterval", "ptp.v2.mm.logSyncInterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_delayMechanism,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Delay mechanism", "ptp.v2.mm.delayMechanism",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(ptp2_delayMechanism_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_logMinPdelayReqInterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "logMinPdelayReqInterval", "ptp.v2.mm.logMinPdelayReqInterval",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_versionNumber,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "versionNumber", "ptp.v2.mm.versionNumber",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0F,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_primaryDomain,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Primary domain number", "ptp.v2.mm.primaryDomain",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_faultyFlag,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Faulty flag", "ptp.v2.mm.faultyFlag",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_ptp_v2_mm_managementErrorId,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "managementErrorId", "ptp.v2.mm.managementErrorId",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(ptp2_managementErrorId_vals), 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_displayData,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Display data", "ptp.v2.mm.displayData",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_displayData_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.displayData.length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_ucEN,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Enable unicast", "ptp.v2.mm.unicastEnable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_ptEN,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Path trace unicast", "ptp.v2.mm.pathTraceEnable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_atEN,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Path trace unicast", "ptp.v2.mm.pathTraceEnable",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_keyField,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Key field", "ptp.v2.mm.keyField",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_displayName,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Display name", "ptp.v2.mm.displayName",
|
From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero
svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
|
|
|
FT_STRING, BASE_NONE, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_displayName_length,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "length", "ptp.v2.mm.displayName.length",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_maxKey,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Max key", "ptp.v2.mm.maxKey",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_currentOffset,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Current offset", "ptp.v2.mm.currentOffset",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_jumpSeconds,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Jump seconds", "ptp.v2.mm.jumpSeconds",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-15 22:41:57 +00:00
|
|
|
},
|
2008-03-04 09:27:14 +00:00
|
|
|
{ &hf_ptp_v2_mm_numberOfAlternateMasters,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Number of alternate masters", "ptp.v2.mm.numberOfAlternateMasters",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_logAlternateMulticastSyncInterval,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Alternate multicast sync interval", "ptp.v2.mm.AlternateMulticastSyncInterval",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_INT8, BASE_DEC, NULL, 0x00,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
{ &hf_ptp_v2_mm_transmitAlternateMulticastSync,
|
2010-05-10 15:54:57 +00:00
|
|
|
{ "Transmit alternate multicast sync", "ptp.v2.mm.transmitAlternateMulticastSync",
|
2008-03-04 09:27:14 +00:00
|
|
|
FT_BOOLEAN, 8, NULL, 0x01,
|
2009-05-26 16:01:12 +00:00
|
|
|
NULL, HFILL }
|
2008-03-04 09:27:14 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2008-03-15 22:41:57 +00:00
|
|
|
|
2004-05-12 03:37:28 +00:00
|
|
|
/* Setup protocol subtree array */
|
2008-03-04 09:27:14 +00:00
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_ptp,
|
|
|
|
&ett_ptp_flags,
|
|
|
|
&ett_ptp_time,
|
|
|
|
&ett_ptp_time2,
|
2007-08-08 20:06:51 +00:00
|
|
|
&ett_ptp_v2,
|
2008-03-04 09:27:14 +00:00
|
|
|
&ett_ptp_v2_transportspecific,
|
2007-08-08 20:06:51 +00:00
|
|
|
&ett_ptp_v2_flags,
|
|
|
|
&ett_ptp_v2_correction,
|
|
|
|
&ett_ptp_v2_time,
|
2008-03-15 22:41:57 +00:00
|
|
|
&ett_ptp_v2_time2,
|
2008-03-04 09:27:14 +00:00
|
|
|
&ett_ptp_v2_managementData,
|
|
|
|
&ett_ptp_v2_clockType,
|
|
|
|
&ett_ptp_v2_physicalLayerProtocol,
|
|
|
|
&ett_ptp_v2_protocolAddress,
|
|
|
|
&ett_ptp_v2_ptptext,
|
|
|
|
&ett_ptp_v2_faultRecord,
|
|
|
|
&ett_ptp_v2_timeInterval,
|
2009-05-06 07:12:07 +00:00
|
|
|
&ett_ptp_v2_tlv,
|
2010-05-13 21:47:38 +00:00
|
|
|
&ett_ptp_as_sig_tlv_flags,
|
2008-03-04 09:27:14 +00:00
|
|
|
};
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/* Register the protocol name and description */
|
2008-03-04 09:27:14 +00:00
|
|
|
proto_ptp = proto_register_protocol("Precision Time Protocol (IEEE1588)",
|
2010-05-10 15:54:57 +00:00
|
|
|
"PTP", "ptp");
|
2004-05-12 03:37:28 +00:00
|
|
|
|
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
2008-03-04 09:27:14 +00:00
|
|
|
proto_register_field_array(proto_ptp, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2004-05-12 03:37:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
proto_reg_handoff_ptp(void)
|
|
|
|
{
|
2008-03-04 09:27:14 +00:00
|
|
|
dissector_handle_t event_port_ptp_handle;
|
2004-05-12 03:37:28 +00:00
|
|
|
dissector_handle_t general_port_ptp_handle;
|
2008-03-04 09:27:14 +00:00
|
|
|
dissector_handle_t ethertype_ptp_handle;
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2008-03-04 09:27:14 +00:00
|
|
|
event_port_ptp_handle = create_dissector_handle(dissect_ptp, proto_ptp);
|
|
|
|
general_port_ptp_handle = create_dissector_handle(dissect_ptp, proto_ptp);
|
|
|
|
ethertype_ptp_handle = create_dissector_handle(dissect_ptp_oE, proto_ptp);
|
2004-05-12 03:37:28 +00:00
|
|
|
|
2010-12-20 05:35:29 +00:00
|
|
|
dissector_add_uint("udp.port", EVENT_PORT_PTP, event_port_ptp_handle);
|
|
|
|
dissector_add_uint("udp.port", GENERAL_PORT_PTP, general_port_ptp_handle);
|
|
|
|
dissector_add_uint("ethertype", ETHERTYPE_PTP, ethertype_ptp_handle);
|
2004-05-12 03:37:28 +00:00
|
|
|
}
|