/* Method dissects the protocol version from the packets. Additional note, section 3 of  defines the Binary Protocol version as 0x00010000 == 1.0 where the Most significant bits are the major version and the least significant bits are the minor version.  */
void dissect_ptpIP_protocol_version(tvbuff_t *tvb, proto_tree *tree, guint16 *offset)
/* Method dissects the protocol version from the packets. Additional note, section 3 of  defines the Binary Protocol version as 0x00010000 == 1.0 where the Most significant bits are the major version and the least significant bits are the minor version.  */
void dissect_ptpIP_protocol_version(tvbuff_t *tvb, proto_tree *tree, guint16 *offset)
{
    guint8  version[30];
    guint32 protoVersion;
    guint16 majorVersion, minorVersion;
    protoVersion = tvb_get_letohl(tvb, *offset);
    minorVersion = protoVersion & 0xFFFF;
    majorVersion = (protoVersion & 0xFFFF0000) >>16;
    g_snprintf(version, sizeof(version), "%u.%u", majorVersion, minorVersion);
    proto_tree_add_string(tree, hf_ptpIP_version, tvb, *offset, 4, version);
    *offset += 4;
}