aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-17 08:25:54 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-05-17 08:25:54 +0000
commit6217c69fdda83667afbcca7f90527ef4d09a5080 (patch)
tree4e41391f1c5744269621208bef4ed6750ea26116
parent622f6d89221740f1ddc0059e009c698b76f830cb (diff)
for "connection oriented channels" place a generated psm field in the display to make it filterable and also to show what the payload should be.
svn path=/trunk/; revision=18177
-rw-r--r--epan/dissectors/packet-btl2cap.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btl2cap.c b/epan/dissectors/packet-btl2cap.c
index 245747de55..00a2ccedba 100644
--- a/epan/dissectors/packet-btl2cap.c
+++ b/epan/dissectors/packet-btl2cap.c
@@ -1,8 +1,12 @@
/* packet-btl2cap.c
* Routines for the Bluetooth L2CAP dissection
* Copyright 2002, Christoph Scholz <scholz@cs.uni-bonn.de>
+ * From: http://affix.sourceforge.net/archive/ethereal_affix-3.patch
*
- * $Id: packet-btl2cap.c,v 1.6 2003/03/26 15:53:15 kds Exp $
+ * Refactored for ethereal checkin
+ * Ronnie Sahlberg 2006
+ *
+ * $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -618,6 +622,11 @@ static void dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
next_tvb = tvb_new_subset(tvb, offset, tvb_length_remaining(tvb, offset), length);
if(psm){
+ proto_item *psm_item;
+
+ psm_item=proto_tree_add_uint(btl2cap_tree, hf_btl2cap_psm, tvb, offset, 0, psm);
+ PROTO_ITEM_SET_GENERATED(psm_item);
+
/* call next dissector */
if (!dissector_try_port(l2cap_psm_dissector_table, (guint32) psm,
next_tvb, pinfo, tree)) {