aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-exported_pdu.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-11-12 18:57:14 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-11-12 18:57:14 +0000
commita97460a39c7e41019d86431b7d9ae49ae234fb63 (patch)
tree501c9fa05c13fc7fadef2d06e756df1f8c713158 /epan/dissectors/packet-exported_pdu.c
parent64f0cafbadaafd20d9ffa9434d6261e980d2d3d7 (diff)
Add an item for any unknown tags we come across (just as FT_BYTES).
svn path=/trunk/; revision=53278
Diffstat (limited to 'epan/dissectors/packet-exported_pdu.c')
-rw-r--r--epan/dissectors/packet-exported_pdu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-exported_pdu.c b/epan/dissectors/packet-exported_pdu.c
index 6f83102b32..85a9f8ba0c 100644
--- a/epan/dissectors/packet-exported_pdu.c
+++ b/epan/dissectors/packet-exported_pdu.c
@@ -41,6 +41,7 @@ void proto_reg_handoff_exported_pdu(void);
static int proto_exported_pdu = -1;
static int hf_exported_pdu_tag = -1;
static int hf_exported_pdu_tag_len = -1;
+static int hf_exported_pdu_unknown_tag = -1;
static int hf_exported_pdu_prot_name = -1;
static int hf_exported_pdu_ipv4_src = -1;
static int hf_exported_pdu_ipv4_dst = -1;
@@ -198,6 +199,8 @@ dissect_exported_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dvbci_set_addrs(dvb_ci_dir, pinfo);
break;
default:
+ proto_tree_add_item(tag_tree, hf_exported_pdu_unknown_tag, tvb, offset, tag_len, ENC_NA);
+ /* Add an expert item too? */
break;
}
@@ -240,6 +243,11 @@ proto_register_exported_pdu(void)
FT_UINT16, BASE_DEC, NULL, 0,
NULL, HFILL }
},
+ { &hf_exported_pdu_unknown_tag,
+ { "Unkown tag", "exported_pdu.unknown_tag",
+ FT_BYTES, BASE_NONE, NULL, 0,
+ NULL, HFILL }
+ },
{ &hf_exported_pdu_prot_name,
{ "Protocol Name", "exported_pdu.prot_name",
FT_STRING, BASE_NONE, NULL, 0,