aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cops.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-07-19 13:31:02 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-07-19 13:31:02 +0000
commit6ceb1da7cb8c24119cfb233ba034496b2f24941a (patch)
tree80039e289f21ab3ae0b630184b04dc5562ff1918 /epan/dissectors/packet-cops.c
parent45d9a08339e3af73e8e8e2b5eee604ef2c023066 (diff)
Added SharedResourceID.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33580 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cops.c')
-rw-r--r--epan/dissectors/packet-cops.c35
1 files changed, 30 insertions, 5 deletions
diff --git a/epan/dissectors/packet-cops.c b/epan/dissectors/packet-cops.c
index ca995d30fa..a1ef5897fc 100644
--- a/epan/dissectors/packet-cops.c
+++ b/epan/dissectors/packet-cops.c
@@ -748,6 +748,7 @@ 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;
static gint hf_cops_pcmm_userid = -1;
+static gint hf_cops_pcmm_sharedresourceid = -1;
/* Initialize the subtree pointers */
@@ -2452,9 +2453,15 @@ void proto_register_cops(void)
},
{ &hf_cops_pcmm_userid,
- { "UserID", "cops.pc_mm_userid",
- FT_STRING, BASE_NONE, NULL, 0,
- "PacketCable Multimedia UserID", HFILL }
+ { "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 */
@@ -5499,6 +5506,20 @@ cops_userid(tvbuff_t *tvb, proto_tree *st, guint n, guint32 offset) {
info_to_display(tvb, stt, offset, n-4, "UserID", NULL, FMT_STR, &hf_cops_pcmm_userid);
}
+/* 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);
+}
+
/* PacketCable D-QoS S-Num/S-Type globs */
#define PCDQ_TRANSACTION_ID 0x0101
#define PCDQ_SUBSCRIBER_IDv4 0x0201
@@ -5655,6 +5676,7 @@ decode_docsis_request_transmission_policy(tvbuff_t *tvb, guint32 offset, proto_t
#define PCMM_SYNCH_OPTIONS 0x1201
#define PCMM_MSG_RECEIPT_KEY 0x1301
#define PCMM_USERID 0x1501
+#define PCMM_SHAREDRESOURCEID 0x1601
static void
@@ -5797,8 +5819,11 @@ cops_analyze_packetcable_mm_obj(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
cops_msg_receipt_key(tvb, tree, object_len, offset);
break;
case PCMM_USERID:
- cops_userid(tvb, tree, object_len, offset);
- break;
+ cops_userid(tvb, tree, object_len, offset);
+ break;
+ case PCMM_SHAREDRESOURCEID:
+ cops_sharedresourceid(tvb, tree, object_len, offset);
+ break;
}