diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-11-12 18:57:14 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-11-12 18:57:14 +0000 |
commit | a97460a39c7e41019d86431b7d9ae49ae234fb63 (patch) | |
tree | 501c9fa05c13fc7fadef2d06e756df1f8c713158 /epan | |
parent | 64f0cafbadaafd20d9ffa9434d6261e980d2d3d7 (diff) |
Add an item for any unknown tags we come across (just as FT_BYTES).
svn path=/trunk/; revision=53278
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-exported_pdu.c | 8 |
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, |