aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-19 09:28:58 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-08-19 09:28:58 +0000
commit3723032609805d89e3a155d6273833f7febdd899 (patch)
treecfc88ca2ba33dffc404a5e5bc7fc489f32d8a58b /epan
parenteebed02d9dbebe4faf682e7b31c1af36f1202311 (diff)
From Markus Seehofer
PTP updates svn path=/trunk/; revision=15426
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ptp.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c
index da37752cd5..a5a9aad20b 100644
--- a/epan/dissectors/packet-ptp.c
+++ b/epan/dissectors/packet-ptp.c
@@ -4,6 +4,12 @@
* Copyright 2004, Dominic Béchaz <bdo@zhwin.ch> , ZHW/InES
* Copyright 2004, Markus Seehofer <mseehofe@nt.hirschmann.de>
*
+ * Revisions:
+ * - Markus Seehofer 09.08.2005 <mseehofe@nt.hirschmann.de>
+ * - Included the "startingBoundaryHops" field in
+ * ptp_management messages.
+ * -
+ *
* $Id$
*
* A plugin for:
@@ -37,6 +43,10 @@
#include <glib.h>
+#ifdef NEED_SNPRINTF_H
+# include "snprintf.h"
+#endif
+
#include <epan/packet.h>
@@ -117,6 +127,7 @@
#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
@@ -512,6 +523,7 @@ static int hf_ptp_dr_requestingsourcesequenceid = -1;
static int hf_ptp_mm_targetcommunicationtechnology = -1;
static int hf_ptp_mm_targetuuid = -1;
static int hf_ptp_mm_targetportid = -1;
+static int hf_ptp_mm_startingboundaryhops = -1;
static int hf_ptp_mm_boundaryhops = -1;
static int hf_ptp_mm_managementmessagekey = -1;
static int hf_ptp_mm_parameterlength = -1;
@@ -660,7 +672,7 @@ dissect_ptp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTP");
-/* Get control field (what kind of message is this? (Sync, DelayReq, ....) */
+/* Get control field (what kind of message is this? (Sync, DelayReq, ...) */
ptp_control = tvb_get_guint8 (tvb, PTP_CONTROL_OFFSET);
/* MGMT packet? */
@@ -928,8 +940,12 @@ dissect_ptp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
hf_ptp_mm_targetportid, tvb, PTP_MM_TARGETPORTID_OFFSET, 2, FALSE);
proto_tree_add_item(ptp_tree,
+ hf_ptp_mm_startingboundaryhops, tvb, PTP_MM_STARTINGBOUNDARYHOPS_OFFSET, 2, FALSE);
+
+ proto_tree_add_item(ptp_tree,
hf_ptp_mm_boundaryhops, tvb, PTP_MM_BOUNDARYHOPS_OFFSET, 2, FALSE);
+
proto_tree_add_item(ptp_tree,
hf_ptp_mm_managementmessagekey, tvb, PTP_MM_MANAGEMENTMESSAGEKEY_OFFSET, 1, FALSE);
@@ -1601,6 +1617,11 @@ proto_register_ptp(void)
FT_UINT16, BASE_DEC, NULL, 0x00,
"", HFILL }
},
+ { &hf_ptp_mm_startingboundaryhops,
+ { "startingBoundaryHops", "ptp.mm.startingboundaryhops",
+ FT_INT16, BASE_DEC, NULL, 0x00,
+ "", HFILL }
+ },
{ &hf_ptp_mm_boundaryhops,
{ "boundaryHops", "ptp.mm.boundaryhops",
FT_INT16, BASE_DEC, NULL, 0x00,