summaryrefslogtreecommitdiff
path: root/plugins/profinet/packet-pn-mrp.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-06-21 18:35:39 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-06-21 18:35:39 +0000
commit1d51934de28ccf5c6b1217487c4f32df630cb0e3 (patch)
tree08d98303fcd44bc076558fb1540cee1ae66759d6 /plugins/profinet/packet-pn-mrp.c
parent73e1406b4f56ebba76d93da6136fc66703d20e12 (diff)
downloadwireshark-1d51934de28ccf5c6b1217487c4f32df630cb0e3.tar.gz
add an expert info if a capture file contains some (yet) undecoded portions
svn path=/trunk/; revision=18534
Diffstat (limited to 'plugins/profinet/packet-pn-mrp.c')
-rw-r--r--plugins/profinet/packet-pn-mrp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/profinet/packet-pn-mrp.c b/plugins/profinet/packet-pn-mrp.c
index cdd292f926..08d5f3e797 100644
--- a/plugins/profinet/packet-pn-mrp.c
+++ b/plugins/profinet/packet-pn-mrp.c
@@ -39,6 +39,7 @@
#include <epan/dissectors/packet-dcerpc.h>
#include <epan/oui.h>
#include <epan/etypes.h>
+#include <epan/expert.h>
static int proto_pn_mrp = -1;
@@ -304,6 +305,7 @@ dissect_PNMRP_PDU(tvbuff_t *tvb, int offset,
guint8 type;
guint8 length;
gint i = 0;
+ proto_item *unknown_item;
/* MRP_Version */
@@ -349,8 +351,11 @@ dissect_PNMRP_PDU(tvbuff_t *tvb, int offset,
offset = dissect_PNMRP_LinkUp(tvb, offset, pinfo, tree, item, length);
break;
default:
- proto_tree_add_string_format(tree, hf_pn_mrp_data, tvb, offset, length, "data",
+ unknown_item = proto_tree_add_string_format(tree, hf_pn_mrp_data, tvb, offset, length, "data",
"PN-MRP Unknown TLVType 0x%x, Data: %d bytes", type, length);
+ expert_add_info_format(pinfo, unknown_item, PI_UNDECODED, PI_WARN,
+ "Unknown TLVType 0x%x, %u bytes",
+ type, length);
if (check_col(pinfo->cinfo, COL_INFO))
col_append_fstr(pinfo->cinfo, COL_INFO, "Unknown TLVType 0x%x", type);