forked from osmocom/wireshark
Differentiate "Disabled" from "Unknown" and provide macros for the enumerated values.
svn path=/trunk/; revision=50323
This commit is contained in:
parent
e16933f496
commit
7ae263b9e4
|
@ -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 }
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue