2000-06-07 22:57:45 +00:00
|
|
|
/* packet-cops.c
|
|
|
|
* Routines for the COPS (Common Open Policy Service) protocol dissection
|
2007-08-26 20:16:35 +00:00
|
|
|
*
|
|
|
|
* RFC 2748 The COPS (Common Open Policy Service) Protocol
|
|
|
|
* RFC 3084 COPS Usage for Policy Provisioning (COPS-PR)
|
|
|
|
* RFC 3159 Structure of Policy Provisioning Information (SPPI)
|
2000-06-07 22:57:45 +00:00
|
|
|
*
|
|
|
|
* Copyright 2000, Heikki Vatiainen <hessu@cs.tut.fi>
|
|
|
|
*
|
2013-07-30 13:15:25 +00:00
|
|
|
* Added request/response tracking in July 2013 by Simon Zhong <szhong@juniper.net>
|
|
|
|
*
|
2004-10-07 19:22:54 +00:00
|
|
|
* Added PacketCable D-QoS specifications by Dick Gooris <gooris@lucent.com>
|
2004-04-25 04:01:12 +00:00
|
|
|
*
|
2004-04-15 09:24:07 +00:00
|
|
|
* Taken from PacketCable specifications :
|
|
|
|
* PacketCable Dynamic Quality-of-Service Specification
|
2004-04-25 04:01:12 +00:00
|
|
|
* Based on PKT-SP-DQOS-I09-040402 (April 2, 2004)
|
2004-10-07 19:22:54 +00:00
|
|
|
*
|
|
|
|
* PacketCable Multimedia Specification
|
2010-07-21 14:17:00 +00:00
|
|
|
* Based on PKT-SP-MM-I04-080522 and PKT-SP-MM-I05-091029
|
2004-10-07 19:22:54 +00:00
|
|
|
*
|
2004-04-15 09:24:07 +00:00
|
|
|
* www.packetcable.com
|
2004-04-25 04:01:12 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Implemented in wireshark at April 7-8, 2004
|
2004-04-25 04:01:12 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2000-06-07 22:57:45 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-06-07 22:57:45 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-06-07 22:57:45 +00:00
|
|
|
* 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.
|
2002-08-28 21:04:11 +00:00
|
|
|
*
|
2000-06-07 22:57:45 +00:00
|
|
|
* 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 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2000-06-07 22:57:45 +00:00
|
|
|
*/
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/*
|
|
|
|
* Some of the development of the COPS protocol decoder was sponsored by
|
|
|
|
* Cable Television Laboratories, Inc. ("CableLabs") based upon proprietary
|
|
|
|
* CableLabs' specifications. Your license and use of this protocol decoder
|
|
|
|
* does not mean that you are licensed to use the CableLabs'
|
|
|
|
* specifications. If you have questions about this protocol, contact
|
|
|
|
* jf.mule [AT] cablelabs.com or c.stuart [AT] cablelabs.com for additional
|
|
|
|
* information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2012-09-20 02:03:38 +00:00
|
|
|
#include "config.h"
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2002-02-22 11:16:13 +00:00
|
|
|
|
2002-01-21 07:37:49 +00:00
|
|
|
#include <epan/packet.h>
|
Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly. Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.
Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.
Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.
Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.
Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.
svn path=/trunk/; revision=5394
2002-05-05 00:16:38 +00:00
|
|
|
#include "packet-tcp.h"
|
2002-02-26 12:26:06 +00:00
|
|
|
|
2007-08-25 01:14:24 +00:00
|
|
|
#include <epan/oids.h>
|
2007-03-16 14:09:12 +00:00
|
|
|
#include <epan/expert.h>
|
2005-09-18 20:04:04 +00:00
|
|
|
#include "packet-ber.h"
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* XXX - The "plain" COPS port (3288) can be overridden in the prefs.
|
|
|
|
The PacketCable port cannot - should this be the case? */
|
2000-06-07 22:57:45 +00:00
|
|
|
#define TCP_PORT_COPS 3288
|
2004-10-07 19:22:54 +00:00
|
|
|
#define TCP_PORT_PKTCABLE_COPS 2126
|
|
|
|
#define TCP_PORT_PKTCABLE_MM_COPS 3918
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2013-03-15 16:39:30 +00:00
|
|
|
void proto_register_cops(void);
|
|
|
|
|
2003-09-08 19:40:10 +00:00
|
|
|
/* Preference: Variable to hold the tcp port preference */
|
2002-02-22 02:56:58 +00:00
|
|
|
static guint global_cops_tcp_port = TCP_PORT_COPS;
|
|
|
|
|
2003-09-08 19:40:10 +00:00
|
|
|
/* Preference: desegmentation of COPS */
|
2002-02-22 11:16:13 +00:00
|
|
|
static gboolean cops_desegment = TRUE;
|
|
|
|
|
2000-06-07 22:57:45 +00:00
|
|
|
#define COPS_OBJECT_HDR_SIZE 4
|
|
|
|
|
2013-10-23 06:29:11 +00:00
|
|
|
#if 0
|
2002-02-22 11:16:13 +00:00
|
|
|
/* Null string of type "guchar[]". */
|
|
|
|
static const guchar nullstring[] = "";
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
#define SAFE_STRING(s) (((s) != NULL) ? (s) : nullstring)
|
2013-10-23 06:29:11 +00:00
|
|
|
#endif
|
2002-02-22 11:16:13 +00:00
|
|
|
|
2000-06-07 22:57:45 +00:00
|
|
|
static const value_string cops_flags_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x00, "None" },
|
|
|
|
{ 0x01, "Solicited Message Flag Bit" },
|
|
|
|
{ 0, NULL },
|
2000-06-07 22:57:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* The different COPS message types */
|
|
|
|
enum cops_op_code {
|
2011-04-21 22:13:56 +00:00
|
|
|
COPS_NO_MSG, /* Not a COPS Message type */
|
|
|
|
|
|
|
|
COPS_MSG_REQ, /* Request (REQ) */
|
|
|
|
COPS_MSG_DEC, /* Decision (DEC) */
|
|
|
|
COPS_MSG_RPT, /* Report State (RPT) */
|
|
|
|
COPS_MSG_DRQ, /* Delete Request State (DRQ) */
|
|
|
|
COPS_MSG_SSQ, /* Synchronize State Req (SSQ) */
|
|
|
|
COPS_MSG_OPN, /* Client-Open (OPN) */
|
|
|
|
COPS_MSG_CAT, /* Client-Accept (CAT) */
|
|
|
|
COPS_MSG_CC, /* Client-Close (CC) */
|
|
|
|
COPS_MSG_KA, /* Keep-Alive (KA) */
|
|
|
|
COPS_MSG_SSC, /* Synchronize Complete (SSC) */
|
|
|
|
|
|
|
|
COPS_LAST_OP_CODE /* For error checking */
|
2000-06-07 22:57:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cops_op_code_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ COPS_MSG_REQ, "Request (REQ)" },
|
|
|
|
{ COPS_MSG_DEC, "Decision (DEC)" },
|
|
|
|
{ COPS_MSG_RPT, "Report State (RPT)" },
|
|
|
|
{ COPS_MSG_DRQ, "Delete Request State (DRQ)" },
|
|
|
|
{ COPS_MSG_SSQ, "Synchronize State Req (SSQ)" },
|
|
|
|
{ COPS_MSG_OPN, "Client-Open (OPN)" },
|
|
|
|
{ COPS_MSG_CAT, "Client-Accept (CAT)" },
|
|
|
|
{ COPS_MSG_CC, "Client-Close (CC)" },
|
|
|
|
{ COPS_MSG_KA, "Keep-Alive (KA)" },
|
|
|
|
{ COPS_MSG_SSC, "Synchronize Complete (SSC)" },
|
|
|
|
{ 0, NULL },
|
2000-06-07 22:57:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* The different objects in COPS messages */
|
|
|
|
enum cops_c_num {
|
2011-04-21 22:13:56 +00:00
|
|
|
COPS_NO_OBJECT, /* Not a COPS Object type */
|
|
|
|
|
|
|
|
COPS_OBJ_HANDLE, /* Handle Object (Handle) */
|
|
|
|
COPS_OBJ_CONTEXT, /* Context Object (Context) */
|
|
|
|
COPS_OBJ_IN_INT, /* In-Interface Object (IN-Int) */
|
|
|
|
COPS_OBJ_OUT_INT, /* Out-Interface Object (OUT-Int) */
|
|
|
|
COPS_OBJ_REASON, /* Reason Object (Reason) */
|
|
|
|
COPS_OBJ_DECISION, /* Decision Object (Decision) */
|
|
|
|
COPS_OBJ_LPDPDECISION, /* LPDP Decision Object (LPDPDecision) */
|
|
|
|
COPS_OBJ_ERROR, /* Error Object (Error) */
|
|
|
|
COPS_OBJ_CLIENTSI, /* Client Specific Information Object (ClientSI) */
|
|
|
|
COPS_OBJ_KATIMER, /* Keep-Alive Timer Object (KATimer) */
|
|
|
|
COPS_OBJ_PEPID, /* PEP Identification Object (PEPID) */
|
|
|
|
COPS_OBJ_REPORT_TYPE, /* Report-Type Object (Report-Type) */
|
|
|
|
COPS_OBJ_PDPREDIRADDR, /* PDP Redirect Address Object (PDPRedirAddr) */
|
|
|
|
COPS_OBJ_LASTPDPADDR, /* Last PDP Address (LastPDPaddr) */
|
|
|
|
COPS_OBJ_ACCTTIMER, /* Accounting Timer Object (AcctTimer) */
|
|
|
|
COPS_OBJ_INTEGRITY, /* Message Integrity Object (Integrity) */
|
|
|
|
COPS_LAST_C_NUM /* For error checking */
|
2000-06-07 22:57:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cops_c_num_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ COPS_OBJ_HANDLE, "Handle Object (Handle)" },
|
|
|
|
{ COPS_OBJ_CONTEXT, "Context Object (Context)" },
|
|
|
|
{ COPS_OBJ_IN_INT, "In-Interface Object (IN-Int)" },
|
|
|
|
{ COPS_OBJ_OUT_INT, "Out-Interface Object (OUT-Int)" },
|
|
|
|
{ COPS_OBJ_REASON, "Reason Object (Reason)" },
|
|
|
|
{ COPS_OBJ_DECISION, "Decision Object (Decision)" },
|
|
|
|
{ COPS_OBJ_LPDPDECISION, "LPDP Decision Object (LPDPDecision)" },
|
|
|
|
{ COPS_OBJ_ERROR, "Error Object (Error)" },
|
|
|
|
{ COPS_OBJ_CLIENTSI, "Client Specific Information Object (ClientSI)" },
|
|
|
|
{ COPS_OBJ_KATIMER, "Keep-Alive Timer Object (KATimer)" },
|
|
|
|
{ COPS_OBJ_PEPID, "PEP Identification Object (PEPID)" },
|
|
|
|
{ COPS_OBJ_REPORT_TYPE, "Report-Type Object (Report-Type)" },
|
|
|
|
{ COPS_OBJ_PDPREDIRADDR, "PDP Redirect Address Object (PDPRedirAddr)" },
|
|
|
|
{ COPS_OBJ_LASTPDPADDR, "Last PDP Address (LastPDPaddr)" },
|
|
|
|
{ COPS_OBJ_ACCTTIMER, "Accounting Timer Object (AcctTimer)" },
|
|
|
|
{ COPS_OBJ_INTEGRITY, "Message Integrity Object (Integrity)" },
|
|
|
|
{ 0, NULL },
|
2002-02-22 11:16:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* The different objects in COPS-PR messages */
|
|
|
|
enum cops_s_num {
|
2011-04-21 22:13:56 +00:00
|
|
|
COPS_NO_PR_OBJECT, /* Not a COPS-PR Object type */
|
|
|
|
COPS_OBJ_PRID, /* Provisioning Instance Identifier (PRID) */
|
|
|
|
COPS_OBJ_PPRID, /* Prefix Provisioning Instance Identifier (PPRID) */
|
|
|
|
COPS_OBJ_EPD, /* Encoded Provisioning Instance Data (EPD) */
|
|
|
|
COPS_OBJ_GPERR, /* Global Provisioning Error Object (GPERR) */
|
|
|
|
COPS_OBJ_CPERR, /* PRC Class Provisioning Error Object (CPERR) */
|
|
|
|
COPS_OBJ_ERRPRID, /* Error Provisioning Instance Identifier (ErrorPRID)*/
|
|
|
|
|
|
|
|
COPS_LAST_S_NUM /* For error checking */
|
2002-02-22 11:16:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const value_string cops_s_num_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ COPS_OBJ_PRID, "Provisioning Instance Identifier (PRID)" },
|
|
|
|
{ COPS_OBJ_PPRID, "Prefix Provisioning Instance Identifier (PPRID)" },
|
|
|
|
{ COPS_OBJ_EPD, "Encoded Provisioning Instance Data (EPD)" },
|
|
|
|
{ COPS_OBJ_GPERR, "Global Provisioning Error Object (GPERR)" },
|
|
|
|
{ COPS_OBJ_CPERR, "PRC Class Provisioning Error Object (CPERR)" },
|
|
|
|
{ COPS_OBJ_ERRPRID, "Error Provisioning Instance Identifier (ErrorPRID)" },
|
|
|
|
{ 0, NULL },
|
2000-06-07 22:57:45 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2000-10-16 14:05:08 +00:00
|
|
|
/* R-Type is carried within the Context Object */
|
|
|
|
static const value_string cops_r_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x01, "Incoming-Message/Admission Control request" },
|
|
|
|
{ 0x02, "Resource-Allocation request" },
|
|
|
|
{ 0x04, "Outgoing-Message request" },
|
|
|
|
{ 0x08, "Configuration request" },
|
|
|
|
{ 0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
2002-02-22 11:16:13 +00:00
|
|
|
/* S-Type is carried within the ClientSI Object for COPS-PR*/
|
|
|
|
static const value_string cops_s_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x01, "BER" },
|
|
|
|
{ 0, NULL },
|
2002-02-22 11:16:13 +00:00
|
|
|
};
|
2000-10-16 14:05:08 +00:00
|
|
|
|
|
|
|
/* Reason-Code is carried within the Reason object */
|
|
|
|
static const value_string cops_reason_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 1, "Unspecified" },
|
|
|
|
{ 2, "Management" },
|
|
|
|
{ 3, "Preempted (Another request state takes precedence)" },
|
|
|
|
{ 4, "Tear (Used to communicate a signaled state removal)" },
|
|
|
|
{ 5, "Timeout (Local state has timed-out)" },
|
|
|
|
{ 6, "Route Change (Change invalidates request state)" },
|
|
|
|
{ 7, "Insufficient Resources (No local resource available)" },
|
|
|
|
{ 8, "PDP's Directive (PDP decision caused the delete)" },
|
|
|
|
{ 9, "Unsupported decision (PDP decision not supported)" },
|
|
|
|
{ 10, "Synchronize Handle Unknown" },
|
|
|
|
{ 11, "Transient Handle (stateless event)" },
|
|
|
|
{ 12, "Malformed Decision (could not recover)" },
|
|
|
|
{ 13, "Unknown COPS Object from PDP" },
|
|
|
|
{ 0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Command-Code is carried within the Decision object if C-Type is 1 */
|
|
|
|
static const value_string cops_dec_cmd_code_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0, "NULL Decision (No configuration data available)" },
|
|
|
|
{ 1, "Install (Admit request/Install configuration)" },
|
|
|
|
{ 2, "Remove (Remove request/Remove configuration)" },
|
|
|
|
{ 0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Decision flags are also carried with the Decision object if C-Type is 1 */
|
|
|
|
static const value_string cops_dec_cmd_flag_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x00, "<None set>" },
|
|
|
|
{ 0x01, "Trigger Error (Trigger error message if set)" },
|
|
|
|
{ 0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Error-Code from Error object */
|
|
|
|
static const value_string cops_error_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "Bad handle" },
|
|
|
|
{2, "Invalid handle reference" },
|
|
|
|
{3, "Bad message format (Malformed Message)" },
|
|
|
|
{4, "Unable to process (server gives up on query)" },
|
|
|
|
{5, "Mandatory client-specific info missing" },
|
|
|
|
{6, "Unsupported client" },
|
|
|
|
{7, "Mandatory COPS object missing" },
|
|
|
|
{8, "Client Failure" },
|
|
|
|
{9, "Communication Failure" },
|
|
|
|
{10, "Unspecified" },
|
|
|
|
{11, "Shutting down" },
|
|
|
|
{12, "Redirect to Preferred Server" },
|
|
|
|
{13, "Unknown COPS Object" },
|
|
|
|
{14, "Authentication Failure" },
|
|
|
|
{15, "Authentication Required" },
|
|
|
|
{0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
2002-02-22 11:16:13 +00:00
|
|
|
/* Error-Code from GPERR object */
|
|
|
|
static const value_string cops_gperror_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "AvailMemLow" },
|
|
|
|
{2, "AvailMemExhausted" },
|
|
|
|
{3, "unknownASN.1Tag" },
|
|
|
|
{4, "maxMsgSizeExceeded" },
|
|
|
|
{5, "unknownError" },
|
|
|
|
{6, "maxRequestStatesOpen" },
|
|
|
|
{7, "invalidASN.1Length" },
|
|
|
|
{8, "invalidObjectPad" },
|
|
|
|
{9, "unknownPIBData" },
|
|
|
|
{10, "unknownCOPSPRObject" },
|
|
|
|
{11, "malformedDecision" },
|
|
|
|
{0, NULL },
|
2002-02-22 11:16:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Error-Code from CPERR object */
|
|
|
|
static const value_string cops_cperror_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "priSpaceExhausted" },
|
|
|
|
{2, "priInstanceInvalid" },
|
|
|
|
{3, "attrValueInvalid" },
|
|
|
|
{4, "attrValueSupLimited" },
|
|
|
|
{5, "attrEnumSupLimited" },
|
|
|
|
{6, "attrMaxLengthExceeded" },
|
|
|
|
{7, "attrReferenceUnknown" },
|
|
|
|
{8, "priNotifyOnly" },
|
|
|
|
{9, "unknownPrc" },
|
|
|
|
{10, "tooFewAttrs" },
|
|
|
|
{11, "invalidAttrType" },
|
|
|
|
{12, "deletedInRef" },
|
|
|
|
{13, "priSpecificError" },
|
|
|
|
{0, NULL },
|
2002-02-22 11:16:13 +00:00
|
|
|
};
|
2002-08-28 21:04:11 +00:00
|
|
|
|
2000-10-16 14:05:08 +00:00
|
|
|
|
|
|
|
/* Report-Type from Report-Type object */
|
|
|
|
static const value_string cops_report_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, " Success : Decision was successful at the PEP" },
|
|
|
|
{2, " Failure : Decision could not be completed by PEP" },
|
|
|
|
{3, " Accounting: Accounting update for an installed state" },
|
|
|
|
{0, NULL },
|
2000-10-16 14:05:08 +00:00
|
|
|
};
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Client-type descriptions */
|
|
|
|
/* http://www.iana.org/assignments/cops-parameters */
|
|
|
|
|
|
|
|
/* PacketCable Types */
|
|
|
|
|
2004-10-14 07:42:31 +00:00
|
|
|
/* static dissector_handle_t sdp_handle; */
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
#define COPS_CLIENT_PC_DQOS 0x8008
|
|
|
|
#define COPS_CLIENT_PC_MM 0x800a
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
static const value_string cops_client_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, "None"},
|
|
|
|
{1, "RSVP"},
|
|
|
|
{2, "DiffServ QoS"},
|
|
|
|
{0x8001, "IP Highway"},
|
|
|
|
{0x8002, "IP Highway"},
|
|
|
|
{0x8003, "IP Highway"},
|
|
|
|
{0x8004, "IP Highway"},
|
|
|
|
{0x8005, "Fujitsu"},
|
|
|
|
{0x8006, "HP OpenView PolicyXpert"},
|
|
|
|
{0x8007, "HP OpenView PolicyXpert"},
|
|
|
|
{COPS_CLIENT_PC_DQOS, "PacketCable Dynamic Quality-of-Service"},
|
|
|
|
{0x8009, "3GPP"},
|
|
|
|
{COPS_CLIENT_PC_MM, "PacketCable Multimedia"},
|
2013-07-30 13:15:25 +00:00
|
|
|
{0x800b, "Juniper"},
|
|
|
|
{0x800c, "Q.3303.1 (Rw interface) COPS alternative"},
|
|
|
|
{0x800d, "Q.3304.1 (Rc interface) COPS alternative"},
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, NULL},
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* The next tables are for PacketCable */
|
|
|
|
|
|
|
|
/* Transaction ID table */
|
2004-10-07 19:22:54 +00:00
|
|
|
static const value_string table_cops_dqos_transaction_id[] =
|
2004-04-15 09:24:07 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x1, "Gate Alloc" },
|
|
|
|
{ 0x2, "Gate Alloc Ack" },
|
|
|
|
{ 0x3, "Gate Alloc Err" },
|
|
|
|
{ 0x4, "Gate Set" },
|
|
|
|
{ 0x5, "Gate Set Ack" },
|
|
|
|
{ 0x6, "Gate Set Err" },
|
|
|
|
{ 0x7, "Gate Info" },
|
|
|
|
{ 0x8, "Gate Info Ack" },
|
|
|
|
{ 0x9, "Gate Info Err" },
|
|
|
|
{ 0xa, "Gate Delete" },
|
|
|
|
{ 0xb, "Gate Delete Ack" },
|
|
|
|
{ 0xc, "Gate Delete Err" },
|
|
|
|
{ 0xd, "Gate Open" },
|
|
|
|
{ 0xe, "Gate Close" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Direction */
|
|
|
|
static const value_string table_cops_direction[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x0, "Downstream gate" },
|
|
|
|
{ 0x1, "Upstream gate" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Session Class */
|
|
|
|
static const value_string table_cops_session_class[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x0, "Unspecified" },
|
|
|
|
{ 0x1, "Normal priority VoIP session" },
|
|
|
|
{ 0x2, "High priority VoIP session" },
|
|
|
|
{ 0x3, "Reserved" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Reason Code */
|
|
|
|
static const value_string table_cops_reason_code[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x0, "Gate Delete Operation" },
|
|
|
|
{ 0x1, "Gate Close Operation" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Reason Sub Code - Delete */
|
|
|
|
static const value_string table_cops_reason_subcode_delete[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x0, "Normal Operation" },
|
|
|
|
{ 0x1, "Local Gate-coordination not completed" },
|
|
|
|
{ 0x2, "Remote Gate-coordination not completed" },
|
|
|
|
{ 0x3, "Authorization revoked" },
|
|
|
|
{ 0x4, "Unexpected Gate-Open" },
|
|
|
|
{ 0x5, "Local Gate-Close failure" },
|
|
|
|
{ 0x127,"Unspecified error" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Reason Sub Code - Close */
|
|
|
|
static const value_string table_cops_reason_subcode_close[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x0, "Client initiated release (normal operation)" },
|
|
|
|
{ 0x1, "Reservation reassignment (e.g., for priority session)" },
|
|
|
|
{ 0x2, "Lack of reservation maintenance (e.g., RSVP refreshes)" },
|
|
|
|
{ 0x3, "Lack of Docsis Mac-layer responses (e.g., station maintenance)" },
|
|
|
|
{ 0x4, "Timer T0 expiration; no Gate-Set received from CMS" },
|
|
|
|
{ 0x5, "Timer T1 expiration; no Commit received from MTA" },
|
|
|
|
{ 0x6, "Timer T7 expiration; Service Flow reservation timeout" },
|
|
|
|
{ 0x7, "Timer T8 expiration; Service Flow inactivity in the upstream direction" },
|
|
|
|
{ 0x127,"Unspecified error" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* PacketCable Error */
|
|
|
|
static const value_string table_cops_packetcable_error[] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{ 0x1, "No gates urrently available" },
|
|
|
|
{ 0x2, "Unknown Gate ID" },
|
|
|
|
{ 0x3, "Illegal Session Class value" },
|
|
|
|
{ 0x4, "Subscriber exceeded gate limit" },
|
|
|
|
{ 0x5, "Gate already set" },
|
|
|
|
{ 0x6, "Missing Required Object" },
|
|
|
|
{ 0x7, "Invalid Object" },
|
|
|
|
{ 0x127,"Unspecified error" },
|
|
|
|
{ 0, NULL },
|
2004-04-15 09:24:07 +00:00
|
|
|
};
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* PacketCable Multimedia */
|
|
|
|
|
|
|
|
static const value_string table_cops_mm_transaction_id[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "Reserved"},
|
|
|
|
{2, "Reserved"},
|
|
|
|
{3, "Reserved"},
|
|
|
|
{4, "Gate Set"},
|
|
|
|
{5, "Gate Set Ack"},
|
|
|
|
{6, "Gate Set Err"},
|
|
|
|
{7, "Gate Info"},
|
|
|
|
{8, "Gate Info Ack"},
|
|
|
|
{9, "Gate Info Err"},
|
|
|
|
{10, "Gate Delete"},
|
|
|
|
{11, "Gate Delete Ack"},
|
|
|
|
{12, "Gate Delete Err"},
|
|
|
|
{13, "Gate Open"},
|
|
|
|
{14, "Gate Close"},
|
|
|
|
{15, "Gate Report State"},
|
|
|
|
{16, "Invalid Gate Cmd Err"},
|
|
|
|
{17, "PDP Config"},
|
|
|
|
{18, "PDP Config Ack"},
|
|
|
|
{19, "PDP Config Error"},
|
|
|
|
{20, "Synch Request"},
|
|
|
|
{21, "Synch Report"},
|
|
|
|
{22, "Synch Complete"},
|
|
|
|
{23, "Message Receipt"},
|
|
|
|
{0, NULL },
|
2006-02-09 19:41:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_activation_state_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, "Inactive"},
|
|
|
|
{1, "Active"},
|
|
|
|
{0, NULL },
|
2006-02-09 19:41:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_action_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, "Add classifier"},
|
|
|
|
{1, "Replace classifier"},
|
|
|
|
{2, "Delete classifier"},
|
|
|
|
{3, "No change"},
|
|
|
|
{0, NULL },
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_flow_spec_service_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{2, "Guaranteed Rate"},
|
|
|
|
{5, "Controlled Load"},
|
|
|
|
{0, NULL },
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
static const value_string pcmm_report_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, "Standard Report Data"},
|
|
|
|
{1, "Complete Gate Data"},
|
|
|
|
{0, NULL},
|
2006-02-09 19:41:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_synch_type_vals[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{0, "Full Synchronization"},
|
|
|
|
{1, "Incremental Synchronization"},
|
|
|
|
{0, NULL},
|
2006-02-09 19:41:20 +00:00
|
|
|
};
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
static const value_string pcmm_packetcable_error_code[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "Insufficient Resources"},
|
|
|
|
{2, "Unknown GateID"},
|
|
|
|
{6, "Missing Required Object"},
|
|
|
|
{7, "Invalid Object"},
|
|
|
|
{8, "Volume-Based Usage Limit Exceeded"},
|
|
|
|
{9, "Time-Based Usage Limit Exceeded"},
|
|
|
|
{10, "Session Class Limit Exceeded"},
|
|
|
|
{11, "Undefined Service Class Name"},
|
|
|
|
{12, "Incompatible Envelope"},
|
|
|
|
{13, "Invalid SubscriberID"},
|
|
|
|
{14, "Unauthorized AMID"},
|
|
|
|
{15, "Number of Classifiers Not Supported"},
|
|
|
|
{16, "Policy Exception"},
|
|
|
|
{17, "Invalid Field Value in Object"},
|
|
|
|
{18, "Transport Error"},
|
|
|
|
{19, "Unknown Gate Command"},
|
|
|
|
{20, "Unauthorized PSID"},
|
|
|
|
{21, "No State for PDP"},
|
|
|
|
{22, "Unsupported Synch Type"},
|
|
|
|
{23, "Incremental Data Incomplete"},
|
|
|
|
{127, "Other, Unspecified Error"},
|
|
|
|
{0, NULL},
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_gate_state[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "Idle/Closed"},
|
|
|
|
{2, "Authorized"},
|
|
|
|
{3, "Reserved"},
|
|
|
|
{4, "Committed"},
|
|
|
|
{5, "Committed-Recovery"},
|
|
|
|
{0, NULL},
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string pcmm_gate_state_reason[] = {
|
2011-04-21 22:13:56 +00:00
|
|
|
{1, "Close initiated by CMTS due to reservation reassignment"},
|
|
|
|
{2, "Close initiated by CMTS due to lack of DOCSIS MAC-layer responses"},
|
|
|
|
{3, "Close initiated by CMTS due to timer T1 expiration"},
|
|
|
|
{4, "Close initiated by CMTS due to timer T2 expiration"},
|
|
|
|
{5, "Inactivity timer expired due to Service Flow inactivity (timer T3 expiration)"},
|
|
|
|
{6, "Close initiated by CMTS due to lack of Reservation Maintenance"},
|
|
|
|
{7, "Gate state unchanged, but volume limit reached"},
|
|
|
|
{8, "Close initiated by CMTS due to timer T4 expiration"},
|
|
|
|
{9, "Gate state unchanged, but timer T2 expiration caused reservation reduction"},
|
|
|
|
{10, "Gate state unchanged, but time limit reached"},
|
|
|
|
{11, "Close initiated by Policy Server or CMTS, volume limit reached"},
|
|
|
|
{12, "Close initiated by Policy Server or CMTS, time limit reached"},
|
|
|
|
{13, "Close initiated by CMTS, other"},
|
|
|
|
{65535, "Other"},
|
|
|
|
{0, NULL},
|
2004-10-07 19:22:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* End of PacketCable Tables */
|
|
|
|
|
|
|
|
|
2000-06-07 22:57:45 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static gint proto_cops = -1;
|
|
|
|
static gint hf_cops_ver_flags = -1;
|
|
|
|
static gint hf_cops_version = -1;
|
|
|
|
static gint hf_cops_flags = -1;
|
|
|
|
|
2013-07-30 13:15:25 +00:00
|
|
|
static gint hf_cops_response_in = -1;
|
|
|
|
static gint hf_cops_response_to = -1;
|
|
|
|
static gint hf_cops_response_time = -1;
|
|
|
|
|
2000-06-07 22:57:45 +00:00
|
|
|
static gint hf_cops_op_code = -1;
|
|
|
|
static gint hf_cops_client_type = -1;
|
|
|
|
static gint hf_cops_msg_len = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_obj_len = -1;
|
|
|
|
static gint hf_cops_obj_c_num = -1;
|
|
|
|
static gint hf_cops_obj_c_type = -1;
|
|
|
|
|
2002-02-22 11:16:13 +00:00
|
|
|
static gint hf_cops_obj_s_num = -1;
|
2013-08-24 01:25:14 +00:00
|
|
|
static gint hf_cops_obj_s_type = -1;
|
2002-02-22 11:16:13 +00:00
|
|
|
|
2013-07-30 13:15:25 +00:00
|
|
|
static gint hf_cops_handle = -1;
|
|
|
|
|
2000-10-16 14:05:08 +00:00
|
|
|
static gint hf_cops_r_type_flags = -1;
|
|
|
|
static gint hf_cops_m_type_flags = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_in_int_ipv4 = -1;
|
|
|
|
static gint hf_cops_in_int_ipv6 = -1;
|
|
|
|
static gint hf_cops_out_int_ipv4 = -1;
|
|
|
|
static gint hf_cops_out_int_ipv6 = -1;
|
|
|
|
static gint hf_cops_int_ifindex = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_reason = -1;
|
|
|
|
static gint hf_cops_reason_sub = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_dec_cmd_code = -1;
|
|
|
|
static gint hf_cops_dec_flags = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_error = -1;
|
|
|
|
static gint hf_cops_error_sub = -1;
|
|
|
|
|
2002-02-22 11:16:13 +00:00
|
|
|
static gint hf_cops_gperror = -1;
|
|
|
|
static gint hf_cops_gperror_sub = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_cperror = -1;
|
|
|
|
static gint hf_cops_cperror_sub = -1;
|
|
|
|
|
2000-10-16 14:05:08 +00:00
|
|
|
static gint hf_cops_katimer = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_pepid = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_report_type = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_pdprediraddr_ipv4 = -1;
|
|
|
|
static gint hf_cops_pdprediraddr_ipv6 = -1;
|
|
|
|
static gint hf_cops_lastpdpaddr_ipv4 = -1;
|
|
|
|
static gint hf_cops_lastpdpaddr_ipv6 = -1;
|
|
|
|
static gint hf_cops_pdp_tcp_port = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_accttimer = -1;
|
|
|
|
|
|
|
|
static gint hf_cops_key_id = -1;
|
|
|
|
static gint hf_cops_seq_num = -1;
|
|
|
|
|
2007-08-26 20:16:35 +00:00
|
|
|
static gint hf_cops_prid_oid = -1;
|
|
|
|
static gint hf_cops_pprid_oid = -1;
|
|
|
|
static gint hf_cops_errprid_oid = -1;
|
|
|
|
static gint hf_cops_epd_null = -1;
|
|
|
|
static gint hf_cops_epd_int = -1;
|
|
|
|
static gint hf_cops_epd_octets = -1;
|
|
|
|
static gint hf_cops_epd_oid = -1;
|
|
|
|
static gint hf_cops_epd_ipv4 = -1;
|
|
|
|
static gint hf_cops_epd_u32 = -1;
|
|
|
|
static gint hf_cops_epd_ticks = -1;
|
|
|
|
static gint hf_cops_epd_opaque = -1;
|
|
|
|
static gint hf_cops_epd_i64 = -1;
|
|
|
|
static gint hf_cops_epd_u64 = -1;
|
|
|
|
static gint hf_cops_epd_unknown = -1;
|
2013-08-24 01:25:14 +00:00
|
|
|
static gint hf_cops_reserved8 = -1;
|
|
|
|
static gint hf_cops_reserved16 = -1;
|
|
|
|
static gint hf_cops_reserved24 = -1;
|
|
|
|
|
2007-08-26 20:16:35 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* For PacketCable D-QoS */
|
2004-04-15 09:24:07 +00:00
|
|
|
static gint hf_cops_subtree = -1;
|
|
|
|
static gint hf_cops_pc_activity_count = -1;
|
|
|
|
static gint hf_cops_pc_algorithm = -1;
|
|
|
|
static gint hf_cops_pc_close_subcode = -1;
|
|
|
|
static gint hf_cops_pc_cmts_ip = -1;
|
|
|
|
static gint hf_cops_pc_cmts_ip_port = -1;
|
2004-04-25 04:01:12 +00:00
|
|
|
static gint hf_cops_pc_prks_ip = -1;
|
|
|
|
static gint hf_cops_pc_prks_ip_port = -1;
|
|
|
|
static gint hf_cops_pc_srks_ip = -1;
|
|
|
|
static gint hf_cops_pc_srks_ip_port = -1;
|
2004-04-15 09:24:07 +00:00
|
|
|
static gint hf_cops_pc_delete_subcode = -1;
|
|
|
|
static gint hf_cops_pc_dest_ip = -1;
|
|
|
|
static gint hf_cops_pc_dest_port = -1;
|
|
|
|
static gint hf_cops_pc_direction = -1;
|
|
|
|
static gint hf_cops_pc_ds_field = -1;
|
|
|
|
static gint hf_cops_pc_gate_id = -1;
|
|
|
|
static gint hf_cops_pc_gate_spec_flags = -1;
|
|
|
|
static gint hf_cops_pc_gate_command_type = -1;
|
|
|
|
static gint hf_cops_pc_key = -1;
|
|
|
|
static gint hf_cops_pc_max_packet_size = -1;
|
|
|
|
static gint hf_cops_pc_min_policed_unit = -1;
|
|
|
|
static gint hf_cops_pc_packetcable_err_code = -1;
|
|
|
|
static gint hf_cops_pc_packetcable_sub_code = -1;
|
|
|
|
static gint hf_cops_pc_peak_data_rate = -1;
|
|
|
|
static gint hf_cops_pc_protocol_id = -1;
|
|
|
|
static gint hf_cops_pc_reason_code = -1;
|
|
|
|
static gint hf_cops_pc_remote_flags = -1;
|
|
|
|
static gint hf_cops_pc_remote_gate_id = -1;
|
|
|
|
static gint hf_cops_pc_reserved = -1;
|
|
|
|
static gint hf_cops_pc_session_class = -1;
|
|
|
|
static gint hf_cops_pc_slack_term = -1;
|
|
|
|
static gint hf_cops_pc_spec_rate = -1;
|
|
|
|
static gint hf_cops_pc_src_ip = -1;
|
|
|
|
static gint hf_cops_pc_src_port = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pc_subscriber_id_ipv4 = -1;
|
|
|
|
static gint hf_cops_pc_subscriber_id_ipv6 = -1;
|
2004-04-15 09:24:07 +00:00
|
|
|
static gint hf_cops_pc_t1_value = -1;
|
|
|
|
static gint hf_cops_pc_t7_value = -1;
|
|
|
|
static gint hf_cops_pc_t8_value = -1;
|
|
|
|
static gint hf_cops_pc_token_bucket_rate = -1;
|
|
|
|
static gint hf_cops_pc_token_bucket_size = -1;
|
|
|
|
static gint hf_cops_pc_transaction_id = -1;
|
2004-04-25 04:01:12 +00:00
|
|
|
static gint hf_cops_pc_bcid_ts = -1;
|
2013-01-31 17:55:31 +00:00
|
|
|
/* static gint hf_cops_pc_bcid = -1; */
|
2004-04-25 04:01:12 +00:00
|
|
|
static gint hf_cops_pc_bcid_ev = -1;
|
|
|
|
static gint hf_cops_pc_dfcdc_ip = -1;
|
|
|
|
static gint hf_cops_pc_dfccc_ip = -1;
|
|
|
|
static gint hf_cops_pc_dfcdc_ip_port = -1;
|
|
|
|
static gint hf_cops_pc_dfccc_ip_port = -1;
|
2004-12-09 23:25:01 +00:00
|
|
|
static gint hf_cops_pc_dfccc_id = -1;
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* PacketCable Multimedia */
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_amid_app_type = -1;
|
|
|
|
static gint hf_cops_pcmm_amid_am_tag = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_gate_spec_flags = -1;
|
2012-09-23 00:12:14 +00:00
|
|
|
static gint hf_cops_pcmm_gate_spec_flags_gate = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_flags_dscp_overwrite = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_gate_spec_dscp_tos_field = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_dscp_tos_mask = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_session_class_id = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_session_class_id_priority = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_session_class_id_preemption = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_session_class_id_configurable = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_timer_t1 = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_timer_t2 = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_timer_t3 = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_spec_timer_t4 = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_protocol_id = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_dscp_tos_field = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_dscp_tos_mask = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_src_addr = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_src_mask = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_dst_addr = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_dst_mask = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_src_port = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_src_port_end = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_dst_port = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_dst_port_end = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_priority = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_classifier_id = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_activation_state = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_action = -1;
|
2009-10-02 17:17:20 +00:00
|
|
|
static gint hf_cops_pcmm_classifier_flags = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_tc_low = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_tc_high = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_tc_mask = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_flow_label = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_next_header_type = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_source_prefix_length = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_destination_prefix_length = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_src_addr_v6 = -1;
|
|
|
|
static gint hf_cops_pcmm_classifier_dst_addr_v6 = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_flow_spec_envelope = -1;
|
|
|
|
static gint hf_cops_pcmm_flow_spec_service_number = -1;
|
|
|
|
static gint hf_cops_pcmm_docsis_scn = -1;
|
|
|
|
static gint hf_cops_pcmm_envelope = -1;
|
|
|
|
static gint hf_cops_pcmm_traffic_priority = -1;
|
|
|
|
static gint hf_cops_pcmm_request_transmission_policy = -1;
|
|
|
|
static gint hf_cops_pcmm_max_sustained_traffic_rate = -1;
|
|
|
|
static gint hf_cops_pcmm_max_traffic_burst = -1;
|
|
|
|
static gint hf_cops_pcmm_min_reserved_traffic_rate = -1;
|
|
|
|
static gint hf_cops_pcmm_ass_min_rtr_packet_size = -1;
|
2009-04-16 17:24:56 +00:00
|
|
|
static gint hf_cops_pcmm_max_concat_burst = -1;
|
|
|
|
static gint hf_cops_pcmm_req_att_mask = -1;
|
|
|
|
static gint hf_cops_pcmm_forbid_att_mask = -1;
|
2010-07-21 14:17:00 +00:00
|
|
|
static gint hf_cops_pcmm_att_aggr_rule_mask = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_nominal_polling_interval = -1;
|
|
|
|
static gint hf_cops_pcmm_tolerated_poll_jitter = -1;
|
|
|
|
static gint hf_cops_pcmm_unsolicited_grant_size = -1;
|
|
|
|
static gint hf_cops_pcmm_grants_per_interval = -1;
|
|
|
|
static gint hf_cops_pcmm_nominal_grant_interval = -1;
|
|
|
|
static gint hf_cops_pcmm_tolerated_grant_jitter = -1;
|
2009-04-16 17:24:56 +00:00
|
|
|
static gint hf_cops_pcmm_down_resequencing = -1;
|
|
|
|
static gint hf_cops_pcmm_down_peak_traffic_rate = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint hf_cops_pcmm_max_downstream_latency = -1;
|
|
|
|
static gint hf_cops_pcmm_volume_based_usage_limit = -1;
|
|
|
|
static gint hf_cops_pcmm_time_based_usage_limit = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_time_info = -1;
|
|
|
|
static gint hf_cops_pcmm_gate_usage_info = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_error_code = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_error_subcode = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_gate_state = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_gate_state_reason = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_version_info_major = -1;
|
|
|
|
static gint hf_cops_pcmm_packetcable_version_info_minor = -1;
|
2006-02-09 19:41:20 +00:00
|
|
|
static gint hf_cops_pcmm_psid = -1;
|
|
|
|
static gint hf_cops_pcmm_synch_options_report_type = -1;
|
|
|
|
static gint hf_cops_pcmm_synch_options_synch_type = -1;
|
|
|
|
static gint hf_cops_pcmm_msg_receipt_key = -1;
|
2009-04-16 17:24:56 +00:00
|
|
|
static gint hf_cops_pcmm_userid = -1;
|
2010-07-19 13:31:02 +00:00
|
|
|
static gint hf_cops_pcmm_sharedresourceid = -1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
|
2000-06-07 22:57:45 +00:00
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_cops = -1;
|
|
|
|
static gint ett_cops_ver_flags = -1;
|
|
|
|
static gint ett_cops_obj = -1;
|
2002-02-22 11:16:13 +00:00
|
|
|
static gint ett_cops_pr_obj = -1;
|
2000-10-16 14:05:08 +00:00
|
|
|
static gint ett_cops_obj_data = -1;
|
|
|
|
static gint ett_cops_r_type_flags = -1;
|
|
|
|
static gint ett_cops_itf = -1;
|
|
|
|
static gint ett_cops_reason = -1;
|
|
|
|
static gint ett_cops_decision = -1;
|
|
|
|
static gint ett_cops_error = -1;
|
2002-04-05 10:08:24 +00:00
|
|
|
static gint ett_cops_clientsi = -1;
|
|
|
|
static gint ett_cops_asn1 = -1;
|
2002-02-22 11:16:13 +00:00
|
|
|
static gint ett_cops_gperror = -1;
|
|
|
|
static gint ett_cops_cperror = -1;
|
2000-10-16 14:05:08 +00:00
|
|
|
static gint ett_cops_pdp = -1;
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2013-05-25 17:06:40 +00:00
|
|
|
static expert_field ei_cops_pepid_not_null = EI_INIT;
|
2013-08-24 01:25:14 +00:00
|
|
|
static expert_field ei_cops_trailing_garbage = EI_INIT;
|
|
|
|
static expert_field ei_cops_bad_cops_object_length = EI_INIT;
|
|
|
|
static expert_field ei_cops_bad_cops_pr_object_length = EI_INIT;
|
|
|
|
static expert_field ei_cops_unknown_c_num = EI_INIT;
|
|
|
|
static expert_field ei_cops_unknown_s_num = EI_INIT;
|
2013-05-25 17:06:40 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* For PacketCable */
|
|
|
|
static gint ett_cops_subtree = -1;
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
static gint ett_docsis_request_transmission_policy = -1;
|
|
|
|
|
2013-07-30 13:15:25 +00:00
|
|
|
/* For request/response matching */
|
|
|
|
typedef struct _cops_conv_info_t {
|
2014-04-28 21:21:05 +00:00
|
|
|
wmem_map_t *pdus_tree;
|
2013-07-30 13:15:25 +00:00
|
|
|
} cops_conv_info_t;
|
|
|
|
|
|
|
|
typedef struct _cops_call_t
|
|
|
|
{
|
|
|
|
guint8 op_code;
|
|
|
|
gboolean solicited;
|
|
|
|
guint32 req_num;
|
|
|
|
guint32 rsp_num;
|
|
|
|
nstime_t req_time;
|
|
|
|
} cops_call_t;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2002-02-22 02:56:58 +00:00
|
|
|
void proto_reg_handoff_cops(void);
|
2013-07-30 13:15:25 +00:00
|
|
|
static int dissect_cops_object(tvbuff_t *tvb, packet_info *pinfo, guint8 op_code, guint32 offset, proto_tree *tree, guint16 client_type, guint32* handle_value);
|
2004-10-14 07:42:31 +00:00
|
|
|
static void dissect_cops_object_data(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree,
|
2013-07-30 13:15:25 +00:00
|
|
|
guint8 op_code, guint16 client_type, guint8 c_num, guint8 c_type, int len, guint32* handle_value);
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2007-08-26 20:16:35 +00:00
|
|
|
static void dissect_cops_pr_objects(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree, int pr_len,
|
2011-04-21 22:13:56 +00:00
|
|
|
oid_info_t** oid_info_p, guint32** pprid_subids_p, guint* pprid_subids_len_p);
|
2005-09-18 20:04:04 +00:00
|
|
|
static int dissect_cops_pr_object_data(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree,
|
2011-04-21 22:13:56 +00:00
|
|
|
guint8 s_num, guint8 s_type, int len,
|
|
|
|
oid_info_t** oid_info_p, guint32** pprid_subids, guint* pprid_subids_len);
|
2002-02-22 11:16:13 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Added for PacketCable */
|
2005-07-28 07:53:38 +00:00
|
|
|
static proto_tree *info_to_cops_subtree(tvbuff_t *, proto_tree *, int, int, const char *);
|
|
|
|
static proto_item *info_to_display(tvbuff_t *, proto_item *, int, int, const char *, const value_string *, int, gint *);
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2004-10-14 07:42:31 +00:00
|
|
|
static void cops_transaction_id(tvbuff_t *, packet_info *, proto_tree *, guint8, guint, guint32);
|
2004-10-07 19:22:54 +00:00
|
|
|
static void cops_subscriber_id_v4(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_subscriber_id_v6(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_gate_id(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_activity_count(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_gate_specs(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_remote_gate_info(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_packetcable_reason(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_packetcable_error(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_event_generation_info(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
static void cops_surveillance_parameters(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
|
|
|
|
static void cops_amid(tvbuff_t *, proto_tree *, guint, guint32);
|
|
|
|
|
|
|
|
static void decode_docsis_request_transmission_policy(tvbuff_t *tvb, guint32 offset, proto_tree *tree, gint hf);
|
|
|
|
|
2004-10-14 07:42:31 +00:00
|
|
|
static void cops_analyze_packetcable_dqos_obj(tvbuff_t *, packet_info *, proto_tree *, guint8, guint32);
|
|
|
|
static void cops_analyze_packetcable_mm_obj(tvbuff_t *, packet_info *, proto_tree *, guint8, guint32);
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
static gboolean cops_packetcable = TRUE;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
/* End of addition for PacketCable */
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2007-08-26 20:16:35 +00:00
|
|
|
/* COPS PR Tags */
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
#define COPS_IPA 0 /* IP Address */
|
|
|
|
#define COPS_U32 2 /* Unsigned 32*/
|
|
|
|
#define COPS_TIT 3 /* TimeTicks */
|
|
|
|
#define COPS_OPQ 4 /* Opaque */
|
|
|
|
#define COPS_I64 10 /* Integer64 */
|
|
|
|
#define COPS_U64 11 /* Uinteger64 */
|
2007-08-26 20:16:35 +00:00
|
|
|
|
|
|
|
/* COPS PR Types */
|
|
|
|
|
|
|
|
#define COPS_NULL 0
|
|
|
|
#define COPS_INTEGER 1 /* l */
|
|
|
|
#define COPS_OCTETSTR 2 /* c */
|
|
|
|
#define COPS_OBJECTID 3 /* ul */
|
|
|
|
#define COPS_IPADDR 4 /* uc */
|
|
|
|
#define COPS_UNSIGNED32 5 /* ul */
|
|
|
|
#define COPS_TIMETICKS 7 /* ul */
|
|
|
|
#define COPS_OPAQUE 8 /* c */
|
|
|
|
#define COPS_INTEGER64 10 /* ll */
|
|
|
|
#define COPS_UNSIGNED64 11 /* ull */
|
|
|
|
|
|
|
|
typedef struct _COPS_CNV COPS_CNV;
|
|
|
|
|
|
|
|
struct _COPS_CNV
|
|
|
|
{
|
2013-03-15 16:39:30 +00:00
|
|
|
guint ber_class;
|
2011-04-21 22:13:56 +00:00
|
|
|
guint tag;
|
|
|
|
gint syntax;
|
|
|
|
const gchar *name;
|
|
|
|
int* hfidp;
|
2007-08-26 20:16:35 +00:00
|
|
|
};
|
|
|
|
|
2012-09-23 00:12:14 +00:00
|
|
|
static const true_false_string tfs_upstream_downstream = { "Upstream", "Downstream" };
|
|
|
|
|
2007-08-26 20:16:35 +00:00
|
|
|
static COPS_CNV CopsCnv [] =
|
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
{BER_CLASS_UNI, BER_UNI_TAG_NULL, COPS_NULL, "NULL" , &hf_cops_epd_null},
|
|
|
|
{BER_CLASS_UNI, BER_UNI_TAG_INTEGER, COPS_INTEGER, "INTEGER", &hf_cops_epd_int},
|
|
|
|
{BER_CLASS_UNI, BER_UNI_TAG_OCTETSTRING, COPS_OCTETSTR, "OCTET STRING", &hf_cops_epd_octets},
|
|
|
|
{BER_CLASS_UNI, BER_UNI_TAG_OID, COPS_OBJECTID, "OBJECTID", &hf_cops_epd_oid},
|
|
|
|
{BER_CLASS_APP, COPS_IPA, COPS_IPADDR, "IPADDR", &hf_cops_epd_ipv4},
|
|
|
|
{BER_CLASS_APP, COPS_U32, COPS_UNSIGNED32,"UNSIGNED32", &hf_cops_epd_u32},
|
|
|
|
{BER_CLASS_APP, COPS_TIT, COPS_TIMETICKS, "TIMETICKS", &hf_cops_epd_ticks},
|
|
|
|
{BER_CLASS_APP, COPS_OPQ, COPS_OPAQUE, "OPAQUE", &hf_cops_epd_opaque},
|
|
|
|
{BER_CLASS_APP, COPS_I64, COPS_INTEGER64, "INTEGER64", &hf_cops_epd_i64},
|
|
|
|
{BER_CLASS_APP, COPS_U64, COPS_UNSIGNED64, "UNSIGNED64", &hf_cops_epd_u64},
|
|
|
|
{BER_CLASS_ANY, 0, -1, NULL, NULL}
|
2007-08-26 20:16:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int cops_tag_cls2syntax ( guint tag, guint cls ) {
|
2011-04-21 22:13:56 +00:00
|
|
|
COPS_CNV *cnv;
|
|
|
|
|
|
|
|
|
|
|
|
cnv = CopsCnv;
|
|
|
|
while (cnv->syntax != -1)
|
|
|
|
{
|
2013-03-15 16:39:30 +00:00
|
|
|
if (cnv->tag == tag && cnv->ber_class == cls)
|
2011-04-21 22:13:56 +00:00
|
|
|
{
|
|
|
|
return *(cnv->hfidp);
|
|
|
|
}
|
|
|
|
cnv++;
|
|
|
|
}
|
|
|
|
return hf_cops_epd_unknown;
|
2007-08-26 20:16:35 +00:00
|
|
|
}
|
|
|
|
|
Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly. Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.
Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.
Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.
Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.
Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.
svn path=/trunk/; revision=5394
2002-05-05 00:16:38 +00:00
|
|
|
static guint
|
2006-10-31 09:29:07 +00:00
|
|
|
get_cops_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
|
Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,
extracting PDUs from it and possibly doing reassembly. Make the COPS,
DNS, DSI, Gryphon, and SCCP dissectors use it.
Add "set_actual_length()", "tcp_dissect_pdus()",
"decode_boolean_bitfield()", "decode_numeric_bitfield()", and
"decode_enumerated_bitfield()" to the list of routines available to
dissectors on platforms where routines in the main program aren't
available to dynamically-loaded code.
Declare routines in "to_str.h" as "extern"; as I remember, that's
necessary to allow the "decode_XXX_bitfield()" routines declared therein
to be made available to plugins as per the above.
Note that new exported routines should be added to the end of the table
if that's the only change being made to the table.
Create a new "plugin_api_decls.h" header file, used to declare both the
"p_" variables and the "p_" structure members in the routine-exporting
mechanism; this reduces the number of places you have to change to
change the list of exported routines.
svn path=/trunk/; revision=5394
2002-05-05 00:16:38 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
/*
|
|
|
|
* Get the length of the COPS message.
|
|
|
|
*/
|
|
|
|
return tvb_get_ntohl(tvb, offset + 4);
|
2002-02-22 11:16:13 +00:00
|
|
|
}
|
|
|
|
|
2013-11-09 17:46:28 +00:00
|
|
|
static int
|
|
|
|
dissect_cops_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
2000-06-07 22:57:45 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
guint8 op_code;
|
|
|
|
guint16 client_type;
|
|
|
|
int object_len;
|
2012-07-11 20:44:22 +00:00
|
|
|
proto_item *ti, *tv;
|
|
|
|
proto_tree *cops_tree, *ver_flags_tree;
|
|
|
|
guint32 msg_len;
|
|
|
|
guint32 offset = 0;
|
|
|
|
guint8 ver_flags;
|
|
|
|
gint garbage;
|
2013-07-30 13:15:25 +00:00
|
|
|
guint32 handle_value = 0;
|
|
|
|
|
|
|
|
/* variables for Request/Response tracking */
|
|
|
|
guint i;
|
|
|
|
gboolean is_solicited, is_request, is_response;
|
|
|
|
conversation_t *conversation;
|
|
|
|
cops_conv_info_t *cops_conv_info;
|
|
|
|
cops_call_t *cops_call;
|
|
|
|
GPtrArray* pdus_array;
|
|
|
|
nstime_t delta;
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "COPS");
|
|
|
|
col_clear(pinfo->cinfo, COL_INFO);
|
|
|
|
|
|
|
|
op_code = tvb_get_guint8(tvb, 1);
|
|
|
|
col_add_fstr(pinfo->cinfo, COL_INFO, "COPS %s",
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(op_code, cops_op_code_vals, "Unknown Op Code"));
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
/* Currently used by PacketCable */
|
|
|
|
client_type = tvb_get_ntohs(tvb, 2);
|
|
|
|
|
2012-07-11 20:44:22 +00:00
|
|
|
ti = proto_tree_add_item(tree, proto_cops, tvb, offset, -1, ENC_NA);
|
|
|
|
cops_tree = proto_item_add_subtree(ti, ett_cops);
|
|
|
|
|
|
|
|
/* Version and flags share the same byte, put them in a subtree */
|
|
|
|
ver_flags = tvb_get_guint8(tvb, offset);
|
2013-07-30 13:15:25 +00:00
|
|
|
is_solicited = (lo_nibble(ver_flags) == 0x01);
|
2012-07-11 20:44:22 +00:00
|
|
|
tv = proto_tree_add_uint_format(cops_tree, hf_cops_ver_flags, tvb, offset, 1,
|
|
|
|
ver_flags, "Version: %u, Flags: %s",
|
|
|
|
hi_nibble(ver_flags),
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(lo_nibble(ver_flags), cops_flags_vals, "Unknown"));
|
2012-07-11 20:44:22 +00:00
|
|
|
ver_flags_tree = proto_item_add_subtree(tv, ett_cops_ver_flags);
|
|
|
|
proto_tree_add_uint(ver_flags_tree, hf_cops_version, tvb, offset, 1, ver_flags);
|
|
|
|
proto_tree_add_uint(ver_flags_tree, hf_cops_flags, tvb, offset, 1, ver_flags);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(cops_tree, hf_cops_op_code, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
offset ++;
|
|
|
|
proto_tree_add_item(cops_tree, hf_cops_client_type, tvb, offset, 2, ENC_BIG_ENDIAN);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
msg_len = tvb_get_ntohl(tvb, offset);
|
|
|
|
proto_tree_add_uint(cops_tree, hf_cops_msg_len, tvb, offset, 4, msg_len);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
while (tvb_reported_length_remaining(tvb, offset) >= COPS_OBJECT_HDR_SIZE) {
|
2013-07-30 13:15:25 +00:00
|
|
|
object_len = dissect_cops_object(tvb, pinfo, op_code, offset, cops_tree, client_type, &handle_value);
|
2012-07-11 20:44:22 +00:00
|
|
|
if (object_len < 0)
|
2013-11-09 17:46:28 +00:00
|
|
|
return offset;
|
2012-07-11 20:44:22 +00:00
|
|
|
offset += object_len;
|
2003-09-08 19:40:10 +00:00
|
|
|
}
|
2012-07-11 20:44:22 +00:00
|
|
|
|
2014-06-19 17:18:16 +00:00
|
|
|
garbage = tvb_length_remaining(tvb, offset);
|
2013-08-24 01:25:14 +00:00
|
|
|
if (garbage > 0) {
|
|
|
|
proto_tree_add_expert_format(tree, pinfo, &ei_cops_trailing_garbage, tvb, offset, garbage, "Trailing garbage: %d byte%s", garbage, plurality(garbage, "", "s"));
|
|
|
|
}
|
2013-07-30 13:15:25 +00:00
|
|
|
|
|
|
|
/* Start request/response matching */
|
|
|
|
|
|
|
|
/* handle is 0(or not present), and op_code doesn't allow null handle, return */
|
|
|
|
/* TODO, add expert info for this abnormal */
|
|
|
|
if (handle_value == 0 &&
|
|
|
|
( op_code != COPS_MSG_SSQ &&
|
|
|
|
op_code != COPS_MSG_OPN &&
|
|
|
|
op_code != COPS_MSG_CAT &&
|
|
|
|
op_code != COPS_MSG_CC &&
|
|
|
|
op_code != COPS_MSG_KA &&
|
|
|
|
op_code != COPS_MSG_SSC) ) {
|
2013-11-09 17:46:28 +00:00
|
|
|
return offset;
|
2013-07-30 13:15:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
is_request =
|
|
|
|
op_code == COPS_MSG_REQ || /* expects DEC */
|
|
|
|
(op_code == COPS_MSG_DEC && !is_solicited) || /* expects RPT|DRQ */
|
|
|
|
/* COPS_MSG_RPT doesn't expect response */
|
|
|
|
/* COPS_MSG_DRQ doesn't expect response */
|
|
|
|
op_code == COPS_MSG_SSQ || /* expects RPT|DRQ|SSC */
|
|
|
|
op_code == COPS_MSG_OPN || /* expects CAT|CC */
|
|
|
|
/* COPS_MSG_CAT doesn't expect response */
|
|
|
|
/* COPS_MSG_CC doesn't expect response */
|
|
|
|
(op_code == COPS_MSG_KA && !is_solicited); /* expects KA from PDP, always initialized by PEP */
|
|
|
|
/* COPS_MSG_SSC doesn't expect response */
|
|
|
|
|
|
|
|
is_response =
|
|
|
|
/* COPS_MSG_REQ request only */
|
|
|
|
(op_code == COPS_MSG_DEC && is_solicited) || /* response only if reply REQ */
|
|
|
|
(op_code == COPS_MSG_RPT && is_solicited) || /* response only if reply DEC/SSQ */
|
|
|
|
(op_code == COPS_MSG_DRQ && is_solicited) || /* response only if reply DEC/SSQ */
|
|
|
|
/* COPS_MSG_SSQ request only */
|
|
|
|
/* COPS_MSG_OPN request only */
|
|
|
|
op_code == COPS_MSG_CAT || /* response for OPN */
|
|
|
|
(op_code == COPS_MSG_CC && is_solicited) || /* response for OPN */
|
|
|
|
(op_code == COPS_MSG_KA && is_solicited) || /* response for KA from PEP */
|
|
|
|
op_code == COPS_MSG_SSC; /* response for SSQ */
|
|
|
|
|
|
|
|
conversation = find_or_create_conversation(pinfo);
|
|
|
|
cops_conv_info = (cops_conv_info_t *)conversation_get_proto_data(conversation, proto_cops);
|
|
|
|
if (!cops_conv_info) {
|
|
|
|
cops_conv_info = (cops_conv_info_t *)wmem_alloc(wmem_file_scope(), sizeof(cops_conv_info_t));
|
|
|
|
|
2014-04-28 21:21:05 +00:00
|
|
|
cops_conv_info->pdus_tree = wmem_map_new(wmem_file_scope(), g_direct_hash, g_direct_equal);
|
2013-07-30 13:15:25 +00:00
|
|
|
conversation_add_proto_data(conversation, proto_cops, cops_conv_info);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( is_request ||
|
|
|
|
(op_code == COPS_MSG_DEC && is_solicited) ) { /* DEC as response for REQ is considered as request, because it expects RPT|DRQ */
|
|
|
|
|
2014-04-28 21:21:05 +00:00
|
|
|
pdus_array = (GPtrArray *)wmem_map_lookup(cops_conv_info->pdus_tree, GUINT_TO_POINTER(handle_value));
|
2013-07-30 13:15:25 +00:00
|
|
|
if (pdus_array == NULL) { /* This is the first request we've seen with this handle_value */
|
|
|
|
pdus_array = g_ptr_array_new();
|
2014-04-28 21:21:05 +00:00
|
|
|
wmem_map_insert(cops_conv_info->pdus_tree, GUINT_TO_POINTER(handle_value), pdus_array);
|
2013-07-30 13:15:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!pinfo->fd->flags.visited) {
|
2013-09-13 17:25:54 +00:00
|
|
|
cops_call = wmem_new(wmem_file_scope(), cops_call_t);
|
2013-07-30 13:15:25 +00:00
|
|
|
cops_call->op_code = op_code;
|
|
|
|
cops_call->solicited = is_solicited;
|
|
|
|
cops_call->req_num = PINFO_FD_NUM(pinfo);
|
|
|
|
cops_call->rsp_num = 0;
|
|
|
|
cops_call->req_time = pinfo->fd->abs_ts;
|
|
|
|
g_ptr_array_add(pdus_array, cops_call);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
for (i=0; i < pdus_array->len; i++) {
|
|
|
|
cops_call = (cops_call_t*)g_ptr_array_index(pdus_array, i);
|
|
|
|
if ( cops_call->req_num == PINFO_FD_NUM(pinfo)
|
|
|
|
&& cops_call->rsp_num != 0) {
|
|
|
|
ti = proto_tree_add_uint_format(cops_tree, hf_cops_response_in, tvb, 0, 0, cops_call->rsp_num,
|
|
|
|
"Response to this request is in frame %u", cops_call->rsp_num);
|
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_response) {
|
2014-04-28 21:21:05 +00:00
|
|
|
pdus_array = (GPtrArray *)wmem_map_lookup(cops_conv_info->pdus_tree, GUINT_TO_POINTER(handle_value));
|
2013-10-13 19:56:52 +00:00
|
|
|
|
2013-07-30 13:15:25 +00:00
|
|
|
if (pdus_array == NULL) /* There's no request with this handle value */
|
2013-11-09 17:46:28 +00:00
|
|
|
return offset;
|
2013-07-30 13:15:25 +00:00
|
|
|
|
|
|
|
if (!pinfo->fd->flags.visited) {
|
|
|
|
for (i=0; i < pdus_array->len; i++) {
|
|
|
|
cops_call = (cops_call_t*)g_ptr_array_index(pdus_array, i);
|
|
|
|
|
|
|
|
if (nstime_cmp(&pinfo->fd->abs_ts, &cops_call->req_time) <= 0 || cops_call->rsp_num != 0)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (
|
|
|
|
( (cops_call->op_code == COPS_MSG_REQ) &&
|
|
|
|
(op_code == COPS_MSG_DEC && is_solicited) ) ||
|
|
|
|
( (cops_call->op_code == COPS_MSG_DEC) &&
|
|
|
|
( (op_code == COPS_MSG_RPT && is_solicited) ||
|
|
|
|
(op_code == COPS_MSG_DRQ && is_solicited) ) ) ||
|
|
|
|
( (cops_call->op_code == COPS_MSG_SSQ) &&
|
|
|
|
( (op_code == COPS_MSG_RPT && is_solicited) ||
|
|
|
|
(op_code == COPS_MSG_DRQ && is_solicited) ||
|
|
|
|
(op_code == COPS_MSG_SSC) ) ) ||
|
|
|
|
( (cops_call->op_code == COPS_MSG_OPN) &&
|
|
|
|
(op_code == COPS_MSG_CAT ||
|
|
|
|
op_code == COPS_MSG_CC) ) ||
|
|
|
|
( (cops_call->op_code == COPS_MSG_KA && !(cops_call->solicited)) &&
|
|
|
|
(op_code == COPS_MSG_KA && is_solicited) ) ) {
|
|
|
|
cops_call->rsp_num = PINFO_FD_NUM(pinfo);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
for (i=0; i < pdus_array->len; i++) {
|
|
|
|
cops_call = (cops_call_t*)g_ptr_array_index(pdus_array, i);
|
|
|
|
if ( cops_call->rsp_num == PINFO_FD_NUM(pinfo) ) {
|
|
|
|
ti = proto_tree_add_uint_format(cops_tree, hf_cops_response_to, tvb, 0, 0, cops_call->req_num,
|
|
|
|
"Response to a request in frame %u", cops_call->req_num);
|
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
|
|
|
|
nstime_delta(&delta, &pinfo->fd->abs_ts, &cops_call->req_time);
|
|
|
|
ti = proto_tree_add_time(cops_tree, hf_cops_response_time, tvb, 0, 0, &delta);
|
|
|
|
PROTO_ITEM_SET_GENERATED(ti);
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-11-09 17:46:28 +00:00
|
|
|
|
2014-06-19 17:18:16 +00:00
|
|
|
return tvb_length(tvb);
|
2013-11-09 17:46:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code to actually dissect the packets */
|
|
|
|
static int
|
|
|
|
dissect_cops(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
|
|
|
|
{
|
|
|
|
tcp_dissect_pdus(tvb, pinfo, tree, cops_desegment, 8,
|
|
|
|
get_cops_pdu_len, dissect_cops_pdu, data);
|
2014-06-19 17:18:16 +00:00
|
|
|
return tvb_length(tvb);
|
2000-06-07 22:57:45 +00:00
|
|
|
}
|
|
|
|
|
2005-07-28 07:53:38 +00:00
|
|
|
static const char *cops_c_type_to_str(guint8 c_num, guint8 c_type)
|
2000-10-16 14:05:08 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
switch (c_num) {
|
|
|
|
case COPS_OBJ_HANDLE:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "Client Handle";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_IN_INT:
|
|
|
|
case COPS_OBJ_OUT_INT:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "IPv4 Address + Interface";
|
|
|
|
else if (c_type == 2)
|
|
|
|
return "IPv6 Address + Interface";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_DECISION:
|
|
|
|
case COPS_OBJ_LPDPDECISION:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "Decision Flags (Mandatory)";
|
|
|
|
else if (c_type == 2)
|
|
|
|
return "Stateless Data";
|
|
|
|
else if (c_type == 3)
|
|
|
|
return "Replacement Data";
|
|
|
|
else if (c_type == 4)
|
|
|
|
return "Client Specific Decision Data";
|
|
|
|
else if (c_type == 5)
|
|
|
|
return "Named Decision Data";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_CLIENTSI:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "Signaled ClientSI";
|
|
|
|
else if (c_type == 2)
|
|
|
|
return "Named ClientSI";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_KATIMER:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "Keep-alive timer value";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_PDPREDIRADDR:
|
|
|
|
case COPS_OBJ_LASTPDPADDR:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "IPv4 Address + TCP Port";
|
|
|
|
else if (c_type == 2)
|
|
|
|
return "IPv6 Address + TCP Port";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_ACCTTIMER:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "Accounting timer value";
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_INTEGRITY:
|
|
|
|
if (c_type == 1)
|
|
|
|
return "HMAC digest";
|
|
|
|
break;
|
|
|
|
}
|
2000-10-16 14:05:08 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
return "";
|
2002-02-22 11:16:13 +00:00
|
|
|
}
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2013-07-30 13:15:25 +00:00
|
|
|
static int dissect_cops_object(tvbuff_t *tvb, packet_info *pinfo, guint8 op_code, guint32 offset, proto_tree *tree, guint16 client_type, guint32* handle_value)
|
2002-02-22 11:16:13 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
int object_len, contents_len;
|
|
|
|
guint8 c_num, c_type;
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *obj_tree;
|
|
|
|
const char *type_str;
|
2003-09-08 19:40:10 +00:00
|
|
|
|
|
|
|
object_len = tvb_get_ntohs(tvb, offset);
|
|
|
|
if (object_len < COPS_OBJECT_HDR_SIZE) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Bogus! */
|
2013-08-24 01:25:14 +00:00
|
|
|
ti = proto_tree_add_uint(tree, hf_cops_obj_len, tvb, offset, 2, object_len);
|
2013-09-09 00:44:09 +00:00
|
|
|
expert_add_info_format(pinfo, ti, &ei_cops_bad_cops_object_length,
|
2013-08-24 01:25:14 +00:00
|
|
|
"Bad COPS object length: %u, should be at least %u",
|
|
|
|
object_len, COPS_OBJECT_HDR_SIZE);
|
2011-04-21 22:13:56 +00:00
|
|
|
return -1;
|
2003-09-08 19:40:10 +00:00
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
c_num = tvb_get_guint8(tvb, offset + 2);
|
|
|
|
c_type = tvb_get_guint8(tvb, offset + 3);
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
ti = proto_tree_add_uint_format(tree, hf_cops_obj_c_num, tvb, offset, object_len, c_num,
|
2012-08-10 22:55:02 +00:00
|
|
|
"%s: %s", val_to_str_const(c_num, cops_c_num_vals, "Unknown"),
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_c_type_to_str(c_num, c_type));
|
|
|
|
obj_tree = proto_item_add_subtree(ti, ett_cops_obj);
|
2003-09-08 19:40:10 +00:00
|
|
|
|
|
|
|
proto_tree_add_uint(obj_tree, hf_cops_obj_len, tvb, offset, 2, object_len);
|
|
|
|
offset += 2;
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(obj_tree, hf_cops_obj_c_num, tvb, offset, 1, c_num);
|
2003-09-08 19:40:10 +00:00
|
|
|
offset++;
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
type_str = cops_c_type_to_str(c_num, c_type);
|
|
|
|
proto_tree_add_uint_format_value(obj_tree, hf_cops_obj_c_type, tvb, offset, 1, c_type,
|
|
|
|
"%s%s%u%s",
|
|
|
|
type_str,
|
|
|
|
strlen(type_str) ? " (" : "",
|
|
|
|
c_type,
|
|
|
|
strlen(type_str) ? ")" : "");
|
2003-09-08 19:40:10 +00:00
|
|
|
offset++;
|
|
|
|
|
|
|
|
contents_len = object_len - COPS_OBJECT_HDR_SIZE;
|
2013-07-30 13:15:25 +00:00
|
|
|
dissect_cops_object_data(tvb, pinfo, offset, obj_tree, op_code, client_type, c_num, c_type, contents_len, handle_value);
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2010-07-19 13:55:12 +00:00
|
|
|
/* Pad to 32bit boundary */
|
2003-09-08 19:40:10 +00:00
|
|
|
if (object_len % sizeof (guint32))
|
2012-12-26 05:57:06 +00:00
|
|
|
object_len += ((int)sizeof (guint32) - object_len % (int)sizeof (guint32));
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
return object_len;
|
2000-06-07 22:57:45 +00:00
|
|
|
}
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
static void dissect_cops_pr_objects(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree, int pr_len,
|
|
|
|
oid_info_t** oid_info_p, guint32** pprid_subids_p, guint* pprid_subids_len_p)
|
2000-10-16 14:05:08 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
int object_len, contents_len;
|
|
|
|
guint8 s_num, s_type;
|
|
|
|
const char *type_str;
|
|
|
|
int ret;
|
|
|
|
proto_tree *cops_pr_tree, *obj_tree;
|
|
|
|
proto_item *ti;
|
|
|
|
|
|
|
|
cops_pr_tree = proto_item_add_subtree(tree, ett_cops_pr_obj);
|
|
|
|
|
|
|
|
while (pr_len >= COPS_OBJECT_HDR_SIZE) {
|
|
|
|
object_len = tvb_get_ntohs(tvb, offset);
|
|
|
|
if (object_len < COPS_OBJECT_HDR_SIZE) {
|
|
|
|
/* Bogus! */
|
2013-08-24 01:25:14 +00:00
|
|
|
ti = proto_tree_add_uint(cops_pr_tree, hf_cops_obj_len, tvb, offset, 2, object_len);
|
2013-09-09 00:44:09 +00:00
|
|
|
expert_add_info_format(pinfo, ti, &ei_cops_bad_cops_pr_object_length,
|
2013-08-24 01:25:14 +00:00
|
|
|
"Bad COPS-PR object length: %u, should be at least %u",
|
|
|
|
object_len, COPS_OBJECT_HDR_SIZE);
|
2011-04-21 22:13:56 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
s_num = tvb_get_guint8(tvb, offset + 2);
|
|
|
|
|
|
|
|
ti = proto_tree_add_uint_format(cops_pr_tree, hf_cops_obj_s_num, tvb, offset, object_len, s_num,
|
2012-08-10 22:55:02 +00:00
|
|
|
"%s", val_to_str_const(s_num, cops_s_num_vals, "Unknown"));
|
2011-04-21 22:13:56 +00:00
|
|
|
obj_tree = proto_item_add_subtree(ti, ett_cops_pr_obj);
|
|
|
|
|
|
|
|
proto_tree_add_uint(obj_tree, hf_cops_obj_len, tvb, offset, 2, object_len);
|
|
|
|
offset += 2;
|
|
|
|
pr_len -= 2;
|
|
|
|
|
|
|
|
proto_tree_add_uint(obj_tree, hf_cops_obj_s_num, tvb, offset, 1, s_num);
|
|
|
|
offset++;
|
|
|
|
pr_len--;
|
|
|
|
|
|
|
|
s_type = tvb_get_guint8(tvb, offset);
|
2012-08-10 22:55:02 +00:00
|
|
|
type_str = val_to_str_const(s_type, cops_s_type_vals, "Unknown");
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_uint_format_value(obj_tree, hf_cops_obj_s_type, tvb, offset, 1, s_type,
|
|
|
|
"%s%s%u%s",
|
|
|
|
type_str,
|
|
|
|
strlen(type_str) ? " (" : "",
|
|
|
|
s_type,
|
|
|
|
strlen(type_str) ? ")" : "");
|
2011-04-21 22:13:56 +00:00
|
|
|
offset++;
|
|
|
|
pr_len--;
|
|
|
|
|
|
|
|
contents_len = object_len - COPS_OBJECT_HDR_SIZE;
|
|
|
|
ret = dissect_cops_pr_object_data(tvb, pinfo, offset, obj_tree, s_num, s_type, contents_len,
|
|
|
|
oid_info_p, pprid_subids_p, pprid_subids_len_p);
|
|
|
|
if (ret < 0)
|
|
|
|
break;
|
|
|
|
|
|
|
|
/* Pad to 32bit boundary */
|
|
|
|
if (object_len % sizeof (guint32))
|
2012-12-26 05:57:06 +00:00
|
|
|
object_len += ((int)sizeof (guint32) - object_len % (int)sizeof (guint32));
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
pr_len -= object_len - COPS_OBJECT_HDR_SIZE;
|
|
|
|
offset += object_len - COPS_OBJECT_HDR_SIZE;
|
2003-09-08 19:40:10 +00:00
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
2000-10-16 14:05:08 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
static void dissect_cops_object_data(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree,
|
2013-07-30 13:15:25 +00:00
|
|
|
guint8 op_code, guint16 client_type, guint8 c_num, guint8 c_type, int len, guint32* handle_value)
|
2011-04-21 22:13:56 +00:00
|
|
|
{
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *r_type_tree, *itf_tree, *reason_tree, *dec_tree, *error_tree, *clientsi_tree, *pdp_tree;
|
2013-08-24 01:25:14 +00:00
|
|
|
guint16 r_type, m_type, reason, reason_sub, cmd_code, cmd_flags, error, error_sub,
|
|
|
|
tcp_port, katimer, accttimer;
|
2014-06-24 00:39:28 +00:00
|
|
|
guint32 ifindex;
|
2011-04-21 22:13:56 +00:00
|
|
|
struct e_in6_addr ipv6addr;
|
|
|
|
oid_info_t* oid_info = NULL;
|
|
|
|
guint32* pprid_subids = NULL;
|
|
|
|
guint pprid_subids_len = 0;
|
|
|
|
|
|
|
|
switch (c_num) {
|
2013-07-30 13:15:25 +00:00
|
|
|
case COPS_OBJ_HANDLE: /* handle is a variable-length field, however 32bit seems enough for most of the applications */
|
|
|
|
if (len >= 4) {
|
|
|
|
offset += (len-4); /* for handle longer than 32bit, only take lowest 32 bits as handle */
|
|
|
|
*handle_value = tvb_get_ntohl(tvb, offset);
|
|
|
|
proto_tree_add_item(tree, hf_cops_handle, tvb, offset, 4, ENC_BIG_ENDIAN);
|
|
|
|
}
|
|
|
|
break;
|
2011-04-21 22:13:56 +00:00
|
|
|
case COPS_OBJ_CONTEXT:
|
|
|
|
r_type = tvb_get_ntohs(tvb, offset);
|
|
|
|
m_type = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
r_type_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_r_type_flags, NULL,
|
|
|
|
"Contents: R-Type: %s, M-Type: %u",
|
|
|
|
val_to_str_const(r_type, cops_r_type_vals, "Unknown"), m_type);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
proto_tree_add_uint(r_type_tree, hf_cops_r_type_flags, tvb, offset, 2, r_type);
|
|
|
|
offset += 2;
|
|
|
|
proto_tree_add_uint(r_type_tree, hf_cops_m_type_flags, tvb, offset, 2, m_type);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_IN_INT:
|
|
|
|
case COPS_OBJ_OUT_INT:
|
|
|
|
if (c_type == 1) { /* IPv4 */
|
|
|
|
ifindex = tvb_get_ntohl(tvb, offset + 4);
|
2014-06-24 00:39:28 +00:00
|
|
|
itf_tree = proto_tree_add_subtree_format(tree, tvb, offset, 8, ett_cops_itf, NULL,
|
|
|
|
"Contents: IPv4 address %s, ifIndex: %u",
|
|
|
|
tvb_ip_to_str(tvb, offset), ifindex);
|
|
|
|
proto_tree_add_item(itf_tree,
|
2011-04-21 22:13:56 +00:00
|
|
|
(c_num == COPS_OBJ_IN_INT) ? hf_cops_in_int_ipv4 : hf_cops_out_int_ipv4,
|
2014-06-24 00:39:28 +00:00
|
|
|
tvb, offset, 4, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 4;
|
|
|
|
} else if (c_type == 2) { /* IPv6 */
|
2012-12-26 05:57:06 +00:00
|
|
|
ifindex = tvb_get_ntohl(tvb, offset + (int)sizeof ipv6addr);
|
2014-06-24 00:39:28 +00:00
|
|
|
itf_tree = proto_tree_add_subtree_format(tree, tvb, offset, 20, ett_cops_itf, NULL,
|
|
|
|
"Contents: IPv6 address %s, ifIndex: %u",
|
|
|
|
tvb_ip6_to_str(tvb, offset), ifindex);
|
|
|
|
proto_tree_add_item(itf_tree,
|
2011-04-21 22:13:56 +00:00
|
|
|
(c_num == COPS_OBJ_IN_INT) ? hf_cops_in_int_ipv6 : hf_cops_out_int_ipv6,
|
2014-06-24 00:39:28 +00:00
|
|
|
tvb, offset, 16, ENC_NA);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 16;
|
|
|
|
} else {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
proto_tree_add_uint(itf_tree, hf_cops_int_ifindex, tvb, offset, 4, ifindex);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_REASON:
|
|
|
|
reason = tvb_get_ntohs(tvb, offset);
|
|
|
|
reason_sub = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
reason_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_reason, NULL,
|
|
|
|
"Contents: Reason-Code: %s, Reason Sub-code: 0x%04x",
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(reason, cops_reason_vals, "<Unknown value>"), reason_sub);
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(reason_tree, hf_cops_reason, tvb, offset, 2, reason);
|
|
|
|
offset += 2;
|
2013-08-24 01:25:14 +00:00
|
|
|
if (reason == 13) { /* RFC 2748 2.2.5 */
|
2014-06-24 00:39:28 +00:00
|
|
|
proto_tree_add_uint_format_value(reason_tree, hf_cops_reason_sub, tvb, offset, 2,
|
|
|
|
reason_sub, "Unknown object's C-Num %u, C-Type %u",
|
2011-04-21 22:13:56 +00:00
|
|
|
tvb_get_guint8(tvb, offset), tvb_get_guint8(tvb, offset + 1));
|
|
|
|
} else
|
|
|
|
proto_tree_add_uint(reason_tree, hf_cops_reason_sub, tvb, offset, 2, reason_sub);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_DECISION:
|
|
|
|
case COPS_OBJ_LPDPDECISION:
|
|
|
|
if (c_type == 1) {
|
|
|
|
cmd_code = tvb_get_ntohs(tvb, offset);
|
|
|
|
cmd_flags = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
dec_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_decision, NULL, "Contents: Command-Code: %s, Flags: %s",
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(cmd_code, cops_dec_cmd_code_vals, "<Unknown value>"),
|
|
|
|
val_to_str_const(cmd_flags, cops_dec_cmd_flag_vals, "<Unknown flag>"));
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(dec_tree, hf_cops_dec_cmd_code, tvb, offset, 2, cmd_code);
|
|
|
|
offset += 2;
|
|
|
|
proto_tree_add_uint(dec_tree, hf_cops_dec_flags, tvb, offset, 2, cmd_flags);
|
|
|
|
} else if (c_type == 5) { /*COPS-PR Data*/
|
2014-06-24 00:39:28 +00:00
|
|
|
dec_tree = proto_tree_add_subtree_format(tree, tvb, offset, len, ett_cops_decision, NULL, "Contents: %d bytes", len);
|
2011-04-21 22:13:56 +00:00
|
|
|
dissect_cops_pr_objects(tvb, pinfo, offset, dec_tree, len, &oid_info, &pprid_subids, &pprid_subids_len);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* PacketCable : Analyze the remaining data if available */
|
|
|
|
if (client_type == COPS_CLIENT_PC_DQOS && c_type == 4) {
|
|
|
|
cops_analyze_packetcable_dqos_obj(tvb, pinfo, tree, op_code, offset);
|
|
|
|
} else if (client_type == COPS_CLIENT_PC_MM && c_type == 4) {
|
|
|
|
cops_analyze_packetcable_mm_obj(tvb, pinfo, tree, op_code, offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_ERROR:
|
|
|
|
if (c_type != 1)
|
|
|
|
break;
|
|
|
|
|
|
|
|
error = tvb_get_ntohs(tvb, offset);
|
|
|
|
error_sub = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
error_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_error, NULL,
|
|
|
|
"Contents: Error-Code: %s, Error Sub-code: 0x%04x",
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(error, cops_error_vals, "<Unknown value>"), error_sub);
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(error_tree, hf_cops_error, tvb, offset, 2, error);
|
|
|
|
offset += 2;
|
2013-08-24 01:25:14 +00:00
|
|
|
if (error == 13) { /* RFC 2748 2.2.8 */
|
2014-06-24 00:39:28 +00:00
|
|
|
proto_tree_add_uint_format_value(error_tree, hf_cops_error_sub, tvb, offset, 2,
|
|
|
|
error_sub, "Unknown object's C-Num %u, C-Type %u",
|
2011-04-21 22:13:56 +00:00
|
|
|
tvb_get_guint8(tvb, offset), tvb_get_guint8(tvb, offset + 1));
|
|
|
|
} else
|
|
|
|
proto_tree_add_uint(error_tree, hf_cops_error_sub, tvb, offset, 2, error_sub);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_CLIENTSI:
|
|
|
|
|
|
|
|
/* For PacketCable */
|
|
|
|
if (client_type == COPS_CLIENT_PC_DQOS && c_type == 1) {
|
|
|
|
cops_analyze_packetcable_dqos_obj(tvb, pinfo, tree, op_code, offset);
|
|
|
|
break;
|
|
|
|
} else if (client_type == COPS_CLIENT_PC_MM && c_type == 1) {
|
|
|
|
cops_analyze_packetcable_mm_obj(tvb, pinfo, tree, op_code, offset);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (c_type != 2) /*Not COPS-PR data*/
|
|
|
|
break;
|
|
|
|
|
2014-06-24 00:39:28 +00:00
|
|
|
clientsi_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_clientsi, NULL, "Contents: %d bytes", len);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
dissect_cops_pr_objects(tvb, pinfo, offset, clientsi_tree, len, &oid_info, &pprid_subids, &pprid_subids_len);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_KATIMER:
|
|
|
|
if (c_type != 1)
|
|
|
|
break;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
katimer = tvb_get_ntohs(tvb, offset + 2);
|
|
|
|
if (katimer == 0) {
|
|
|
|
proto_tree_add_uint_format_value(tree, hf_cops_katimer, tvb, offset + 2, 2, katimer, "0 (infinity)");
|
|
|
|
} else {
|
|
|
|
proto_tree_add_item(tree, hf_cops_katimer, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
|
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
break;
|
|
|
|
case COPS_OBJ_PEPID:
|
|
|
|
if (c_type != 1)
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (tvb_strnlen(tvb, offset, len) == -1) {
|
2013-05-25 17:06:40 +00:00
|
|
|
ti = proto_tree_add_item(tree, hf_cops_pepid, tvb, offset, len, ENC_ASCII|ENC_NA);
|
|
|
|
expert_add_info(pinfo, ti, &ei_cops_pepid_not_null);
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
proto_tree_add_item(tree, hf_cops_pepid, tvb, offset,
|
2011-10-15 18:46:26 +00:00
|
|
|
tvb_strnlen(tvb, offset, len) + 1, ENC_ASCII|ENC_NA);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_REPORT_TYPE:
|
|
|
|
if (c_type != 1)
|
|
|
|
break;
|
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item(tree, hf_cops_report_type, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_PDPREDIRADDR:
|
|
|
|
case COPS_OBJ_LASTPDPADDR:
|
|
|
|
if (c_type == 1) { /* IPv4 */
|
|
|
|
tcp_port = tvb_get_ntohs(tvb, offset + 4 + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
pdp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 8, ett_cops_pdp, NULL,
|
|
|
|
"Contents: IPv4 address %s, TCP Port Number: %u",
|
|
|
|
tvb_ip_to_str(tvb, offset), tcp_port);
|
|
|
|
proto_tree_add_item(pdp_tree,
|
2011-04-21 22:13:56 +00:00
|
|
|
(c_num == COPS_OBJ_PDPREDIRADDR) ? hf_cops_pdprediraddr_ipv4 : hf_cops_lastpdpaddr_ipv4,
|
2014-06-24 00:39:28 +00:00
|
|
|
tvb, offset, 4, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 4;
|
|
|
|
} else if (c_type == 2) { /* IPv6 */
|
2012-12-26 05:57:06 +00:00
|
|
|
tcp_port = tvb_get_ntohs(tvb, offset + (int)sizeof ipv6addr + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
pdp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 20, ett_cops_pdp, NULL,
|
|
|
|
"Contents: IPv6 address %s, TCP Port Number: %u",
|
|
|
|
tvb_ip6_to_str(tvb, offset), tcp_port);
|
|
|
|
proto_tree_add_item(pdp_tree,
|
2011-04-21 22:13:56 +00:00
|
|
|
(c_num == COPS_OBJ_PDPREDIRADDR) ? hf_cops_pdprediraddr_ipv6 : hf_cops_lastpdpaddr_ipv6,
|
2014-06-24 00:39:28 +00:00
|
|
|
tvb, offset, 16, ENC_NA);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 16;
|
|
|
|
} else {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
offset += 2;
|
|
|
|
proto_tree_add_uint(pdp_tree, hf_cops_pdp_tcp_port, tvb, offset, 2, tcp_port);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_ACCTTIMER:
|
|
|
|
if (c_type != 1)
|
|
|
|
break;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
accttimer = tvb_get_ntohs(tvb, offset + 2);
|
|
|
|
if (accttimer == 0) {
|
|
|
|
proto_tree_add_uint_format_value(tree, hf_cops_accttimer, tvb, offset + 2, 2, accttimer,
|
|
|
|
"0 (there SHOULD be no unsolicited accounting updates)");
|
|
|
|
} else {
|
|
|
|
proto_tree_add_item(tree, hf_cops_accttimer, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
|
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
break;
|
|
|
|
case COPS_OBJ_INTEGRITY:
|
|
|
|
if (c_type != 1)
|
|
|
|
break; /* Not HMAC digest */
|
|
|
|
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item(tree, hf_cops_key_id, tvb, offset, 4, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_cops_seq_num, tvb, offset + 4, 4, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_text(tree, tvb, offset + 8 , len - 8, "Contents: Keyed Message Digest");
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_expert_format(tree, pinfo, &ei_cops_unknown_c_num, tvb, offset, len, "Unknown C-Num %d, Contents: %d bytes", c_num, len);
|
2011-04-21 22:13:56 +00:00
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
static guint redecode_oid(guint32* pprid_subids, guint pprid_subids_len, guint8* encoded_subids, guint encoded_len, guint32** subids_p) {
|
|
|
|
guint i;
|
|
|
|
guint n = 0;
|
|
|
|
guint32 subid = 0;
|
|
|
|
guint32* subids;
|
|
|
|
guint32* subid_overflow;
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
for (i=0; i<encoded_len; i++) { if (! (encoded_subids[i] & 0x80 )) n++; }
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2013-09-13 17:25:54 +00:00
|
|
|
*subids_p = subids = (guint32 *)wmem_alloc(wmem_packet_scope(), sizeof(guint32)*(n+pprid_subids_len));
|
2011-04-21 22:13:56 +00:00
|
|
|
subid_overflow = subids+n+pprid_subids_len;
|
|
|
|
for (i=0;i<pprid_subids_len;i++) subids[i] = pprid_subids[i];
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
subids += pprid_subids_len;
|
2003-09-08 19:40:10 +00:00
|
|
|
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
for (i=0; i<encoded_len; i++){
|
|
|
|
guint8 byte = encoded_subids[i];
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
subid <<= 7;
|
|
|
|
subid |= byte & 0x7F;
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
if (byte & 0x80) {
|
|
|
|
continue;
|
|
|
|
}
|
2003-09-08 19:40:10 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
DISSECTOR_ASSERT(subids < subid_overflow);
|
|
|
|
*subids++ = subid;
|
|
|
|
subid = 0;
|
2003-09-08 19:40:10 +00:00
|
|
|
}
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
return pprid_subids_len+n;
|
2002-04-28 00:43:16 +00:00
|
|
|
}
|
|
|
|
|
2008-02-14 23:10:29 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
static int dissect_cops_pr_object_data(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *tree,
|
|
|
|
guint8 s_num, guint8 s_type, int len,
|
|
|
|
oid_info_t** oid_info_p, guint32** pprid_subids, guint* pprid_subids_len) {
|
|
|
|
proto_tree *asn_tree, *gperror_tree, *cperror_tree;
|
|
|
|
guint16 gperror=0, gperror_sub=0, cperror=0, cperror_sub=0;
|
|
|
|
asn1_ctx_t actx;
|
|
|
|
|
|
|
|
memset(&actx,0,sizeof(actx));
|
|
|
|
actx.pinfo = pinfo;
|
|
|
|
|
|
|
|
switch (s_num){
|
|
|
|
case COPS_OBJ_PPRID: {
|
|
|
|
tvbuff_t* oid_tvb = NULL;
|
|
|
|
|
|
|
|
if (s_type != 1) /* Not Prefix Provisioning Instance Identifier (PPRID) */
|
|
|
|
break;
|
|
|
|
/* Never tested this branch */
|
2014-06-24 00:39:28 +00:00
|
|
|
asn_tree = proto_tree_add_subtree(tree, tvb, offset, len, ett_cops_asn1, NULL, "Contents:");
|
2011-04-21 22:13:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
dissect_ber_object_identifier(FALSE, &actx, asn_tree, tvb, offset, hf_cops_pprid_oid, &oid_tvb);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
if (oid_tvb) {
|
2012-07-15 14:31:40 +00:00
|
|
|
gint encoid_len;
|
|
|
|
guint8* encoid;
|
|
|
|
|
2014-06-19 17:18:16 +00:00
|
|
|
encoid_len = tvb_length_remaining(oid_tvb,0);
|
2012-07-15 14:31:40 +00:00
|
|
|
if (encoid_len > 0) {
|
2013-09-22 15:50:55 +00:00
|
|
|
encoid = (guint8*)tvb_memdup(wmem_packet_scope(),oid_tvb,0,encoid_len);
|
2015-01-17 19:11:29 +00:00
|
|
|
(*pprid_subids_len) = oid_encoded2subid(wmem_packet_scope(), encoid, encoid_len, pprid_subids);
|
2012-07-15 14:31:40 +00:00
|
|
|
}
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case COPS_OBJ_PRID: {
|
|
|
|
guint32* subids;
|
|
|
|
guint subids_len;
|
|
|
|
guint matched;
|
|
|
|
guint left;
|
|
|
|
gint8 ber_class;
|
|
|
|
gboolean ber_pc;
|
|
|
|
gint32 ber_tag;
|
|
|
|
guint encoid_len;
|
|
|
|
guint8* encoid;
|
|
|
|
oid_info_t* oid_info;
|
|
|
|
|
|
|
|
if (s_type != 1) break; /* Not Provisioning Instance Identifier (PRID) */
|
|
|
|
|
2014-06-24 00:39:28 +00:00
|
|
|
asn_tree = proto_tree_add_subtree(tree, tvb, offset, len, ett_cops_asn1, NULL, "Contents:");
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
offset = get_ber_identifier(tvb, offset, &ber_class, &ber_pc, &ber_tag);
|
|
|
|
offset = get_ber_length(tvb, offset, &encoid_len, NULL);
|
|
|
|
|
|
|
|
/* TODO: check pc, class and tag */
|
|
|
|
|
2013-09-22 15:50:55 +00:00
|
|
|
encoid = (guint8*)tvb_memdup(wmem_packet_scope(),tvb,offset,encoid_len);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
if (*pprid_subids) {
|
|
|
|
/* Never tested this branch */
|
|
|
|
subids_len = redecode_oid(*pprid_subids, *pprid_subids_len, encoid, encoid_len, &subids);
|
2015-01-17 19:11:29 +00:00
|
|
|
encoid_len = oid_subid2encoded(wmem_packet_scope(), subids_len, subids, &encoid);
|
2011-04-21 22:13:56 +00:00
|
|
|
} else {
|
2015-01-17 19:11:29 +00:00
|
|
|
subids_len = oid_encoded2subid(wmem_packet_scope(), encoid, encoid_len, &subids);
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
proto_tree_add_oid(asn_tree,hf_cops_prid_oid,tvb,offset,encoid_len,encoid);
|
|
|
|
|
|
|
|
oid_info = oid_get(subids_len, subids, &matched, &left);
|
|
|
|
|
|
|
|
/*
|
|
|
|
TODO: from RFC 3159 find-out how the values are mapped;
|
|
|
|
when instead of an oid for an xxEntry
|
|
|
|
we have one describing a scalar or something else;
|
|
|
|
what's below works in most cases but is not complete.
|
|
|
|
*/
|
|
|
|
if (left <= 1 && oid_info->kind == OID_KIND_ROW) {
|
|
|
|
*oid_info_p = oid_info;
|
|
|
|
} else {
|
|
|
|
*oid_info_p = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case COPS_OBJ_EPD: {
|
|
|
|
oid_info_t* oid_info;
|
|
|
|
guint end_offset = offset + len;
|
|
|
|
|
|
|
|
if (s_type != 1) break;/* Not Encoded Provisioning Instance Data (EPD) */
|
|
|
|
|
2014-06-24 00:39:28 +00:00
|
|
|
asn_tree = proto_tree_add_subtree(tree, tvb, offset, len, ett_cops_asn1, NULL, "Contents:");
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* XXX: LAZYNESS WARNING:
|
|
|
|
* We are assuming that for the first element in the sequence
|
|
|
|
* that describes an entry subid==1, and, that the subsequent elements
|
|
|
|
* use ++subid; This is true for all IETF's PIBs (and good sense
|
|
|
|
* indicates it should be this way) but AFAIK there's nothing in
|
|
|
|
* SMIv2 that imposes this restriction. -- a lazy lego
|
|
|
|
*/
|
|
|
|
|
|
|
|
if(*oid_info_p) {
|
|
|
|
if ((*oid_info_p)->kind == OID_KIND_ROW) {
|
2013-09-13 17:21:12 +00:00
|
|
|
oid_info = (oid_info_t *)wmem_tree_lookup32((*oid_info_p)->children,1);
|
2011-04-21 22:13:56 +00:00
|
|
|
} else {
|
|
|
|
oid_info = NULL;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
oid_info = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
while(offset < end_offset) {
|
|
|
|
gint8 ber_class;
|
|
|
|
gboolean ber_pc;
|
|
|
|
gint32 ber_tag;
|
|
|
|
guint32 ber_length;
|
|
|
|
gboolean ber_ind;
|
2012-05-11 16:38:08 +00:00
|
|
|
int hfid;
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
offset = get_ber_identifier(tvb, offset, &ber_class, &ber_pc, &ber_tag);
|
|
|
|
offset = get_ber_length(tvb, offset, &ber_length, &ber_ind);
|
|
|
|
|
|
|
|
if (oid_info) {
|
|
|
|
/*
|
|
|
|
* XXX: LAZYNESS WARNING:
|
|
|
|
* We are assuming that the value of the sequenced item is of
|
2011-10-27 14:50:20 +00:00
|
|
|
* the right class, the right type and the right length.
|
2011-04-21 22:13:56 +00:00
|
|
|
* We should check that to avoid throwing a Malformed packet and
|
|
|
|
* keep dissecting.
|
|
|
|
* We should verify the class and the tag match what we expect as well,
|
|
|
|
* but COPS and SNMP use different tags (&#@$!) so the typedata in oid_info_t
|
|
|
|
* does not work here.
|
|
|
|
* -- a lazy lego
|
|
|
|
*/
|
2012-05-11 16:38:08 +00:00
|
|
|
hfid = oid_info->value_hfid;
|
2013-09-13 17:21:12 +00:00
|
|
|
oid_info = (oid_info_t *)wmem_tree_lookup32((*oid_info_p)->children,oid_info->subid+1);
|
2012-05-11 16:38:08 +00:00
|
|
|
} else
|
|
|
|
hfid = cops_tag_cls2syntax( ber_tag, ber_class );
|
|
|
|
switch (proto_registrar_get_ftype(hfid)) {
|
|
|
|
|
|
|
|
case FT_INT8:
|
|
|
|
case FT_INT16:
|
|
|
|
case FT_INT24:
|
|
|
|
case FT_INT32:
|
|
|
|
case FT_INT64:
|
|
|
|
case FT_UINT8:
|
|
|
|
case FT_UINT16:
|
|
|
|
case FT_UINT24:
|
|
|
|
case FT_UINT32:
|
|
|
|
case FT_UINT64:
|
|
|
|
case FT_BOOLEAN:
|
|
|
|
case FT_FLOAT:
|
|
|
|
case FT_DOUBLE:
|
|
|
|
case FT_IPv4:
|
|
|
|
proto_tree_add_item(asn_tree,hfid,tvb,offset,ber_length,ENC_BIG_ENDIAN);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case FT_STRING:
|
2013-09-23 12:09:58 +00:00
|
|
|
proto_tree_add_item(asn_tree,hfid,tvb,offset,ber_length,ENC_ASCII|ENC_NA);
|
|
|
|
break;
|
2012-05-11 16:38:08 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
proto_tree_add_item(asn_tree,hfid,tvb,offset,ber_length,ENC_NA);
|
|
|
|
break;
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
offset += ber_length;
|
|
|
|
}
|
|
|
|
|
|
|
|
(*oid_info_p) = NULL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case COPS_OBJ_ERRPRID: {
|
|
|
|
if (s_type != 1) break; /*Not Error Provisioning Instance Identifier (ErrorPRID)*/
|
2008-02-14 23:10:29 +00:00
|
|
|
|
2014-06-24 00:39:28 +00:00
|
|
|
asn_tree = proto_tree_add_subtree(tree, tvb, offset, len, ett_cops_asn1, NULL, "Contents:");
|
2008-02-14 23:10:29 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
dissect_ber_object_identifier(FALSE, &actx, asn_tree, tvb, offset, hf_cops_errprid_oid, NULL);
|
2007-08-26 20:16:35 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case COPS_OBJ_GPERR:
|
|
|
|
if (s_type != 1) /* Not Global Provisioning Error Object (GPERR) */
|
|
|
|
break;
|
|
|
|
|
|
|
|
gperror = tvb_get_ntohs(tvb, offset);
|
|
|
|
gperror_sub = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
gperror_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_gperror, NULL,
|
|
|
|
"Contents: Error-Code: %s, Error Sub-code: 0x%04x",
|
2012-08-10 22:55:02 +00:00
|
|
|
val_to_str_const(gperror, cops_gperror_vals, "<Unknown value>"), gperror_sub);
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(gperror_tree, hf_cops_gperror, tvb, offset, 2, gperror);
|
|
|
|
offset += 2;
|
2013-08-24 01:25:14 +00:00
|
|
|
if (gperror == 13) { /* RFC 3084 4.4 */
|
2014-06-24 00:39:28 +00:00
|
|
|
proto_tree_add_uint_format_value(gperror_tree, hf_cops_gperror_sub, tvb, offset, 2,
|
|
|
|
gperror_sub, "Unknown object's C-Num %u, C-Type %u",
|
2011-04-21 22:13:56 +00:00
|
|
|
tvb_get_guint8(tvb, offset), tvb_get_guint8(tvb, offset + 1));
|
|
|
|
} else
|
|
|
|
proto_tree_add_uint(gperror_tree, hf_cops_gperror_sub, tvb, offset, 2, gperror_sub);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case COPS_OBJ_CPERR:
|
|
|
|
if (s_type != 1) /*Not PRC Class Provisioning Error Object (CPERR) */
|
|
|
|
break;
|
|
|
|
|
|
|
|
cperror = tvb_get_ntohs(tvb, offset);
|
|
|
|
cperror_sub = tvb_get_ntohs(tvb, offset + 2);
|
2014-06-24 00:39:28 +00:00
|
|
|
cperror_tree = proto_tree_add_subtree_format(tree, tvb, offset, 4, ett_cops_gperror, NULL,
|
|
|
|
"Contents: Error-Code: %s, Error Sub-code: 0x%04x",
|
|
|
|
val_to_str_const(gperror, cops_gperror_vals, "<Unknown value>"), gperror_sub);
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree_add_uint(cperror_tree, hf_cops_cperror, tvb, offset, 2, cperror);
|
|
|
|
offset += 2;
|
2013-08-24 01:25:14 +00:00
|
|
|
if (cperror == 13) { /* RFC 3084 4.5 */
|
2014-06-24 00:39:28 +00:00
|
|
|
proto_tree_add_uint_format_value(cperror_tree, hf_cops_cperror_sub, tvb, offset, 2, cperror_sub,
|
2011-04-21 22:13:56 +00:00
|
|
|
"Unknown object's S-Num %u, C-Type %u",
|
|
|
|
tvb_get_guint8(tvb, offset), tvb_get_guint8(tvb, offset + 1));
|
|
|
|
} else
|
|
|
|
proto_tree_add_uint(cperror_tree, hf_cops_cperror_sub, tvb, offset, 2, cperror_sub);
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
proto_tree_add_text(tree, tvb, offset, len, "Contents: %d bytes", len);
|
|
|
|
break;
|
|
|
|
}
|
2008-02-14 23:10:29 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
return 0;
|
2002-02-22 11:16:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* Register the protocol with Wireshark */
|
2000-06-07 22:57:45 +00:00
|
|
|
void proto_register_cops(void)
|
2002-08-28 21:04:11 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Setup list of header fields */
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_cops_ver_flags,
|
|
|
|
{ "Version and Flags", "cops.ver_flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
"Version and Flags in COPS Common Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_version,
|
|
|
|
{ "Version", "cops.version",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xF0,
|
|
|
|
"Version in COPS Common Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_flags,
|
|
|
|
{ "Flags", "cops.flags",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cops_flags_vals), 0x0F,
|
|
|
|
"Flags in COPS Common Header", HFILL }
|
|
|
|
},
|
2013-07-30 13:15:25 +00:00
|
|
|
{ &hf_cops_response_in,
|
|
|
|
{ "Response In", "cops.response_in",
|
|
|
|
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
|
|
|
|
"The response to this COPS request is in this frame", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_response_to,
|
|
|
|
{ "Request In", "cops.response_to",
|
|
|
|
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
|
|
|
|
"This is a response to the COPS request in this frame", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_response_time,
|
|
|
|
{ "Response Time", "cops.response_time",
|
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x0,
|
|
|
|
"The time between the Call and the Reply", HFILL }
|
|
|
|
},
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_op_code,
|
|
|
|
{ "Op Code", "cops.op_code",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cops_op_code_vals), 0x0,
|
|
|
|
"Op Code in COPS Common Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_client_type,
|
|
|
|
{ "Client Type", "cops.client_type",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_client_type_vals), 0x0,
|
|
|
|
"Client Type in COPS Common Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_msg_len,
|
|
|
|
{ "Message Length", "cops.msg_len",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Message Length in COPS Common Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_obj_len,
|
|
|
|
{ "Object Length", "cops.obj.len",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Object Length in COPS Object Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_obj_c_num,
|
|
|
|
{ "C-Num", "cops.c_num",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cops_c_num_vals), 0x0,
|
|
|
|
"C-Num in COPS Object Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_obj_c_type,
|
|
|
|
{ "C-Type", "cops.c_type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"C-Type in COPS Object Header", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_obj_s_num,
|
|
|
|
{ "S-Num", "cops.s_num",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cops_s_num_vals), 0x0,
|
|
|
|
"S-Num in COPS-PR Object Header", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_obj_s_type,
|
|
|
|
{ "S-Type", "cops.s_type",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"S-Type in COPS-PR Object Header", HFILL }
|
|
|
|
},
|
2013-07-30 13:15:25 +00:00
|
|
|
{ &hf_cops_handle,
|
|
|
|
{ "Handle", "cops.handle",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
"Handle in COPS Handle Object", HFILL }
|
|
|
|
},
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_r_type_flags,
|
|
|
|
{ "R-Type", "cops.context.r_type",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(cops_r_type_vals), 0xFFFF,
|
|
|
|
"R-Type in COPS Context Object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_m_type_flags,
|
|
|
|
{ "M-Type", "cops.context.m_type",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0xFFFF,
|
|
|
|
"M-Type in COPS Context Object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_in_int_ipv4,
|
|
|
|
{ "IPv4 address", "cops.in-int.ipv4",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"IPv4 address in COPS IN-Int object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_in_int_ipv6,
|
|
|
|
{ "IPv6 address", "cops.in-int.ipv6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"IPv6 address in COPS IN-Int object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_out_int_ipv4,
|
|
|
|
{ "IPv4 address", "cops.out-int.ipv4",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"IPv4 address in COPS OUT-Int object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_out_int_ipv6,
|
|
|
|
{ "IPv6 address", "cops.out-int.ipv6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"IPv6 address in COPS OUT-Int", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_int_ifindex,
|
|
|
|
{ "ifIndex", "cops.in-out-int.ifindex",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"If SNMP is supported, corresponds to MIB-II ifIndex", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_reason,
|
|
|
|
{ "Reason", "cops.reason",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_reason_vals), 0,
|
|
|
|
"Reason in Reason object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_reason_sub,
|
|
|
|
{ "Reason Sub-code", "cops.reason_sub",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"Reason Sub-code in Reason object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_dec_cmd_code,
|
|
|
|
{ "Command-Code", "cops.decision.cmd",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_dec_cmd_code_vals), 0,
|
|
|
|
"Command-Code in Decision/LPDP Decision object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_dec_flags,
|
|
|
|
{ "Flags", "cops.decision.flags",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(cops_dec_cmd_flag_vals), 0xffff,
|
|
|
|
"Flags in Decision/LPDP Decision object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_error,
|
|
|
|
{ "Error", "cops.error",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_error_vals), 0,
|
|
|
|
"Error in Error object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_error_sub,
|
|
|
|
{ "Error Sub-code", "cops.error_sub",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"Error Sub-code in Error object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_katimer,
|
|
|
|
{ "Contents: KA Timer Value", "cops.katimer.value",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"Keep-Alive Timer Value in KATimer object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pepid,
|
|
|
|
{ "Contents: PEP Id", "cops.pepid.id",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"PEP Id in PEPID object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_report_type,
|
|
|
|
{ "Contents: Report-Type", "cops.report_type",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_report_type_vals), 0,
|
|
|
|
"Report-Type in Report-Type object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pdprediraddr_ipv4,
|
|
|
|
{ "IPv4 address", "cops.pdprediraddr.ipv4",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"IPv4 address in COPS PDPRedirAddr object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pdprediraddr_ipv6,
|
|
|
|
{ "IPv6 address", "cops.pdprediraddr.ipv6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"IPv6 address in COPS PDPRedirAddr object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_lastpdpaddr_ipv4,
|
|
|
|
{ "IPv4 address", "cops.lastpdpaddr.ipv4",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"IPv4 address in COPS LastPDPAddr object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_lastpdpaddr_ipv6,
|
|
|
|
{ "IPv6 address", "cops.lastpdpaddr.ipv6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"IPv6 address in COPS LastPDPAddr object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pdp_tcp_port,
|
|
|
|
{ "TCP Port Number", "cops.pdp.tcp_port",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"TCP Port Number of PDP in PDPRedirAddr/LastPDPAddr object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_accttimer,
|
|
|
|
{ "Contents: ACCT Timer Value", "cops.accttimer.value",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"Accounting Timer Value in AcctTimer object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_key_id,
|
|
|
|
{ "Contents: Key ID", "cops.integrity.key_id",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"Key ID in Integrity object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_seq_num,
|
|
|
|
{ "Contents: Sequence Number", "cops.integrity.seq_num",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"Sequence Number in Integrity object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_gperror,
|
|
|
|
{ "Error", "cops.gperror",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_gperror_vals), 0,
|
|
|
|
"Error in Error object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_gperror_sub,
|
|
|
|
{ "Error Sub-code", "cops.gperror_sub",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"Error Sub-code in Error object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_cperror,
|
|
|
|
{ "Error", "cops.cperror",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cops_cperror_vals), 0,
|
|
|
|
"Error in Error object", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_cperror_sub,
|
|
|
|
{ "Error Sub-code", "cops.cperror_sub",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"Error Sub-code in Error object", HFILL }
|
|
|
|
},
|
2013-08-24 01:25:14 +00:00
|
|
|
|
|
|
|
{ &hf_cops_reserved8, { "Reserved", "cops.reserved", FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_reserved16, { "Reserved", "cops.reserved", FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_reserved24, { "Reserved", "cops.reserved", FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL } },
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_prid_oid, { "PRID Instance Identifier", "cops.prid.instance_id", FT_OID, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_pprid_oid, { "Prefix Identifier", "cops.pprid.prefix_id", FT_OID, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_errprid_oid, { "ErrorPRID Instance Identifier", "cops.errprid.instance_id", FT_OID, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_unknown, { "EPD Unknown Data", "cops.epd.unknown", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_null, { "EPD Null Data", "cops.epd.null", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_int, { "EPD Integer Data", "cops.epd.int", FT_INT64, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_octets, { "EPD Octet String Data", "cops.epd.octets", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_oid, { "EPD OID Data", "cops.epd.oid", FT_OID, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_ipv4, { "EPD IPAddress Data", "cops.epd.ipv4", FT_IPv4, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_u32, { "EPD Unsigned32 Data", "cops.epd.unsigned32", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_ticks, { "EPD TimeTicks Data", "cops.epd.timeticks", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_opaque, { "EPD Opaque Data", "cops.epd.opaque", FT_BYTES, BASE_NONE, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_i64, { "EPD Inetger64 Data", "cops.epd.integer64", FT_INT64, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
{ &hf_cops_epd_u64, { "EPD Unsigned64 Data", "cops.epd.unsigned64", FT_UINT64, BASE_DEC, NULL, 0, NULL, HFILL } },
|
|
|
|
|
|
|
|
/* Added for PacketCable */
|
|
|
|
|
|
|
|
{ &hf_cops_subtree,
|
|
|
|
{ "Object Subtree", "cops.pc_subtree",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_ds_field,
|
|
|
|
{ "DS Field (DSCP or TOS)", "cops.pc_ds_field",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_direction,
|
|
|
|
{ "Direction", "cops.pc_direction",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_gate_spec_flags,
|
|
|
|
{ "Flags", "cops.pc_gate_spec_flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_protocol_id,
|
|
|
|
{ "Protocol ID", "cops.pc_protocol_id",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_session_class,
|
|
|
|
{ "Session Class", "cops.pc_session_class",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_algorithm,
|
|
|
|
{ "Algorithm", "cops.pc_algorithm",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_cmts_ip_port,
|
|
|
|
{ "CMTS IP Port", "cops.pc_cmts_ip_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_prks_ip_port,
|
|
|
|
{ "PRKS IP Port", "cops.pc_prks_ip_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_srks_ip_port,
|
|
|
|
{ "SRKS IP Port", "cops.pc_srks_ip_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dest_port,
|
|
|
|
{ "Destination IP Port", "cops.pc_dest_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_packetcable_err_code,
|
|
|
|
{ "Error Code", "cops.pc_packetcable_err_code",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_packetcable_sub_code,
|
|
|
|
{ "Error Sub Code", "cops.pc_packetcable_sub_code",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_remote_flags,
|
|
|
|
{ "Flags", "cops.pc_remote_flags",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_close_subcode,
|
|
|
|
{ "Reason Sub Code", "cops.pc_close_subcode",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_gate_command_type,
|
|
|
|
{ "Gate Command Type", "cops.pc_gate_command_type",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_reason_code,
|
|
|
|
{ "Reason Code", "cops.pc_reason_code",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_delete_subcode,
|
|
|
|
{ "Reason Sub Code", "cops.pc_delete_subcode",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_src_port,
|
|
|
|
{ "Source IP Port", "cops.pc_src_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_t1_value,
|
|
|
|
{ "Timer T1 Value (sec)", "cops.pc_t1_value",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_t7_value,
|
|
|
|
{ "Timer T7 Value (sec)", "cops.pc_t7_value",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_t8_value,
|
|
|
|
{ "Timer T8 Value (sec)", "cops.pc_t8_value",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_transaction_id,
|
|
|
|
{ "Transaction Identifier", "cops.pc_transaction_id",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_cmts_ip,
|
|
|
|
{ "CMTS IP Address", "cops.pc_cmts_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_prks_ip,
|
|
|
|
{ "PRKS IP Address", "cops.pc_prks_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_srks_ip,
|
|
|
|
{ "SRKS IP Address", "cops.pc_srks_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dfcdc_ip,
|
|
|
|
{ "DF IP Address CDC", "cops.pc_dfcdc_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dfccc_ip,
|
|
|
|
{ "DF IP Address CCC", "cops.pc_dfccc_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dfcdc_ip_port,
|
|
|
|
{ "DF IP Port CDC", "cops.pc_dfcdc_ip_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dfccc_ip_port,
|
|
|
|
{ "DF IP Port CCC", "cops.pc_dfccc_ip_port",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dfccc_id,
|
|
|
|
{ "CCC ID", "cops.pc_dfccc_id",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_activity_count,
|
|
|
|
{ "Count", "cops.pc_activity_count",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_dest_ip,
|
|
|
|
{ "Destination IP Address", "cops.pc_dest_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_gate_id,
|
|
|
|
{ "Gate Identifier", "cops.pc_gate_id",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_max_packet_size,
|
|
|
|
{ "Maximum Packet Size", "cops.pc_max_packet_size",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_min_policed_unit,
|
|
|
|
{ "Minimum Policed Unit", "cops.pc_min_policed_unit",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_peak_data_rate,
|
|
|
|
{ "Peak Data Rate", "cops.pc_peak_data_rate",
|
|
|
|
FT_FLOAT, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_spec_rate,
|
|
|
|
{ "Rate", "cops.pc_spec_rate",
|
|
|
|
FT_FLOAT, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_remote_gate_id,
|
|
|
|
{ "Remote Gate ID", "cops.pc_remote_gate_id",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_reserved,
|
|
|
|
{ "Reserved", "cops.pc_reserved",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_key,
|
|
|
|
{ "Security Key", "cops.pc_key",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_slack_term,
|
|
|
|
{ "Slack Term", "cops.pc_slack_term",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_src_ip,
|
|
|
|
{ "Source IP Address", "cops.pc_src_ip",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_subscriber_id_ipv4,
|
|
|
|
{ "Subscriber Identifier (IPv4)", "cops.pc_subscriber_id4",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_subscriber_id_ipv6,
|
|
|
|
{ "Subscriber Identifier (IPv6)", "cops.pc_subscriber_id6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_token_bucket_rate,
|
|
|
|
{ "Token Bucket Rate", "cops.pc_token_bucket_rate",
|
|
|
|
FT_FLOAT, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_token_bucket_size,
|
|
|
|
{ "Token Bucket Size", "cops.pc_token_bucket_size",
|
|
|
|
FT_FLOAT, BASE_NONE, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#if 0
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_pc_bcid,
|
|
|
|
{ "Billing Correlation ID", "cops.pc_bcid",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
2013-01-31 17:55:31 +00:00
|
|
|
#endif
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_pc_bcid_ts,
|
|
|
|
{ "BDID Timestamp", "cops.pc_bcid_ts",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
"BCID Timestamp", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pc_bcid_ev,
|
|
|
|
{ "BDID Event Counter", "cops.pc_bcid_ev",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x00,
|
|
|
|
"BCID Event Counter", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_amid_app_type,
|
|
|
|
{ "AMID Application Type", "cops.pc_mm_amid_application_type",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia AMID Application Type", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_amid_am_tag,
|
|
|
|
{ "AMID Application Manager Tag", "cops.pc_mm_amid_am_tag",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia AMID Application Manager Tag", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_gate_spec_flags,
|
|
|
|
{ "Flags", "cops.pc_mm_gs_flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec Flags", HFILL }
|
|
|
|
},
|
2012-09-23 00:12:14 +00:00
|
|
|
|
|
|
|
{ &hf_cops_pcmm_gate_spec_flags_gate,
|
|
|
|
{ "Gate", "cops.pc_mm_gs_flags.gate",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_upstream_downstream), 0x1,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_gate_spec_flags_dscp_overwrite,
|
|
|
|
{ "DSCP/TOS overwrite", "cops.pc_mm_gs_flags.dscp_overwrite",
|
|
|
|
FT_BOOLEAN, 8, TFS(&tfs_enabled_disabled), 0x2,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
{ &hf_cops_pcmm_gate_spec_dscp_tos_field,
|
|
|
|
{ "DSCP/TOS Field", "cops.pc_mm_gs_dscp",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec DSCP/TOS Field", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_dscp_tos_mask,
|
|
|
|
{ "DSCP/TOS Mask", "cops.pc_mm_gs_dscp_mask",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec DSCP/TOS Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_session_class_id,
|
|
|
|
{ "SessionClassID", "cops.pc_mm_gs_scid",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec SessionClassID", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_session_class_id_priority,
|
|
|
|
{ "SessionClassID Priority", "cops.pc_mm_gs_scid_prio",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x07,
|
|
|
|
"PacketCable Multimedia GateSpec SessionClassID Priority", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_session_class_id_preemption,
|
|
|
|
{ "SessionClassID Preemption", "cops.pc_mm_gs_scid_preempt",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x08,
|
|
|
|
"PacketCable Multimedia GateSpec SessionClassID Preemption", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_session_class_id_configurable,
|
|
|
|
{ "SessionClassID Configurable", "cops.pc_mm_gs_scid_conf",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0xf0,
|
|
|
|
"PacketCable Multimedia GateSpec SessionClassID Configurable", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_timer_t1,
|
|
|
|
{ "Timer T1", "cops.pc_mm_gs_timer_t1",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec Timer T1", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_timer_t2,
|
|
|
|
{ "Timer T2", "cops.pc_mm_gs_timer_t2",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec Timer T2", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_timer_t3,
|
|
|
|
{ "Timer T3", "cops.pc_mm_gs_timer_t3",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec Timer T3", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_gate_spec_timer_t4,
|
|
|
|
{ "Timer T4", "cops.pc_mm_gs_timer_t4",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia GateSpec Timer T4", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_classifier_protocol_id,
|
|
|
|
{ "Protocol ID", "cops.pc_mm_classifier_proto_id",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Protocol ID", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dscp_tos_field,
|
|
|
|
{ "DSCP/TOS Field", "cops.pc_mm_classifier_dscp",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier DSCP/TOS Field", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dscp_tos_mask,
|
|
|
|
{ "DSCP/TOS Mask", "cops.pc_mm_classifier_dscp_mask",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier DSCP/TOS Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_src_addr,
|
|
|
|
{ "Source address", "cops.pc_mm_classifier_src_addr",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source IP Address", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_src_mask,
|
|
|
|
{ "Source mask", "cops.pc_mm_classifier_src_mask",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dst_addr,
|
|
|
|
{ "Destination address", "cops.pc_mm_classifier_dst_addr",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Destination IP Address", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dst_mask,
|
|
|
|
{ "Destination mask", "cops.pc_mm_classifier_dst_mask",
|
|
|
|
FT_IPv4, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Destination Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_src_port,
|
|
|
|
{ "Source Port", "cops.pc_mm_classifier_src_port",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Port", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_src_port_end,
|
|
|
|
{ "Source Port End", "cops.pc_mm_classifier_src_port_end",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Port End", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dst_port,
|
|
|
|
{ "Destination Port", "cops.pc_mm_classifier_dst_port",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Port", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dst_port_end,
|
|
|
|
{ "Destination Port End", "cops.pc_mm_classifier_dst_port_end",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Port End", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_priority,
|
|
|
|
{ "Priority", "cops.pc_mm_classifier_priority",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Priority", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_classifier_id,
|
|
|
|
{ "Classifier Id", "cops.pc_mm_classifier_id",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier ID", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_activation_state,
|
|
|
|
{ "Activation State", "cops.pc_mm_classifier_activation_state",
|
2014-05-28 00:33:22 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(pcmm_activation_state_vals), 0,
|
2011-04-21 22:13:56 +00:00
|
|
|
"PacketCable Multimedia Classifier Activation State", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_action,
|
|
|
|
{ "Action", "cops.pc_mm_classifier_action",
|
2014-05-28 00:33:22 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(pcmm_action_vals), 0,
|
2011-04-21 22:13:56 +00:00
|
|
|
"PacketCable Multimedia Classifier Action", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_flags,
|
|
|
|
{ "Flags", "cops.pc_mm_classifier_flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Flags", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_tc_low,
|
|
|
|
{ "tc-low", "cops.pc_mm_classifier_tc_low",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier tc-low", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_tc_high,
|
|
|
|
{ "tc-high", "cops.pc_mm_classifier_tc_high",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier tc-high", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_tc_mask,
|
|
|
|
{ "tc-mask", "cops.pc_mm_classifier_tc_mask",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier tc-mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_flow_label,
|
|
|
|
{ "Flow Label", "cops.pc_mm_classifier_flow_label",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Flow Label", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_next_header_type,
|
|
|
|
{ "Next Header Type", "cops.pc_mm_classifier_next_header_type",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Next Header Type", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_source_prefix_length,
|
|
|
|
{ "Source Prefix Length", "cops.pc_mm_classifier_source_prefix_length",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Source Prefix Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_destination_prefix_length,
|
|
|
|
{ "Destination Prefix Length", "cops.pc_mm_classifier_destination_prefix_length",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier Destination Prefix Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_src_addr_v6,
|
|
|
|
{ "IPv6 Source Address", "cops.pc_mm_classifier_src_addr_v6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier IPv6 Source Address", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_classifier_dst_addr_v6,
|
|
|
|
{ "IPv6 Destination Address", "cops.pc_mm_classifier_dst_addr_v6",
|
|
|
|
FT_IPv6, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia Classifier IPv6 Destination Address", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_flow_spec_envelope,
|
|
|
|
{ "Envelope", "cops.pc_mm_fs_envelope",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Flow Spec Envelope", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_flow_spec_service_number,
|
|
|
|
{ "Service Number", "cops.pc_mm_fs_svc_num",
|
2014-05-28 00:33:22 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(pcmm_flow_spec_service_vals), 0,
|
2011-04-21 22:13:56 +00:00
|
|
|
"PacketCable Multimedia Flow Spec Service Number", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_docsis_scn,
|
|
|
|
{ "Service Class Name", "cops.pc_mm_docsis_scn",
|
|
|
|
FT_STRINGZ, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia DOCSIS Service Class Name", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_envelope,
|
|
|
|
{ "Envelope", "cops.pc_mm_envelope",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Envelope", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_traffic_priority,
|
|
|
|
{ "Traffic Priority", "cops.pc_mm_tp",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Traffic Priority", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_request_transmission_policy,
|
|
|
|
{ "Request Transmission Policy", "cops.pc_mm_rtp",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Traffic Priority", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_max_sustained_traffic_rate,
|
|
|
|
{ "Maximum Sustained Traffic Rate", "cops.pc_mm_mstr",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Maximum Sustained Traffic Rate", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_max_traffic_burst,
|
|
|
|
{ "Maximum Traffic Burst", "cops.pc_mm_mtb",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Maximum Traffic Burst", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_min_reserved_traffic_rate,
|
|
|
|
{ "Minimum Reserved Traffic Rate", "cops.pc_mm_mrtr",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Minimum Reserved Traffic Rate", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_ass_min_rtr_packet_size,
|
|
|
|
{ "Assumed Minimum Reserved Traffic Rate Packet Size", "cops.pc_mm_amrtrps",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Assumed Minimum Reserved Traffic Rate Packet Size", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_max_concat_burst,
|
|
|
|
{ "Maximum Concatenated Burst", "cops.pc_mm_mcburst",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Maximum Concatenated Burst", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_req_att_mask,
|
|
|
|
{ "Required Attribute Mask", "cops.pc_mm_ramask",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Required Attribute Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_forbid_att_mask,
|
|
|
|
{ "Forbidden Attribute Mask", "cops.pc_mm_famask",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Forbidden Attribute Mask", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_att_aggr_rule_mask,
|
|
|
|
{ "Attribute Aggregation Rule Mask", "cops.pc_mm_aarmask",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Committed Envelope Attribute Aggregation Rule Mask", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_nominal_polling_interval,
|
|
|
|
{ "Nominal Polling Interval", "cops.pc_mm_npi",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Nominal Polling Interval", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_tolerated_poll_jitter,
|
|
|
|
{ "Tolerated Poll Jitter", "cops.pc_mm_tpj",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Tolerated Poll Jitter", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_unsolicited_grant_size,
|
|
|
|
{ "Unsolicited Grant Size", "cops.pc_mm_ugs",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Unsolicited Grant Size", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_grants_per_interval,
|
|
|
|
{ "Grants Per Interval", "cops.pc_mm_gpi",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Grants Per Interval", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_nominal_grant_interval,
|
|
|
|
{ "Nominal Grant Interval", "cops.pc_mm_ngi",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Nominal Grant Interval", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_tolerated_grant_jitter,
|
|
|
|
{ "Tolerated Grant Jitter", "cops.pc_mm_tgj",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Tolerated Grant Jitter", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_down_resequencing,
|
|
|
|
{ "Downstream Resequencing", "cops.pc_mm_downres",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Downstream Resequencing", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_down_peak_traffic_rate,
|
|
|
|
{ "Downstream Peak Traffic Rate", "cops.pc_mm_downpeak",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Downstream Peak Traffic Rate", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_max_downstream_latency,
|
|
|
|
{ "Maximum Downstream Latency", "cops.pc_mm_mdl",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Maximum Downstream Latency", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_volume_based_usage_limit,
|
|
|
|
{ "Usage Limit", "cops.pc_mm_vbul_ul",
|
|
|
|
FT_UINT64, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Volume-Based Usage Limit", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_time_based_usage_limit,
|
|
|
|
{ "Usage Limit", "cops.pc_mm_tbul_ul",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Time-Based Usage Limit", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_gate_time_info,
|
|
|
|
{ "Gate Time Info", "cops.pc_mm_gti",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Gate Time Info", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_gate_usage_info,
|
|
|
|
{ "Gate Usage Info", "cops.pc_mm_gui",
|
|
|
|
FT_UINT64, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Gate Usage Info", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_packetcable_error_code,
|
|
|
|
{ "Error-Code", "cops.pc_mm_error_ec",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia PacketCable-Error Error-Code", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_packetcable_error_subcode,
|
|
|
|
{ "Error-code", "cops.pc_mm_error_esc",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia PacketCable-Error Error Sub-code", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_packetcable_gate_state,
|
|
|
|
{ "State", "cops.pc_mm_gs_state",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Gate State", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_packetcable_gate_state_reason,
|
|
|
|
{ "Reason", "cops.pc_mm_gs_reason",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Gate State Reason", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_packetcable_version_info_major,
|
|
|
|
{ "Major Version Number", "cops.pc_mm_vi_major",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Major Version Number", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_packetcable_version_info_minor,
|
|
|
|
{ "Minor Version Number", "cops.pc_mm_vi_minor",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia Minor Version Number", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_psid,
|
|
|
|
{ "PSID", "cops.pc_mm_psid",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
|
|
|
"PacketCable Multimedia PSID", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_synch_options_report_type,
|
|
|
|
{ "Report Type", "cops.pc_mm_synch_options_report_type",
|
2014-05-28 00:33:22 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(pcmm_report_type_vals), 0,
|
2011-04-21 22:13:56 +00:00
|
|
|
"PacketCable Multimedia Synch Options Report Type", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_cops_pcmm_synch_options_synch_type,
|
|
|
|
{ "Synch Type", "cops.pc_mm_synch_options_synch_type",
|
2014-05-28 00:33:22 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(pcmm_synch_type_vals), 0,
|
2011-04-21 22:13:56 +00:00
|
|
|
"PacketCable Multimedia Synch Options Synch Type", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_msg_receipt_key,
|
|
|
|
{ "Msg Receipt Key", "cops.pc_mm_msg_receipt_key",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia Msg Receipt Key", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_userid,
|
|
|
|
{ "UserID", "cops.pc_mm_userid",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0,
|
|
|
|
"PacketCable Multimedia UserID", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_cops_pcmm_sharedresourceid,
|
|
|
|
{ "SharedResourceID", "cops.pc_mm_sharedresourceid",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0,
|
|
|
|
"PacketCable Multimedia SharedResourceID", HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
/* End of addition for PacketCable */
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_cops,
|
|
|
|
&ett_cops_ver_flags,
|
|
|
|
&ett_cops_obj,
|
|
|
|
&ett_cops_pr_obj,
|
|
|
|
&ett_cops_obj_data,
|
|
|
|
&ett_cops_r_type_flags,
|
|
|
|
&ett_cops_itf,
|
|
|
|
&ett_cops_reason,
|
|
|
|
&ett_cops_decision,
|
|
|
|
&ett_cops_error,
|
|
|
|
&ett_cops_clientsi,
|
|
|
|
&ett_cops_asn1,
|
|
|
|
&ett_cops_gperror,
|
|
|
|
&ett_cops_cperror,
|
|
|
|
&ett_cops_pdp,
|
|
|
|
&ett_cops_subtree,
|
|
|
|
&ett_docsis_request_transmission_policy,
|
|
|
|
};
|
|
|
|
|
2013-05-25 17:06:40 +00:00
|
|
|
static ei_register_info ei[] = {
|
|
|
|
{ &ei_cops_pepid_not_null, { "cops.pepid.not_null", PI_MALFORMED, PI_NOTE, "PEP Id is not a NULL terminated ASCII string", EXPFILL }},
|
2013-08-24 01:25:14 +00:00
|
|
|
{ &ei_cops_trailing_garbage, { "cops.trailing_garbage", PI_UNDECODED, PI_NOTE, "Trailing garbage", EXPFILL }},
|
|
|
|
{ &ei_cops_bad_cops_object_length, { "cops.bad_cops_object_length", PI_MALFORMED, PI_ERROR, "COPS object length is too short", EXPFILL }},
|
|
|
|
{ &ei_cops_bad_cops_pr_object_length, { "cops.bad_cops_pr_object_length", PI_MALFORMED, PI_ERROR, "COPS-PR object length is too short", EXPFILL }},
|
|
|
|
{ &ei_cops_unknown_c_num, { "cops.unknown_c_num", PI_UNDECODED, PI_NOTE, "Unknown C-Num value", EXPFILL }},
|
|
|
|
{ &ei_cops_unknown_s_num, { "cops.unknown_s_num", PI_UNDECODED, PI_NOTE, "Unknown S-Num value", EXPFILL }},
|
2013-05-25 17:06:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
module_t* cops_module;
|
2013-05-25 17:06:40 +00:00
|
|
|
expert_module_t* expert_cops;
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
/* Register the protocol name and description */
|
|
|
|
proto_cops = proto_register_protocol("Common Open Policy Service",
|
|
|
|
"COPS", "cops");
|
|
|
|
|
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
|
|
|
proto_register_field_array(proto_cops, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2013-05-25 17:06:40 +00:00
|
|
|
expert_cops = expert_register_protocol(proto_cops);
|
|
|
|
expert_register_field_array(expert_cops, ei, array_length(ei));
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
/* Make dissector findable by name */
|
2013-11-09 17:46:28 +00:00
|
|
|
new_register_dissector("cops", dissect_cops, proto_cops);
|
2011-04-21 22:13:56 +00:00
|
|
|
|
|
|
|
/* Register our configuration options for cops */
|
|
|
|
cops_module = prefs_register_protocol(proto_cops, proto_reg_handoff_cops);
|
|
|
|
prefs_register_uint_preference(cops_module,"tcp.cops_port",
|
|
|
|
"COPS TCP Port",
|
|
|
|
"Set the TCP port for COPS messages",
|
|
|
|
10,&global_cops_tcp_port);
|
|
|
|
prefs_register_bool_preference(cops_module, "desegment",
|
|
|
|
"Reassemble COPS messages spanning multiple TCP segments",
|
|
|
|
"Whether the COPS dissector should reassemble messages spanning multiple TCP segments."
|
|
|
|
" To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.",
|
|
|
|
&cops_desegment);
|
|
|
|
|
|
|
|
/* For PacketCable */
|
|
|
|
prefs_register_bool_preference(cops_module, "packetcable",
|
|
|
|
"Decode for PacketCable clients",
|
|
|
|
"Decode the COPS messages using PacketCable clients. (Select port 2126)",
|
|
|
|
&cops_packetcable);
|
|
|
|
|
|
|
|
prefs_register_static_text_preference(cops_module, "info_pibs",
|
|
|
|
"PIB settings can be changed in the Name Resolution preferences",
|
|
|
|
"PIB settings can be changed in the Name Resolution preferences");
|
|
|
|
|
|
|
|
prefs_register_obsolete_preference(cops_module, "typefrommib");
|
2003-12-21 05:51:34 +00:00
|
|
|
}
|
2000-06-07 22:57:45 +00:00
|
|
|
|
2003-09-08 19:40:10 +00:00
|
|
|
void proto_reg_handoff_cops(void)
|
2000-06-07 22:57:45 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
static gboolean cops_prefs_initialized = FALSE;
|
|
|
|
static dissector_handle_t cops_handle;
|
|
|
|
static guint cops_tcp_port;
|
|
|
|
|
|
|
|
if (!cops_prefs_initialized) {
|
|
|
|
cops_handle = find_dissector("cops");
|
|
|
|
dissector_add_uint("tcp.port", TCP_PORT_PKTCABLE_COPS, cops_handle);
|
|
|
|
dissector_add_uint("tcp.port", TCP_PORT_PKTCABLE_MM_COPS, cops_handle);
|
|
|
|
cops_prefs_initialized = TRUE;
|
|
|
|
} else {
|
|
|
|
dissector_delete_uint("tcp.port",cops_tcp_port,cops_handle);
|
|
|
|
}
|
|
|
|
cops_tcp_port = global_cops_tcp_port;
|
|
|
|
|
|
|
|
dissector_add_uint("tcp.port", cops_tcp_port, cops_handle);
|
2000-06-07 22:57:45 +00:00
|
|
|
}
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Additions for PacketCable ( Added by Dick Gooris, Lucent Technologies ) */
|
|
|
|
|
|
|
|
/* Definitions for print formatting */
|
2004-10-07 19:22:54 +00:00
|
|
|
/* XXX - Why don't we just use ftenum types here? */
|
2004-04-15 09:24:07 +00:00
|
|
|
#define FMT_DEC 0
|
|
|
|
#define FMT_HEX 1
|
2004-10-07 19:22:54 +00:00
|
|
|
#define FMT_IPv4 2
|
|
|
|
#define FMT_IPv6 3
|
|
|
|
#define FMT_FLT 4
|
2009-04-30 08:29:16 +00:00
|
|
|
#define FMT_STR 5
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
/* Print the translated information in the display gui in a formatted way
|
|
|
|
*
|
2004-04-15 09:24:07 +00:00
|
|
|
* octets = The number of octets to obtain from the buffer
|
|
|
|
*
|
2004-04-25 04:01:12 +00:00
|
|
|
* vsp = If not a NULL pointer, it points to an array with text
|
|
|
|
*
|
2004-04-15 09:24:07 +00:00
|
|
|
* mode = 0 -> print decimal value
|
2004-04-25 04:01:12 +00:00
|
|
|
* 1 -> print hexadecimal vaue
|
2004-10-07 19:22:54 +00:00
|
|
|
* 2 -> print value as an IPv4 address
|
|
|
|
* 3 -> print value as an IPv6 address
|
|
|
|
* 4 -> print value as an IEEE float
|
2009-04-30 08:29:16 +00:00
|
|
|
* 5 -> print value as a string
|
2004-04-25 04:01:12 +00:00
|
|
|
*
|
|
|
|
* This function in combination with the separate function info_to_cops_subtree() for subtrees.
|
|
|
|
*
|
2004-04-15 09:24:07 +00:00
|
|
|
*/
|
|
|
|
|
2004-10-14 07:42:31 +00:00
|
|
|
static proto_item *
|
2005-07-28 07:53:38 +00:00
|
|
|
info_to_display(tvbuff_t *tvb, proto_item *stt, int offset, int octets, const char *str, const value_string *vsp, int mode,gint *hf_proto_parameter)
|
2004-04-15 09:24:07 +00:00
|
|
|
{
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_item *pi = NULL;
|
|
|
|
guint8 *codestr;
|
|
|
|
guint8 code8 = 0;
|
|
|
|
guint16 code16 = 0;
|
|
|
|
guint32 codeipv4 = 0;
|
|
|
|
guint32 code32 = 0;
|
|
|
|
guint64 code64 = 0;
|
|
|
|
float codefl = 0.0f;
|
|
|
|
|
|
|
|
/* Special section for printing strings */
|
|
|
|
if (mode==FMT_STR) {
|
2014-06-17 15:30:58 +00:00
|
|
|
codestr = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, octets, ENC_ASCII);
|
2011-04-21 22:13:56 +00:00
|
|
|
pi = proto_tree_add_string_format(stt, *hf_proto_parameter, tvb,
|
|
|
|
offset, octets, codestr, "%-28s : %s", str, codestr);
|
|
|
|
return pi;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Print information elements in the specified way */
|
|
|
|
switch (octets) {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
/* Get the octet */
|
|
|
|
code8 = tvb_get_guint8( tvb, offset );
|
|
|
|
if (vsp == NULL) {
|
|
|
|
/* Hexadecimal format */
|
|
|
|
if (mode==FMT_HEX)
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code8,"%-28s : 0x%02x",str,code8);
|
|
|
|
else
|
|
|
|
/* Print an 8 bits integer */
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code8,"%-28s : %u",str,code8);
|
|
|
|
} else {
|
|
|
|
if (mode==FMT_HEX)
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Hexadecimal format */
|
2011-04-21 22:13:56 +00:00
|
|
|
pi = proto_tree_add_uint_format(
|
|
|
|
stt, *hf_proto_parameter,tvb, offset, octets, code8,
|
2012-08-10 22:55:02 +00:00
|
|
|
"%-28s : %s (0x%02x)",str,val_to_str_const(code8, vsp, "Unknown"),code8);
|
2011-04-21 22:13:56 +00:00
|
|
|
else
|
|
|
|
/* String table indexed */
|
|
|
|
pi = proto_tree_add_uint_format(
|
|
|
|
stt, *hf_proto_parameter,tvb, offset, octets, code8,
|
2012-08-10 22:55:02 +00:00
|
|
|
"%-28s : %s (%u)",str,val_to_str_const(code8, vsp, "Unknown"),code8);
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
/* Get the next two octets */
|
|
|
|
code16 = tvb_get_ntohs(tvb,offset);
|
|
|
|
if (vsp == NULL) {
|
|
|
|
/* Hexadecimal format */
|
|
|
|
if (mode==FMT_HEX)
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code16,"%-28s : 0x%04x",str,code16);
|
|
|
|
else
|
|
|
|
/* Print a 16 bits integer */
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code16,"%-28s : %u",str,code16);
|
|
|
|
} else {
|
|
|
|
if (mode==FMT_HEX)
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Hexadecimal format */
|
2011-04-21 22:13:56 +00:00
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code16,"%-28s : %s (0x%04x)", str,
|
|
|
|
val_to_str(code16, vsp, "Unknown (0x%04x)"),code16);
|
|
|
|
else
|
|
|
|
/* Print a 16 bits integer */
|
|
|
|
pi = proto_tree_add_uint_format(
|
|
|
|
stt, *hf_proto_parameter,tvb, offset, octets, code16,
|
|
|
|
"%-28s : %s (%u)",str,val_to_str(code16, vsp, "Unknown (0x%04x)"),code16);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
/* Get the next four octets */
|
|
|
|
switch (mode) {
|
|
|
|
case FMT_FLT: codefl = tvb_get_ntohieee_float(tvb,offset);
|
|
|
|
break;
|
|
|
|
case FMT_IPv4: codeipv4 = tvb_get_ipv4(tvb, offset);
|
|
|
|
break;
|
|
|
|
default: code32 = tvb_get_ntohl(tvb,offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (vsp == NULL) {
|
|
|
|
/* Hexadecimal format */
|
|
|
|
if (mode==FMT_HEX) {
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb,
|
|
|
|
offset, octets, code32,"%-28s : 0x%08x",str,code32);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
/* Ip address format*/
|
|
|
|
if (mode==FMT_IPv4) {
|
|
|
|
pi = proto_tree_add_ipv4(stt, *hf_proto_parameter,tvb, offset, octets, codeipv4);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
/* Ieee float format */
|
|
|
|
if (mode==FMT_FLT) {
|
|
|
|
pi = proto_tree_add_float_format(stt, *hf_proto_parameter,tvb, offset, octets,
|
|
|
|
codefl,"%-28s : %.10g",str,codefl);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
/* Print a 32 bits integer */
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb, offset, octets,
|
|
|
|
code32,"%-28s : %u",str,code32);
|
|
|
|
} else {
|
|
|
|
/* Hexadecimal format */
|
|
|
|
if (mode==FMT_HEX)
|
2004-10-07 19:22:54 +00:00
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb, offset, octets,
|
2012-08-10 22:55:02 +00:00
|
|
|
code32,"%-28s : %s (0x%08x)",str,val_to_str_const(code32, vsp, "Unknown"),code32);
|
2011-04-21 22:13:56 +00:00
|
|
|
else
|
|
|
|
/* String table indexed */
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,tvb, offset, octets,
|
2012-08-10 22:55:02 +00:00
|
|
|
code32,"%-28s : %s (%u)",str,val_to_str_const(code32, vsp, "Unknown"),code32);
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
break;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* In case of more than 4 octets.... */
|
2011-04-21 22:13:56 +00:00
|
|
|
default:
|
|
|
|
|
|
|
|
if (mode==FMT_HEX) {
|
|
|
|
pi = proto_tree_add_item(stt, *hf_proto_parameter,
|
|
|
|
tvb, offset, octets, ENC_NA);
|
|
|
|
} else if (mode==FMT_IPv6 && octets==16) {
|
|
|
|
pi = proto_tree_add_item(stt, *hf_proto_parameter, tvb, offset, octets,
|
|
|
|
ENC_NA);
|
|
|
|
} else if (mode==FMT_DEC && octets==8) {
|
|
|
|
code64 = tvb_get_ntoh64(tvb, offset);
|
|
|
|
pi = proto_tree_add_uint64_format(stt, *hf_proto_parameter, tvb, offset, octets,
|
|
|
|
code64, "%-28s : %" G_GINT64_MODIFIER "u", str, code64);
|
|
|
|
} else {
|
|
|
|
pi = proto_tree_add_uint_format(stt, *hf_proto_parameter,
|
|
|
|
tvb, offset, octets, code32,"%s",str);
|
|
|
|
}
|
|
|
|
break;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
|
|
|
return pi;
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
/* Print the subtree information for cops */
|
2004-10-14 07:42:31 +00:00
|
|
|
static proto_tree *
|
2005-07-28 07:53:38 +00:00
|
|
|
info_to_cops_subtree(tvbuff_t *tvb, proto_tree *st, int n, int offset, const char *str) {
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_item *tv;
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
tv = proto_tree_add_none_format( st, hf_cops_subtree, tvb, offset, n, "%s", str);
|
|
|
|
return( proto_item_add_subtree( tv, ett_cops_subtree ) );
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : D-QoS Transaction ID */
|
|
|
|
static void
|
2004-10-14 07:42:31 +00:00
|
|
|
cops_transaction_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *st, guint8 op_code, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
guint16 code16;
|
|
|
|
char info[50];
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"D-QoS Transaction ID");
|
|
|
|
offset += 4;
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Transaction Identifier */
|
|
|
|
info_to_display(tvb,stt,offset,2,"D-QoS Transaction Identifier", NULL,FMT_DEC,&hf_cops_pc_transaction_id);
|
|
|
|
offset +=2;
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Gate Command Type */
|
|
|
|
code16 = tvb_get_ntohs(tvb,offset);
|
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pc_gate_command_type,tvb, offset, 2,
|
|
|
|
code16,"%-28s : %s (%u)", "Gate Command Type",
|
|
|
|
val_to_str(code16,table_cops_dqos_transaction_id, "Unknown (0x%04x)"),code16);
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Write the right data into the 'info field' on the Gui */
|
2012-08-10 22:55:02 +00:00
|
|
|
g_snprintf(info,sizeof(info),"COPS %-20s - %s",val_to_str_const(op_code,cops_op_code_vals, "Unknown"),
|
|
|
|
val_to_str_const(code16,table_cops_dqos_transaction_id, "Unknown"));
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
col_add_str(pinfo->cinfo, COL_INFO,info);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : Subscriber IDv4 */
|
|
|
|
static void
|
|
|
|
cops_subscriber_id_v4(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_item *tv;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
tv = info_to_cops_subtree(tvb,st,n,offset,"Subscriber ID (IPv4)");
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Subscriber Identifier */
|
|
|
|
info_to_display(tvb,tv,offset,4,"Subscriber Identifier (IPv4)", NULL,FMT_IPv4,&hf_cops_pc_subscriber_id_ipv4);
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Subscriber IDv6 */
|
|
|
|
static void
|
|
|
|
cops_subscriber_id_v6(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_item *tv;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
tv = info_to_cops_subtree(tvb,st,n,offset,"Subscriber ID (IPv6)");
|
|
|
|
offset += 4;
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Subscriber Identifier */
|
|
|
|
info_to_display(tvb,tv,offset,16,"Subscriber Identifier (IPv6)", NULL,FMT_IPv6,&hf_cops_pc_subscriber_id_ipv6);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Gate ID */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_gate_id(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate ID");
|
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Gate Identifier */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Gate Identifier", NULL,FMT_HEX,&hf_cops_pc_gate_id);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Activity Count */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_activity_count(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Activity Count");
|
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Activity Count */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Count", NULL,FMT_DEC,&hf_cops_pc_activity_count);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Gate Specifications */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_gate_specs(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
proto_tree *stt;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate Specifications");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Direction */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,1,"Direction",table_cops_direction,FMT_DEC,&hf_cops_pc_direction);
|
|
|
|
offset += 1;
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Protocol ID */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,1,"Protocol ID",NULL,FMT_DEC,&hf_cops_pc_protocol_id);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 1;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Flags */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_DEC,&hf_cops_pc_gate_spec_flags);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 1;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Session Class */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,1,"Session Class",table_cops_session_class,FMT_DEC,&hf_cops_pc_session_class);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 1;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Source IP Address */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Source IP Address",NULL,FMT_IPv4,&hf_cops_pc_src_ip);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Destination IP Address */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Destination IP Address",NULL,FMT_IPv4,&hf_cops_pc_dest_ip);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Source IP Port */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Source IP Port",NULL,FMT_DEC,&hf_cops_pc_src_port);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Destination IP Port */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Destination IP Port",NULL,FMT_DEC,&hf_cops_pc_dest_port);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* DiffServ Code Point */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,1,"DS Field (DSCP or TOS)",NULL,FMT_HEX,&hf_cops_pc_ds_field);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 1;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* 3 octets Not specified */
|
|
|
|
offset += 3;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Timer T1 Value */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T1 Value (sec)",NULL,FMT_DEC,&hf_cops_pc_t1_value);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Reserved */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Reserved",NULL,FMT_DEC,&hf_cops_pc_reserved);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Timer T7 Value */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T7 Value (sec)",NULL,FMT_DEC,&hf_cops_pc_t7_value);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Timer T8 Value */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T8 Value (sec)",NULL,FMT_DEC,&hf_cops_pc_t8_value);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Token Bucket Rate */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Token Bucket Rate",NULL,FMT_FLT,&hf_cops_pc_token_bucket_rate);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Token Bucket Size */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Token Bucket Size",NULL,FMT_FLT,&hf_cops_pc_token_bucket_size);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Peak Data Rate */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Peak Data Rate",NULL,FMT_FLT,&hf_cops_pc_peak_data_rate);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Minimum Policed Unit */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Minimum Policed Unit",NULL,FMT_DEC,&hf_cops_pc_min_policed_unit);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Maximum Packet Size */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Maximum Packet Size",NULL,FMT_DEC,&hf_cops_pc_max_packet_size);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Rate */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Rate",NULL,FMT_FLT,&hf_cops_pc_spec_rate);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Slack Term */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Slack Term",NULL,FMT_DEC,&hf_cops_pc_slack_term);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Electronic Surveillance Parameters */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_surveillance_parameters(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
guint8 *bcid_str;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Electronic Surveillance Parameters");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* DF IP Address for CDC */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"DF IP Address for CDC", NULL,FMT_IPv4,&hf_cops_pc_dfcdc_ip);
|
2004-04-25 04:01:12 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* DF IP Port for CDC */
|
|
|
|
info_to_display(tvb,stt,offset,2,"DF IP Port for CDC",NULL,FMT_DEC,&hf_cops_pc_dfcdc_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Flags */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Flags",NULL,FMT_HEX,&hf_cops_pc_gate_spec_flags);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* DF IP Address for CCC */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"DF IP Address for CCC", NULL,FMT_IPv4,&hf_cops_pc_dfccc_ip);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2004-04-25 04:01:12 +00:00
|
|
|
/* DF IP Port for CCC */
|
|
|
|
info_to_display(tvb,stt,offset,2,"DF IP Port for CCC",NULL,FMT_DEC,&hf_cops_pc_dfccc_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* CCCID */
|
2004-12-09 23:25:01 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"CCCID", NULL,FMT_DEC,&hf_cops_pc_dfccc_id);
|
2004-04-25 04:01:12 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* BCID Timestamp */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Timestamp",NULL,FMT_HEX,&hf_cops_pc_bcid_ts);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* BCID Element ID */
|
2007-03-26 11:06:26 +00:00
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
2004-04-25 04:01:12 +00:00
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Element ID",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Time Zone */
|
2007-03-26 11:06:26 +00:00
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
2004-04-25 04:01:12 +00:00
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Time Zone",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Event Counter */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Event Counter",NULL,FMT_DEC,&hf_cops_pc_bcid_ev);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Event Gereration-Info */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_event_generation_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
guint8 *bcid_str;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Event Generation Info");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* Primary Record Keeping Server IP Address */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"PRKS IP Address", NULL,FMT_IPv4,&hf_cops_pc_prks_ip);
|
2004-04-25 04:01:12 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Primary Record Keeping Server IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"PRKS IP Port",NULL,FMT_DEC,&hf_cops_pc_prks_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Flags */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_HEX,&hf_cops_pc_gate_spec_flags);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 1;
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Secondary Record Keeping Server IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,4,"SRKS IP Address", NULL,FMT_IPv4,&hf_cops_pc_srks_ip);
|
2004-04-25 04:01:12 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Secondary Record Keeping Server IP Port */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"SRKS IP Port",NULL,FMT_DEC,&hf_cops_pc_srks_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Flags */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_DEC,&hf_cops_pc_gate_spec_flags);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* BCID Timestamp */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Timestamp",NULL,FMT_HEX,&hf_cops_pc_bcid_ts);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* BCID Element ID */
|
2007-03-26 11:06:26 +00:00
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
2004-04-25 04:01:12 +00:00
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Element ID",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Time Zone */
|
2007-03-26 11:06:26 +00:00
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
2004-04-25 04:01:12 +00:00
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Time Zone",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Event Counter */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Event Counter",NULL,FMT_DEC,&hf_cops_pc_bcid_ev);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Remote Gate */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_remote_gate_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
proto_tree *stt;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Remote Gate Info");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* CMTS IP Address */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"CMTS IP Address", NULL,FMT_IPv4,&hf_cops_pc_cmts_ip);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* CMTS IP Port */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"CMTS IP Port",NULL,FMT_DEC,&hf_cops_pc_cmts_ip_port);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Flags */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Flags",NULL,FMT_DEC,&hf_cops_pc_remote_flags);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Remote Gate ID */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Remote Gate ID", NULL,FMT_HEX,&hf_cops_pc_remote_gate_id);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Algorithm */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Algorithm", NULL,FMT_DEC,&hf_cops_pc_algorithm);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Reserved */
|
2004-10-07 19:22:54 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Reserved", NULL,FMT_HEX,&hf_cops_pc_reserved);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Security Key */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Security Key", NULL,FMT_HEX,&hf_cops_pc_key);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Security Key */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Security Key (cont)", NULL,FMT_HEX,&hf_cops_pc_key);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Security Key */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Security Key (cont)", NULL,FMT_HEX,&hf_cops_pc_key);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Security Key */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"Security Key (cont)", NULL,FMT_HEX,&hf_cops_pc_key);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : PacketCable reason */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_packetcable_reason(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
guint16 code16;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"PacketCable Reason");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Reason Code */
|
|
|
|
code16 = tvb_get_ntohs(tvb,offset);
|
2004-04-25 04:01:12 +00:00
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pc_reason_code,tvb, offset, 2,
|
2004-04-15 09:24:07 +00:00
|
|
|
code16, "%-28s : %s (%u)","Reason Code",
|
2004-04-25 04:01:12 +00:00
|
|
|
val_to_str(code16, table_cops_reason_code, "Unknown (0x%04x)"),code16);
|
|
|
|
offset += 2;
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
if ( code16 == 0 ) {
|
|
|
|
/* Reason Sub Code with Delete */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Reason Sub Code",table_cops_reason_subcode_delete,FMT_DEC,&hf_cops_pc_delete_subcode);
|
2004-04-15 09:24:07 +00:00
|
|
|
} else {
|
|
|
|
/* Reason Sub Code with Close */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Reason Sub Code",table_cops_reason_subcode_close,FMT_DEC,&hf_cops_pc_close_subcode);
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : PacketCable error */
|
2004-10-07 19:22:54 +00:00
|
|
|
static void
|
|
|
|
cops_packetcable_error(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
proto_tree *stt;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"PacketCable Error");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Error Code */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Error Code",table_cops_packetcable_error,FMT_DEC,&hf_cops_pc_packetcable_err_code);
|
2004-04-15 09:24:07 +00:00
|
|
|
offset += 2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* Error Sub Code */
|
2004-04-25 04:01:12 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Error Sub Code",NULL,FMT_HEX,&hf_cops_pc_packetcable_sub_code);
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : Multimedia Transaction ID */
|
|
|
|
static void
|
2004-10-14 07:42:31 +00:00
|
|
|
cops_mm_transaction_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *st, guint8 op_code, guint n, guint32 offset) {
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
guint16 code16;
|
|
|
|
char info[50];
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"MM Transaction ID");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Transaction Identifier */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Multimedia Transaction Identifier", NULL,FMT_DEC,&hf_cops_pc_transaction_id);
|
|
|
|
offset +=2;
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Gate Command Type */
|
|
|
|
code16 = tvb_get_ntohs(tvb,offset);
|
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pc_gate_command_type,tvb, offset, 2,
|
|
|
|
code16,"%-28s : %s (%u)", "Gate Command Type",
|
|
|
|
val_to_str(code16,table_cops_mm_transaction_id, "Unknown (0x%04x)"),code16);
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Write the right data into the 'info field' on the Gui */
|
2012-08-10 22:55:02 +00:00
|
|
|
g_snprintf(info,sizeof(info),"COPS %-20s - %s",val_to_str_const(op_code,cops_op_code_vals, "Unknown"),
|
|
|
|
val_to_str_const(code16,table_cops_mm_transaction_id, "Unknown"));
|
2004-04-25 04:01:12 +00:00
|
|
|
|
2010-07-19 13:55:12 +00:00
|
|
|
col_add_str(pinfo->cinfo, COL_INFO,info);
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
2004-04-15 09:24:07 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : AMID */
|
|
|
|
static void
|
|
|
|
cops_amid(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"AMID");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Application Type */
|
2006-05-09 18:30:52 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Application Manager ID Application Type", NULL,FMT_DEC,&hf_cops_pcmm_amid_app_type);
|
|
|
|
offset += 2;
|
2006-02-09 19:41:20 +00:00
|
|
|
|
|
|
|
/* Application Manager Tag */
|
2006-05-09 18:30:52 +00:00
|
|
|
info_to_display(tvb,stt,offset,2,"Application Manager ID Application Manager Tag", NULL,FMT_DEC,&hf_cops_pcmm_amid_am_tag);
|
2012-04-30 21:15:17 +00:00
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Cops - Section : Multimedia Gate Specifications */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_mm_gate_spec(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_item *ti;
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate Spec");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Flags */
|
|
|
|
ti = info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_HEX,&hf_cops_pcmm_gate_spec_flags);
|
|
|
|
object_tree = proto_item_add_subtree(ti, ett_cops_subtree );
|
2012-09-23 00:12:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_flags_gate, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_flags_dscp_overwrite, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* DiffServ Code Point */
|
|
|
|
info_to_display(tvb,stt,offset,1,"DS Field (DSCP or TOS)",NULL,FMT_HEX,&hf_cops_pcmm_gate_spec_dscp_tos_field);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* DiffServ Code Point Mask */
|
|
|
|
info_to_display(tvb,stt,offset,1,"DS Field (DSCP or TOS) Mask",NULL,FMT_HEX,&hf_cops_pcmm_gate_spec_dscp_tos_mask);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Session Class */
|
|
|
|
ti = info_to_display(tvb,stt,offset,1,"Session Class",table_cops_session_class,FMT_DEC,&hf_cops_pcmm_gate_spec_session_class_id);
|
|
|
|
object_tree = proto_item_add_subtree(ti, ett_cops_subtree);
|
2011-10-06 03:35:44 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_session_class_id_priority, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_session_class_id_preemption, tvb, offset, 1, ENC_BIG_ENDIAN);
|
|
|
|
proto_tree_add_item(object_tree, hf_cops_pcmm_gate_spec_session_class_id_configurable, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Timer T1 Value */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T1 Value (sec)",NULL,FMT_DEC,&hf_cops_pcmm_gate_spec_timer_t1);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Timer T2 Value */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T2 Value (sec)",NULL,FMT_DEC,&hf_cops_pcmm_gate_spec_timer_t2);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Timer T3 Value */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T3 Value (sec)",NULL,FMT_DEC,&hf_cops_pcmm_gate_spec_timer_t3);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Timer T4 Value */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Timer T4 Value (sec)",NULL,FMT_DEC,&hf_cops_pcmm_gate_spec_timer_t4);
|
|
|
|
offset += 2;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Classifier */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2006-02-09 19:41:20 +00:00
|
|
|
cops_classifier(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean extended) {
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
proto_tree *stt;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,
|
2011-04-21 22:13:56 +00:00
|
|
|
extended ? "Extended Classifier" : "Classifier");
|
2006-02-09 19:41:20 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Protocol ID */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Protocol ID",NULL,FMT_DEC,&hf_cops_pcmm_classifier_protocol_id);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* DiffServ Code Point */
|
|
|
|
info_to_display(tvb,stt,offset,1,"DS Field (DSCP or TOS)",NULL,FMT_HEX,&hf_cops_pcmm_classifier_dscp_tos_field);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* DiffServ Code Point Mask */
|
|
|
|
info_to_display(tvb,stt,offset,1,"DS Field (DSCP or TOS) Mask",NULL,FMT_HEX,&hf_cops_pcmm_classifier_dscp_tos_mask);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Source IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Source IP Address",NULL,FMT_IPv4,&hf_cops_pcmm_classifier_src_addr);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Source Mask */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Source Mask",NULL,FMT_IPv4,&hf_cops_pcmm_classifier_src_mask);
|
|
|
|
offset += 4;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Destination IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Destination IP Address",NULL,FMT_IPv4,&hf_cops_pcmm_classifier_dst_addr);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Destination Mask */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Destination Mask",NULL,FMT_IPv4,&hf_cops_pcmm_classifier_dst_mask);
|
|
|
|
offset += 4;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Source IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Source IP Port",NULL,FMT_DEC,&hf_cops_pcmm_classifier_src_port);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Source Port End */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Source Port End",NULL,FMT_DEC,&hf_cops_pcmm_classifier_src_port_end);
|
|
|
|
offset += 2;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Destination IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Destination IP Port",NULL,FMT_DEC,&hf_cops_pcmm_classifier_dst_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Destination Port End */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Destination Port End",NULL,FMT_DEC,&hf_cops_pcmm_classifier_dst_port_end);
|
|
|
|
offset += 2;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* ClassifierID */
|
|
|
|
info_to_display(tvb,stt,offset,2,"ClassifierID",NULL,FMT_HEX,&hf_cops_pcmm_classifier_classifier_id);
|
|
|
|
offset += 2;
|
2009-07-07 08:27:15 +00:00
|
|
|
}
|
2009-09-20 07:44:34 +00:00
|
|
|
|
2009-07-07 08:27:15 +00:00
|
|
|
/* Priority */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Priority",NULL,FMT_HEX,&hf_cops_pcmm_classifier_priority);
|
|
|
|
offset += 1;
|
2006-02-09 19:41:20 +00:00
|
|
|
|
2009-07-07 08:27:15 +00:00
|
|
|
if (extended) {
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Activation State */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Activation State",NULL,FMT_HEX,&hf_cops_pcmm_classifier_activation_state);
|
|
|
|
offset += 1;
|
2006-02-09 19:41:20 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Action */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Action",NULL,FMT_HEX,&hf_cops_pcmm_classifier_action);
|
|
|
|
offset += 1;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 3 octets Not specified */
|
|
|
|
offset += 3;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-04-15 09:24:07 +00:00
|
|
|
}
|
|
|
|
|
2009-10-02 17:17:20 +00:00
|
|
|
/* Cops - Section : IPv6 Classifier */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-10-02 17:17:20 +00:00
|
|
|
cops_ipv6_classifier(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset, "IPv6 Classifier");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Reserved/Flags */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Flags",NULL,FMT_HEX,&hf_cops_pcmm_classifier_flags);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* tc-low */
|
|
|
|
info_to_display(tvb,stt,offset,1,"tc-low",NULL,FMT_HEX,&hf_cops_pcmm_classifier_tc_low);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* tc-high */
|
|
|
|
info_to_display(tvb,stt,offset,1,"tc-high",NULL,FMT_HEX,&hf_cops_pcmm_classifier_tc_high);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* tc-mask */
|
|
|
|
info_to_display(tvb,stt,offset,1,"tc-mask",NULL,FMT_HEX,&hf_cops_pcmm_classifier_tc_mask);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Flow Label */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Flow Label",NULL,FMT_HEX,&hf_cops_pcmm_classifier_flow_label);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Next Header Type */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Next Header Type",NULL,FMT_DEC,&hf_cops_pcmm_classifier_next_header_type);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Source Prefix Length */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Source Prefix Length",NULL,FMT_DEC,&hf_cops_pcmm_classifier_source_prefix_length);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Destination Prefix Length */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Destination Prefix Length",NULL,FMT_DEC,&hf_cops_pcmm_classifier_destination_prefix_length);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Source IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,16,"IPv6 Source Address",NULL,FMT_IPv6,&hf_cops_pcmm_classifier_src_addr_v6);
|
|
|
|
offset += 16;
|
|
|
|
|
|
|
|
/* Destination IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,16,"IPv6 Destination Address",NULL,FMT_IPv6,&hf_cops_pcmm_classifier_dst_addr_v6);
|
|
|
|
offset += 16;
|
|
|
|
|
|
|
|
/* Source IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Source Port Start",NULL,FMT_DEC,&hf_cops_pcmm_classifier_src_port);
|
|
|
|
offset += 2;
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Source Port End */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Source Port End",NULL,FMT_DEC,&hf_cops_pcmm_classifier_src_port_end);
|
|
|
|
offset += 2;
|
2009-10-02 17:17:20 +00:00
|
|
|
|
|
|
|
/* Destination IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Destination Port Start",NULL,FMT_DEC,&hf_cops_pcmm_classifier_dst_port);
|
|
|
|
offset += 2;
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Destination Port End */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Destination Port End",NULL,FMT_DEC,&hf_cops_pcmm_classifier_dst_port_end);
|
|
|
|
offset += 2;
|
2009-10-02 17:17:20 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* ClassifierID */
|
|
|
|
info_to_display(tvb,stt,offset,2,"ClassifierID",NULL,FMT_HEX,&hf_cops_pcmm_classifier_classifier_id);
|
|
|
|
offset += 2;
|
2009-10-02 17:17:20 +00:00
|
|
|
|
|
|
|
/* Priority */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Priority",NULL,FMT_HEX,&hf_cops_pcmm_classifier_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Activation State */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Activation State",NULL,FMT_HEX,&hf_cops_pcmm_classifier_activation_state);
|
|
|
|
offset += 1;
|
2009-10-02 17:17:20 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Action */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Action",NULL,FMT_HEX,&hf_cops_pcmm_classifier_action);
|
|
|
|
offset += 1;
|
2009-10-02 17:17:20 +00:00
|
|
|
|
|
|
|
/* 3 octets Not specified */
|
|
|
|
offset += 3;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-10-02 17:17:20 +00:00
|
|
|
}
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : Gate Specifications */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_flow_spec(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Flow Spec");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_flow_spec_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Service Number */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Service Number",NULL,FMT_DEC,&hf_cops_pcmm_flow_spec_service_number);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 28, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Token Bucket Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Rate",NULL,FMT_FLT,&hf_cops_pc_token_bucket_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Token Bucket Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Size",NULL,FMT_FLT,&hf_cops_pc_token_bucket_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Peak Data Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Peak Data Rate",NULL,FMT_FLT,&hf_cops_pc_peak_data_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Policed Unit */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Policed Unit",NULL,FMT_DEC,&hf_cops_pc_min_policed_unit);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Packet Size",NULL,FMT_DEC,&hf_cops_pc_max_packet_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Rate",NULL,FMT_FLT,&hf_cops_pc_spec_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Slack Term */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Slack Term",NULL,FMT_DEC,&hf_cops_pc_slack_term);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 64) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 28, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Token Bucket Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Rate",NULL,FMT_FLT,&hf_cops_pc_token_bucket_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Token Bucket Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Size",NULL,FMT_FLT,&hf_cops_pc_token_bucket_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Peak Data Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Peak Data Rate",NULL,FMT_FLT,&hf_cops_pc_peak_data_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Policed Unit */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Policed Unit",NULL,FMT_DEC,&hf_cops_pc_min_policed_unit);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Packet Size",NULL,FMT_DEC,&hf_cops_pc_max_packet_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Rate",NULL,FMT_FLT,&hf_cops_pc_spec_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Slack Term */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Slack Term",NULL,FMT_DEC,&hf_cops_pc_slack_term);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 92) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 28, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Token Bucket Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Rate",NULL,FMT_FLT,&hf_cops_pc_token_bucket_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Token Bucket Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Token Bucket Size",NULL,FMT_FLT,&hf_cops_pc_token_bucket_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Peak Data Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Peak Data Rate",NULL,FMT_FLT,&hf_cops_pc_peak_data_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Policed Unit */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Policed Unit",NULL,FMT_DEC,&hf_cops_pc_min_policed_unit);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Packet Size",NULL,FMT_DEC,&hf_cops_pc_max_packet_size);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Rate",NULL,FMT_FLT,&hf_cops_pc_spec_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Slack Term */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Slack Term",NULL,FMT_DEC,&hf_cops_pc_slack_term);
|
2012-04-30 21:15:17 +00:00
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : DOCSIS Service Class Name */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_docsis_service_class_name(tvbuff_t *tvb, proto_tree *st, guint object_len, guint32 offset) {
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,object_len,offset,"DOCSIS Service Class Name");
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 3;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len >= 12) {
|
2011-10-15 18:46:26 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_pcmm_docsis_scn, tvb, offset, object_len - 8, ENC_ASCII|ENC_NA);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += object_len - 8;
|
|
|
|
} else {
|
|
|
|
proto_tree_add_text(stt, tvb, offset - 8, 2, "Invalid object length: %u", object_len);
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* New functions were made with the i04 suffix to maintain backward compatibility with I03
|
|
|
|
*
|
|
|
|
* BEGIN PCMM I04
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* Cops - Section : Best Effort Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_best_effort_service_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Best Effort Service");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 2;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
2010-07-21 14:17:00 +00:00
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Non-Real-Time Polling Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_non_real_time_polling_service_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Non-Real-Time Polling Service");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 64) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 92) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Real-Time Polling Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_real_time_polling_service_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Real-Time Polling Service");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 64) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 92) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Concatenated Burst */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,2,"Maximum Concatenated Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_concat_burst);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Unsolicited Grant Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_unsolicited_grant_service_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Unsolicited Grant Service");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 28 : 24, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 40) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 28 : 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 28 : 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Unsolicited Grant Service with Activity Detection */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_ugs_with_activity_detection_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Unsolicited Grant Service with Activity Detection");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 36 : 32, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Required Attribute Mask */
|
2010-07-21 14:17:00 +00:00
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2010-07-21 14:17:00 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Downstream Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2010-07-21 14:17:00 +00:00
|
|
|
cops_downstream_service_i04_i05(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset, gboolean i05) {
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt, *object_tree;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Downstream Service");
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2014-09-19 01:18:34 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 3;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Resequencing */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Downstream Resequencing",NULL,FMT_HEX,&hf_cops_pcmm_down_resequencing);
|
|
|
|
offset += 1;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved16, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Peak Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Downstream Peak Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_down_peak_traffic_rate);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2010-07-21 14:17:00 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Resequencing */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Downstream Resequencing",NULL,FMT_HEX,&hf_cops_pcmm_down_resequencing);
|
|
|
|
offset += 1;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved16, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Peak Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Downstream Peak Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_down_peak_traffic_rate);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2010-07-21 14:17:00 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, i05 ? 40 : 36, ett_cops_subtree, NULL, "Committed Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Resequencing */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Downstream Resequencing",NULL,FMT_HEX,&hf_cops_pcmm_down_resequencing);
|
|
|
|
offset += 1;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved16, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Downstream Peak Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Downstream Peak Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_down_peak_traffic_rate);
|
|
|
|
offset += 4;
|
2010-07-21 14:17:00 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Required Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Required Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_req_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Forbidden Attribute Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Forbidden Attribute Mask",NULL,FMT_DEC,&hf_cops_pcmm_forbid_att_mask);
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
if (i05) {
|
|
|
|
/* Attribute Aggregation Rule Mask */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Attribute Aggregation Rule Mask",NULL,FMT_DEC,&hf_cops_pcmm_att_aggr_rule_mask);
|
|
|
|
offset += 4;
|
|
|
|
}
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Cops - Section : Upstream Drop */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_upstream_drop_i04(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
2004-10-07 19:22:54 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
2009-04-16 17:24:56 +00:00
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Upstream Drop");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* END PCMM I04 */
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Cops - Section : Best Effort Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_best_effort_service(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Best Effort Service");
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Authorized Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
2004-10-07 19:22:54 +00:00
|
|
|
offset += 4;
|
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Non-Real-Time Polling Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_non_real_time_polling_service(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Non-Real-Time Polling Service");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 28, ett_cops_subtree, NULL, "Authorized Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 64) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 92) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Real-Time Polling Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_real_time_polling_service(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Real-Time Polling Service");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 28, ett_cops_subtree, NULL, "Authorized Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 64) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 92) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Unsolicited Grant Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_unsolicited_grant_service(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Unsolicited Grant Service");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 16, ett_cops_subtree, NULL, "Authorized Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 40) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 16, ett_cops_subtree, NULL, "Reserved Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 16, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Unsolicited Grant Service with Activity Detection */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_ugs_with_activity_detection(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Unsolicited Grant Service with Activity Detection");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Authorized Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Request Transmission Policy */
|
|
|
|
decode_docsis_request_transmission_policy(tvb, offset, object_tree, hf_cops_pcmm_request_transmission_policy);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Unsolicited Grant Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Unsolicited Grant Size",NULL,FMT_DEC,&hf_cops_pcmm_unsolicited_grant_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Grants Per Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Grants Per Interval",NULL,FMT_DEC,&hf_cops_pcmm_grants_per_interval);
|
|
|
|
offset += 1;
|
|
|
|
|
2014-12-13 17:52:20 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved8, tvb, offset, 1, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Nominal Grant Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Grant Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_grant_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Grant Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Grant Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_grant_jitter);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Nominal Polling Interval */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Nominal Polling Interval",NULL,FMT_DEC,&hf_cops_pcmm_nominal_polling_interval);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Tolerated Poll Jitter */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Tolerated Poll Jitter",NULL,FMT_DEC,&hf_cops_pcmm_tolerated_poll_jitter);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Downstream Service */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_downstream_service(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
proto_tree *stt, *object_tree;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Downstream Service");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Envelope */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Envelope",NULL,FMT_DEC,&hf_cops_pcmm_envelope);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Authorized Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Authorized Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 56) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Reserved Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Reserved Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
|
|
|
|
2012-04-30 21:15:17 +00:00
|
|
|
if (n < 80) return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Committed Envelope */
|
2014-06-24 00:39:28 +00:00
|
|
|
object_tree = proto_tree_add_subtree(stt, tvb, offset, 24, ett_cops_subtree, NULL, "Committed Envelope");
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* Traffic Priority */
|
|
|
|
info_to_display(tvb,object_tree,offset,1,"Traffic Priority",NULL,FMT_HEX,&hf_cops_pcmm_traffic_priority);
|
|
|
|
offset += 1;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(object_tree, hf_cops_reserved24, tvb, offset, 3, ENC_BIG_ENDIAN);
|
2009-04-16 17:24:56 +00:00
|
|
|
offset += 3;
|
|
|
|
|
|
|
|
/* Maximum Sustained Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Sustained Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_max_sustained_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Maximum Traffic Burst */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Traffic Burst",NULL,FMT_DEC,&hf_cops_pcmm_max_traffic_burst);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Minimum Reserved Traffic Rate */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Minimum Reserved Traffic Rate",NULL,FMT_DEC,&hf_cops_pcmm_min_reserved_traffic_rate);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Assumed Minimum Reserved Traffic Rate Packet Size */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Assumed Minimum Reserved Traffic Rate Packet Size",NULL,FMT_DEC,&hf_cops_pcmm_ass_min_rtr_packet_size);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,object_tree,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Maximum Downstream Latency */
|
|
|
|
info_to_display(tvb,object_tree,offset,4,"Maximum Downstream Latency",NULL,FMT_DEC,&hf_cops_pcmm_max_downstream_latency);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : PacketCable Multimedia Event Gereration-Info */
|
|
|
|
static void
|
|
|
|
cops_mm_event_generation_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
guint8 *bcid_str;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Event Generation Info");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Primary Record Keeping Server IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,4,"PRKS IP Address", NULL,FMT_IPv4,&hf_cops_pc_prks_ip);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Primary Record Keeping Server IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"PRKS IP Port",NULL,FMT_DEC,&hf_cops_pc_prks_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Secondary Record Keeping Server IP Address */
|
|
|
|
info_to_display(tvb,stt,offset,4,"SRKS IP Address", NULL,FMT_IPv4,&hf_cops_pc_srks_ip);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Secondary Record Keeping Server IP Port */
|
|
|
|
info_to_display(tvb,stt,offset,2,"SRKS IP Port",NULL,FMT_DEC,&hf_cops_pc_srks_ip_port);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reserved */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Reserved",NULL,FMT_HEX,&hf_cops_pc_reserved);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* BCID Timestamp */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Timestamp",NULL,FMT_HEX,&hf_cops_pc_bcid_ts);
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* BCID Element ID */
|
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Element ID",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Time Zone */
|
|
|
|
bcid_str = (guchar*)tvb_format_text(tvb, offset, 8);
|
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"%-28s : '%s'","BCID - Time Zone",bcid_str);
|
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
/* BCID Event Counter */
|
|
|
|
info_to_display(tvb,stt,offset,4,"BCID - Event Counter",NULL,FMT_DEC,&hf_cops_pc_bcid_ev);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Volume-Based Usage Limit */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_volume_based_usage_limit(tvbuff_t *tvb, proto_tree *st, guint object_len, guint32 offset) {
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,object_len,offset,"Volume-Based Usage Limit");
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Usage Limit */
|
|
|
|
proto_tree_add_item(stt, hf_cops_pcmm_volume_based_usage_limit, tvb, offset, 8,
|
2011-10-06 03:35:44 +00:00
|
|
|
ENC_BIG_ENDIAN);
|
2012-04-30 21:15:17 +00:00
|
|
|
offset += 8;
|
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Time-Based Usage Limit */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_time_based_usage_limit(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Time-Based Usage Limit");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Time Limit */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Time Limit", NULL,FMT_DEC,&hf_cops_pcmm_time_based_usage_limit);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Opaque Data */
|
|
|
|
static void
|
|
|
|
cops_opaque_data(tvbuff_t *tvb, proto_tree *st, guint object_len, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,object_len,offset,"Opaque Data");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Opaque Data */
|
|
|
|
proto_tree_add_text(stt, tvb, offset, 8,"Opaque Data");
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Gate Time Info */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2009-04-16 17:24:56 +00:00
|
|
|
cops_gate_time_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate Time Info");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Gate Time Info */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Time Committed", NULL,FMT_DEC,&hf_cops_pcmm_gate_time_info);
|
|
|
|
offset += 4;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Gate Usage Info */
|
|
|
|
static void
|
|
|
|
cops_gate_usage_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate Usage Info");
|
|
|
|
offset += 4;
|
|
|
|
|
2009-04-30 08:29:16 +00:00
|
|
|
/* Gate Usage Info */
|
|
|
|
info_to_display(tvb,stt,offset,8,"Octet Count", NULL,FMT_DEC,&hf_cops_pcmm_gate_usage_info);
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : PacketCable error */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_packetcable_mm_error(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
guint16 code, subcode;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"PacketCable Error");
|
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
code = tvb_get_ntohs(tvb, offset);
|
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pcmm_packetcable_error_code, tvb, offset, 2, code,
|
2012-08-10 22:55:02 +00:00
|
|
|
"Error Code: %s (%u)", val_to_str_const(code, pcmm_packetcable_error_code, "Unknown"),
|
2011-04-21 22:13:56 +00:00
|
|
|
code);
|
|
|
|
offset += 2;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
subcode = tvb_get_ntohs(tvb, offset);
|
|
|
|
if (code == 6 || code == 7)
|
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pcmm_packetcable_error_subcode,
|
|
|
|
tvb, offset, 2, code, "Error-Subcode: 0x%02x, S-Num: 0x%02x, S-Type: 0x%02x",
|
|
|
|
subcode, subcode >> 8, subcode & 0xf);
|
|
|
|
else
|
|
|
|
proto_tree_add_uint_format(stt, hf_cops_pcmm_packetcable_error_subcode,
|
|
|
|
tvb, offset, 2, code, "Error-Subcode: 0x%04x", subcode);
|
|
|
|
offset += 2;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Gate State */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_gate_state(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Gate State");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* State */
|
|
|
|
info_to_display(tvb,stt,offset,2,"State",pcmm_gate_state,FMT_DEC,&hf_cops_pcmm_packetcable_gate_state);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reason */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Reason",pcmm_gate_state_reason,FMT_DEC,&hf_cops_pcmm_packetcable_gate_state_reason);
|
|
|
|
offset += 2;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Version Info */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2004-10-07 19:22:54 +00:00
|
|
|
cops_version_info(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
2004-10-15 19:02:47 +00:00
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Version Info");
|
2004-12-10 16:14:08 +00:00
|
|
|
offset += 4;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
/* State */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Major Version Number",NULL,FMT_DEC,&hf_cops_pcmm_packetcable_version_info_major);
|
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Reason */
|
|
|
|
info_to_display(tvb,stt,offset,2,"Minor Version Number",NULL,FMT_DEC,&hf_cops_pcmm_packetcable_version_info_minor);
|
|
|
|
offset += 2;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
2006-02-09 19:41:20 +00:00
|
|
|
/* Cops - Section : PSID */
|
|
|
|
static void
|
|
|
|
cops_psid(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"PSID");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* PSID */
|
2006-05-09 18:30:52 +00:00
|
|
|
info_to_display(tvb,stt,offset,4,"PSID", NULL,FMT_DEC,&hf_cops_pcmm_psid);
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Synch Options */
|
2012-04-30 21:15:17 +00:00
|
|
|
static int
|
2006-02-09 19:41:20 +00:00
|
|
|
cops_synch_options(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Synch Options");
|
|
|
|
offset += 4;
|
|
|
|
|
2013-08-24 01:25:14 +00:00
|
|
|
proto_tree_add_item(stt, hf_cops_reserved16, tvb, offset, 2, ENC_BIG_ENDIAN);
|
2006-02-09 19:41:20 +00:00
|
|
|
offset += 2;
|
|
|
|
|
|
|
|
/* Report Type */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Report Type", pcmm_report_type_vals,FMT_DEC,&hf_cops_pcmm_synch_options_report_type);
|
|
|
|
offset += 1;
|
|
|
|
|
|
|
|
/* Sych Type */
|
|
|
|
info_to_display(tvb,stt,offset,1,"Synch Type", pcmm_synch_type_vals,FMT_DEC,&hf_cops_pcmm_synch_options_synch_type);
|
|
|
|
offset += 1;
|
2012-04-30 21:15:17 +00:00
|
|
|
|
|
|
|
return offset;
|
2006-02-09 19:41:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Cops - Section : Msg Receipt Key */
|
|
|
|
static void
|
|
|
|
cops_msg_receipt_key(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"Msg Receipt Key");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* Msg Receipt Key */
|
|
|
|
info_to_display(tvb,stt,offset,4,"Msg Receipt Key", NULL,FMT_HEX,&hf_cops_pcmm_msg_receipt_key);
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2009-04-16 17:24:56 +00:00
|
|
|
/* Cops - Section : UserID */
|
|
|
|
static void
|
|
|
|
cops_userid(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
2009-04-30 08:29:16 +00:00
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb, st, n, offset, "UserID");
|
|
|
|
offset += 4;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
|
|
|
/* UserID */
|
2009-04-30 08:29:16 +00:00
|
|
|
info_to_display(tvb, stt, offset, n-4, "UserID", NULL, FMT_STR, &hf_cops_pcmm_userid);
|
2009-04-16 17:24:56 +00:00
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2010-07-19 13:31:02 +00:00
|
|
|
/* Cops - Section : SharedResourceID */
|
|
|
|
static void
|
|
|
|
cops_sharedresourceid(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
|
|
|
|
|
|
|
|
proto_tree *stt;
|
|
|
|
|
|
|
|
/* Create a subtree */
|
|
|
|
stt = info_to_cops_subtree(tvb,st,n,offset,"SharedResourceID");
|
|
|
|
offset += 4;
|
|
|
|
|
|
|
|
/* SharedResourceID */
|
|
|
|
info_to_display(tvb,stt,offset,4,"SharedResourceID", NULL,FMT_HEX,&hf_cops_pcmm_sharedresourceid);
|
|
|
|
}
|
|
|
|
|
2004-10-07 19:22:54 +00:00
|
|
|
/* PacketCable D-QoS S-Num/S-Type globs */
|
|
|
|
#define PCDQ_TRANSACTION_ID 0x0101
|
|
|
|
#define PCDQ_SUBSCRIBER_IDv4 0x0201
|
|
|
|
#define PCDQ_SUBSCRIBER_IDv6 0x0202
|
|
|
|
#define PCDQ_GATE_ID 0x0301
|
|
|
|
#define PCDQ_ACTIVITY_COUNT 0x0401
|
|
|
|
#define PCDQ_GATE_SPEC 0x0501
|
|
|
|
#define PCDQ_REMOTE_GATE_INFO 0x0601
|
|
|
|
#define PCDQ_EVENT_GENERATION_INFO 0x0701
|
|
|
|
#define PCDQ_MEDIA_CONNECTION_EVENT_INFO 0x0801
|
|
|
|
#define PCDQ_PACKETCABLE_ERROR 0x0901
|
|
|
|
#define PCDQ_PACKETCABLE_REASON 0x0d01
|
|
|
|
#define PCDQ_ELECTRONIC_SURVEILLANCE 0x0a01
|
|
|
|
#define PCDQ_SESSION_DESCRIPTION 0x0b01
|
|
|
|
|
|
|
|
/* Analyze the PacketCable objects */
|
2004-10-14 07:42:31 +00:00
|
|
|
static void
|
|
|
|
cops_analyze_packetcable_dqos_obj(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 op_code, guint32 offset) {
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
gint remdata;
|
|
|
|
guint16 object_len;
|
|
|
|
guint8 s_num, s_type;
|
|
|
|
guint16 num_type_glob;
|
|
|
|
|
|
|
|
/* Only if this option is enabled by the Gui */
|
|
|
|
if ( cops_packetcable == FALSE ) {
|
2011-04-21 22:13:56 +00:00
|
|
|
return;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Do the remaining client specific objects */
|
2014-06-19 17:18:16 +00:00
|
|
|
remdata = tvb_length_remaining(tvb, offset);
|
2004-10-07 19:22:54 +00:00
|
|
|
while (remdata > 4) {
|
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* In case we have remaining data, then lets try to get this analyzed */
|
|
|
|
object_len = tvb_get_ntohs(tvb, offset);
|
|
|
|
if (object_len < 4) {
|
|
|
|
proto_tree_add_text(tree, tvb, offset, 2,
|
|
|
|
"Incorrect PacketCable object length %u < 4", object_len);
|
|
|
|
return;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
s_num = tvb_get_guint8(tvb, offset + 2);
|
|
|
|
s_type = tvb_get_guint8(tvb, offset + 3);
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Glom the s_num and s_type together to make switching easier */
|
|
|
|
num_type_glob = s_num << 8 | s_type;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Perform the appropriate functions */
|
|
|
|
switch (num_type_glob){
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_TRANSACTION_ID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_transaction_id(tvb, pinfo, tree, op_code, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_SUBSCRIBER_IDv4:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_subscriber_id_v4(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_SUBSCRIBER_IDv6:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_subscriber_id_v6(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_GATE_ID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_id(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_ACTIVITY_COUNT:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_activity_count(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_GATE_SPEC:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_specs(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_REMOTE_GATE_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_remote_gate_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_EVENT_GENERATION_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_event_generation_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_PACKETCABLE_ERROR:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_packetcable_error(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_ELECTRONIC_SURVEILLANCE:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_surveillance_parameters(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCDQ_PACKETCABLE_REASON:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_packetcable_reason(tvb, tree, object_len, offset);
|
|
|
|
break;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Tune offset */
|
|
|
|
offset += object_len;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* See what we can still get from the buffer */
|
2014-06-19 17:18:16 +00:00
|
|
|
remdata = tvb_length_remaining(tvb, offset);
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* XXX - This duplicates code in the DOCSIS dissector. */
|
|
|
|
static void
|
|
|
|
decode_docsis_request_transmission_policy(tvbuff_t *tvb, guint32 offset, proto_tree *tree, gint hf) {
|
2011-04-21 22:13:56 +00:00
|
|
|
proto_tree *drtp_tree;
|
|
|
|
proto_item *item;
|
|
|
|
guint32 policy = tvb_get_ntohl(tvb, offset);
|
|
|
|
int i;
|
|
|
|
char bit_fld[48];
|
|
|
|
static const value_string drtp_vals[] = {
|
|
|
|
{ 1 << 0, "The Service Flow MUST NOT use \"all CMs\" broadcast request opportunities" },
|
|
|
|
{ 1 << 1, "The Service Flow MUST NOT use Priority Request multicast request opportunities" },
|
|
|
|
{ 1 << 2, "The Service Flow MUST NOT use Request/Data opportunities for Requests" },
|
|
|
|
{ 1 << 3, "The Service Flow MUST NOT use Request/Data opportunities for Data" },
|
|
|
|
{ 1 << 4, "The Service Flow MUST NOT piggyback requests with data" },
|
|
|
|
{ 1 << 5, "The Service Flow MUST NOT concatenate data" },
|
|
|
|
{ 1 << 6, "The Service Flow MUST NOT fragment data" },
|
|
|
|
{ 1 << 7, "The Service Flow MUST NOT suppress payload headers" },
|
|
|
|
{ 1 << 8, "The Service Flow MUST drop packets that do not fit in the Unsolicited Grant Size" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2012-05-09 22:14:03 +00:00
|
|
|
item = proto_tree_add_item (tree, hf, tvb, offset, 4, ENC_BIG_ENDIAN);
|
2011-04-21 22:13:56 +00:00
|
|
|
drtp_tree = proto_item_add_subtree(item, ett_docsis_request_transmission_policy);
|
|
|
|
for (i = 0 ; i <= 8; i++) {
|
|
|
|
if (policy & drtp_vals[i].value) {
|
|
|
|
decode_bitfield_value(bit_fld, policy, drtp_vals[i].value, 32);
|
|
|
|
proto_tree_add_text(drtp_tree, tvb, offset, 4, "%s%s",
|
|
|
|
bit_fld, drtp_vals[i].strptr);
|
|
|
|
}
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define PCMM_TRANSACTION_ID 0x0101
|
|
|
|
#define PCMM_AMID 0x0201
|
|
|
|
#define PCMM_SUBSCRIBER_ID 0x0301
|
2009-09-30 21:07:55 +00:00
|
|
|
#define PCMM_SUBSCRIBER_ID_V6 0x0302
|
2004-10-07 19:22:54 +00:00
|
|
|
#define PCMM_GATE_ID 0x0401
|
|
|
|
#define PCMM_GATE_SPEC 0x0501
|
|
|
|
#define PCMM_CLASSIFIER 0x0601
|
2006-02-09 19:41:20 +00:00
|
|
|
#define PCMM_EXTENDED_CLASSIFIER 0x0602
|
2009-10-02 17:17:20 +00:00
|
|
|
#define PCMM_IPV6_CLASSIFIER 0x0603
|
2004-10-07 19:22:54 +00:00
|
|
|
#define PCMM_FLOW_SPEC 0x0701
|
|
|
|
#define PCMM_DOCSIS_SERVICE_CLASS_NAME 0x0702
|
|
|
|
#define PCMM_BEST_EFFORT_SERVICE 0x0703
|
|
|
|
#define PCMM_NON_REAL_TIME_POLLING_SERVICE 0x0704
|
|
|
|
#define PCMM_REAL_TIME_POLLING_SERVICE 0x0705
|
|
|
|
#define PCMM_UNSOLICITED_GRANT_SERVICE 0x0706
|
|
|
|
#define PCMM_UGS_WITH_ACTIVITY_DETECTION 0x0707
|
|
|
|
#define PCMM_DOWNSTREAM_SERVICE 0x0708
|
2009-04-16 17:24:56 +00:00
|
|
|
#define PCMM_UPSTREAM_DROP 0x0709
|
2004-10-07 19:22:54 +00:00
|
|
|
#define PCMM_EVENT_GENERATION_INFO 0x0801
|
|
|
|
#define PCMM_VOLUME_BASED_USAGE_LIMIT 0x0901
|
|
|
|
#define PCMM_TIME_BASED_USAGE_LIMIT 0x0a01
|
|
|
|
#define PCMM_OPAQUE_DATA 0x0b01
|
|
|
|
#define PCMM_GATE_TIME_INFO 0x0c01
|
|
|
|
#define PCMM_GATE_USAGE_INFO 0x0d01
|
|
|
|
#define PCMM_PACKETCABLE_ERROR 0x0e01
|
|
|
|
#define PCMM_GATE_STATE 0x0f01
|
|
|
|
#define PCMM_VERSION_INFO 0x1001
|
2006-02-09 19:41:20 +00:00
|
|
|
#define PCMM_PSID 0x1101
|
|
|
|
#define PCMM_SYNCH_OPTIONS 0x1201
|
|
|
|
#define PCMM_MSG_RECEIPT_KEY 0x1301
|
2009-04-16 17:24:56 +00:00
|
|
|
#define PCMM_USERID 0x1501
|
2010-07-19 13:31:02 +00:00
|
|
|
#define PCMM_SHAREDRESOURCEID 0x1601
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
|
2004-10-14 07:42:31 +00:00
|
|
|
static void
|
|
|
|
cops_analyze_packetcable_mm_obj(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 op_code, guint32 offset) {
|
2004-10-07 19:22:54 +00:00
|
|
|
|
|
|
|
guint16 object_len;
|
|
|
|
guint8 s_num, s_type;
|
|
|
|
guint16 num_type_glob;
|
|
|
|
|
|
|
|
/* Only if this option is enabled by the Gui */
|
|
|
|
if ( cops_packetcable == FALSE ) {
|
2011-04-21 22:13:56 +00:00
|
|
|
return;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Do the remaining client specific objects */
|
2005-01-16 20:26:19 +00:00
|
|
|
while (tvb_reported_length_remaining(tvb, offset) > 4) {
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* In case we have remaining data, then lets try to get this analyzed */
|
|
|
|
object_len = tvb_get_ntohs(tvb, offset);
|
|
|
|
if (object_len < 4) {
|
|
|
|
proto_tree_add_text(tree, tvb, offset, 2,
|
|
|
|
"Incorrect PacketCable object length %u < 4", object_len);
|
|
|
|
return;
|
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
s_num = tvb_get_guint8(tvb, offset + 2);
|
|
|
|
s_type = tvb_get_guint8(tvb, offset + 3);
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Glom the s_num and s_type together to make switching easier */
|
|
|
|
num_type_glob = s_num << 8 | s_type;
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Perform the appropriate functions */
|
|
|
|
switch (num_type_glob){
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_TRANSACTION_ID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_mm_transaction_id(tvb, pinfo, tree, op_code, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_AMID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_amid(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_SUBSCRIBER_ID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_subscriber_id_v4(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2009-09-30 21:07:55 +00:00
|
|
|
case PCMM_SUBSCRIBER_ID_V6:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_subscriber_id_v6(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_GATE_ID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_id(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_GATE_SPEC:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_mm_gate_spec(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_CLASSIFIER:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_classifier(tvb, tree, object_len, offset, FALSE);
|
|
|
|
break;
|
2006-02-09 19:41:20 +00:00
|
|
|
case PCMM_EXTENDED_CLASSIFIER:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_classifier(tvb, tree, object_len, offset, TRUE);
|
|
|
|
break;
|
2009-10-02 17:17:20 +00:00
|
|
|
case PCMM_IPV6_CLASSIFIER:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_ipv6_classifier(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_FLOW_SPEC:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_flow_spec(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_DOCSIS_SERVICE_CLASS_NAME:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_docsis_service_class_name(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_BEST_EFFORT_SERVICE:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 44 || object_len == 80 || object_len == 116)
|
|
|
|
cops_best_effort_service_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 40 || object_len == 72 || object_len == 104)
|
|
|
|
cops_best_effort_service_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_best_effort_service(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_NON_REAL_TIME_POLLING_SERVICE:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 48 || object_len == 88 || object_len == 128)
|
|
|
|
cops_non_real_time_polling_service_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 44 || object_len == 80 || object_len == 116)
|
|
|
|
cops_non_real_time_polling_service_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_non_real_time_polling_service(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_REAL_TIME_POLLING_SERVICE:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 48 || object_len == 88 || object_len == 128)
|
|
|
|
cops_real_time_polling_service_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 44 || object_len == 80 || object_len == 116)
|
|
|
|
cops_real_time_polling_service_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_real_time_polling_service(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_UNSOLICITED_GRANT_SERVICE:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 36 || object_len == 64 || object_len == 92)
|
|
|
|
cops_unsolicited_grant_service_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 32 || object_len == 56 || object_len == 80)
|
|
|
|
cops_unsolicited_grant_service_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_unsolicited_grant_service(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_UGS_WITH_ACTIVITY_DETECTION:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 44 || object_len == 80 || object_len == 116)
|
|
|
|
cops_ugs_with_activity_detection_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 40 || object_len == 72 || object_len == 104)
|
|
|
|
cops_ugs_with_activity_detection_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_ugs_with_activity_detection(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_DOWNSTREAM_SERVICE:
|
2011-04-21 22:13:56 +00:00
|
|
|
if (object_len == 48 || object_len == 88 || object_len == 128)
|
|
|
|
cops_downstream_service_i04_i05(tvb, tree, object_len, offset, TRUE);
|
|
|
|
else if (object_len == 40 || object_len == 72 || object_len == 104)
|
|
|
|
cops_downstream_service_i04_i05(tvb, tree, object_len, offset, FALSE);
|
|
|
|
else
|
|
|
|
cops_downstream_service(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2009-04-16 17:24:56 +00:00
|
|
|
case PCMM_UPSTREAM_DROP:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_upstream_drop_i04(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_EVENT_GENERATION_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_mm_event_generation_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_VOLUME_BASED_USAGE_LIMIT:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_volume_based_usage_limit(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_TIME_BASED_USAGE_LIMIT:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_time_based_usage_limit(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_OPAQUE_DATA:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_opaque_data(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_GATE_TIME_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_time_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_GATE_USAGE_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_usage_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_PACKETCABLE_ERROR:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_packetcable_mm_error(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_GATE_STATE:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_gate_state(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2004-10-07 19:22:54 +00:00
|
|
|
case PCMM_VERSION_INFO:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_version_info(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2006-02-09 19:41:20 +00:00
|
|
|
case PCMM_PSID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_psid(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2006-02-09 19:41:20 +00:00
|
|
|
case PCMM_SYNCH_OPTIONS:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_synch_options(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2006-02-09 19:41:20 +00:00
|
|
|
case PCMM_MSG_RECEIPT_KEY:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_msg_receipt_key(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2009-04-16 17:24:56 +00:00
|
|
|
case PCMM_USERID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_userid(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2010-07-19 13:31:02 +00:00
|
|
|
case PCMM_SHAREDRESOURCEID:
|
2011-04-21 22:13:56 +00:00
|
|
|
cops_sharedresourceid(tvb, tree, object_len, offset);
|
|
|
|
break;
|
2009-04-16 17:24:56 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
}
|
2004-10-07 19:22:54 +00:00
|
|
|
|
2011-04-21 22:13:56 +00:00
|
|
|
/* Tune offset */
|
|
|
|
offset += object_len;
|
2004-10-07 19:22:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-04-15 09:24:07 +00:00
|
|
|
/* End of PacketCable Addition */
|
2014-05-28 00:33:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|