Add an item for any unknown tags we come across (just as FT_BYTES).

svn path=/trunk/; revision=53278
This commit is contained in:
Jeff Morriss 2013-11-12 18:57:14 +00:00
parent 64f0cafbad
commit a97460a39c
1 changed files with 8 additions and 0 deletions

View File

@ -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,