roofnet: display always reserved field

Change-Id: I22d91cad10f925e7634c246ef9d22abe59fd9b51
Reviewed-on: https://code.wireshark.org/review/20170
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2017-02-18 16:17:31 +01:00 committed by Michael Mann
parent 45a216eb52
commit 8c758f06c3
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,7 @@ static const value_string roofnet_pt_vals[] = {
#define ROOFNET_FLAG_ERROR (1<<0)
#define ROOFNET_FLAG_UPDATE (1<<1)
#define ROOFNET_FLAG_LAYER2 (1<<9)
#define ROOFNET_FLAG_RESERVED 0xFDFC
#define ROOFNET_FLAG_MASK (ROOFNET_FLAG_ERROR | ROOFNET_FLAG_UPDATE | ROOFNET_FLAG_LAYER2)
/* header length */
@ -87,6 +88,7 @@ static int hf_roofnet_flags = -1;
static int hf_roofnet_flags_error = -1;
static int hf_roofnet_flags_update = -1;
static int hf_roofnet_flags_layer2 = -1;
static int hf_roofnet_flags_reserved = -1;
static int hf_roofnet_data_length = -1;
static int hf_roofnet_query_dst = -1;
static int hf_roofnet_seq = -1;
@ -102,6 +104,7 @@ static const int *flag_list[] = {
&hf_roofnet_flags_error,
&hf_roofnet_flags_update,
&hf_roofnet_flags_layer2,
&hf_roofnet_flags_reserved,
NULL
};
@ -310,6 +313,11 @@ void proto_register_roofnet(void)
FT_BOOLEAN, 16, NULL, ROOFNET_FLAG_LAYER2, NULL, HFILL }
},
{ &hf_roofnet_flags_reserved,
{ "Roofnet Reserved", "roofnet.flags.reserved",
FT_BOOLEAN, 16, NULL, ROOFNET_FLAG_RESERVED, NULL, HFILL }
},
{ &hf_roofnet_data_length,
{ "Data Length", "roofnet.datalength",
FT_UINT16, BASE_DEC, NULL, 0x0, "Data Payload Length", HFILL }