Differentiate "Disabled" from "Unknown" and provide macros for the enumerated values.

svn path=/trunk/; revision=50323
This commit is contained in:
Michael Mann 2013-07-02 20:08:49 +00:00
parent e16933f496
commit 7ae263b9e4
2 changed files with 9 additions and 4 deletions

View File

@ -74,10 +74,10 @@ static emem_tree_t *expert_modules = NULL;
/* Possible values for a checksum evaluation */
const value_string expert_checksum_vals[] = {
{ -1, "Unknown/Disabled" },
{ 0, "Good" },
{ 1, "Bad" },
{ EXPERT_CHECKSUM_DISABLED, "Disabled" },
{ EXPERT_CHECKSUM_UNKNOWN, "Unknown" },
{ EXPERT_CHECKSUM_GOOD, "Good" },
{ EXPERT_CHECKSUM_BAD, "Bad" },
{ 0, NULL }
};

View File

@ -229,6 +229,11 @@ expert_register_field_array(expert_module_t* module, ei_register_info *ei, const
WS_DLL_PUBLIC void
expert_add_undecoded_item(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length, const int severity);
#define EXPERT_CHECKSUM_DISABLED -2
#define EXPERT_CHECKSUM_UNKNOWN -1
#define EXPERT_CHECKSUM_GOOD 0
#define EXPERT_CHECKSUM_BAD 1
WS_DLL_PUBLIC const value_string expert_checksum_vals[];
#ifdef __cplusplus