Show WIRETAP_ENC

svn path=/trunk/; revision=42126
This commit is contained in:
Anders Broman 2012-04-18 08:26:08 +00:00
parent be31ffaeb0
commit 7422d0ad08
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,7 @@ static int hf_frame_protocols = -1;
static int hf_frame_color_filter_name = -1;
static int hf_frame_color_filter_text = -1;
static int hf_frame_interface_id = -1;
static int hf_frame_wtap_encap = -1;
static int hf_comments_text = -1;
static int proto_short = -1;
@ -237,6 +238,8 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
if (pinfo->fd->flags.has_if_id)
proto_tree_add_uint(fh_tree, hf_frame_interface_id, tvb, 0, 0, pinfo->fd->interface_id);
proto_tree_add_int(fh_tree, hf_frame_wtap_encap, tvb, 0, 0, pinfo->fd->lnk_t);
if (pinfo->fd->flags.has_ts) {
proto_tree_add_time(fh_tree, hf_frame_arrival_time, tvb,
@ -658,6 +661,10 @@ proto_register_frame(void)
{ "Interface id", "frame.interface_id", FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
{ &hf_frame_wtap_encap,
{ "WTAP_ENCAP", "frame.dlt", FT_INT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
{ &hf_comments_text,
{ "Comment", "comment", FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},