From Benjamin Roch via bug 3418:

Added string values to tte.pcf.type.

svn path=/trunk/; revision=34533
This commit is contained in:
Stig Bjørlykke 2010-10-17 13:59:46 +00:00
parent ce60782e08
commit 396d8e3e18
1 changed files with 9 additions and 3 deletions

View File

@ -57,6 +57,13 @@ static int hf_tte_pcf_tc = -1;
/* Initialize the subtree pointers */
static gint ett_tte_pcf = -1;
static const value_string pcf_type_str_vals[] =
{ {2, "integration frame"}
, {4, "coldstart frame"}
, {8, "coldstart ack frame"}
, {0, NULL}
};
/* Code to actually dissect the packets */
static void
@ -85,8 +92,7 @@ dissect_tte_pcf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Make entries in Protocol column and Info column on summary display */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCF");
if (check_col(pinfo->cinfo, COL_INFO))
col_add_fstr(pinfo->cinfo, COL_INFO,
col_add_fstr(pinfo->cinfo, COL_INFO,
"Sync Domain: 0x%02X Sync Priority: 0x%02X",
sync_domain, sync_priority);
@ -174,7 +180,7 @@ proto_register_tte_pcf(void)
},
{ &hf_tte_pcf_type,
{ "Type", "tte.pcf.type",
FT_UINT8, BASE_HEX, NULL, 0x0F,
FT_UINT8, BASE_HEX, VALS(pcf_type_str_vals), 0x0F,
NULL, HFILL }
},
{ &hf_tte_pcf_res1,