nas_5gs: fix ifdefs in nas_5gs_mm_message_type_vals.

The command tshark -G values gave the error:

** (process:26713): WARNING **: Extended value string 'nas_5gs_mm_message_type_vals' forced to fall back to linear search:

that caused regression tests to fail.

Fixes: v2.9.0rc0-947-g587b5a7.
Change-Id: I6c8b8c7e93838f407a363390ba2385603dc62338
Reviewed-on: https://code.wireshark.org/review/28270
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Dario Lombardo 2018-06-14 17:38:51 +02:00 committed by Anders Broman
parent 587b5a756e
commit 5b3ce0bf9e
1 changed files with 8 additions and 8 deletions

View File

@ -3408,13 +3408,6 @@ static const value_string nas_5gs_mm_message_type_vals[] = {
{ 0x58, "Authentication reject"},
{ 0x59, "Authentication failure"},
{ 0x5a, "Identity request" },
{ 0x5b, "Identity response" },
{ 0x5c, "Security mode command" },
{ 0x5d, "Security mode complete" },
{ 0x5e, "Security mode reject" },
{ 0x5f, "Not used in v 0.4.0" },
#ifdef NAS_V_2_0_0
{ 0x5a, "Authentication result"},
{ 0x5b, "Identity request"},
@ -3423,6 +3416,13 @@ static const value_string nas_5gs_mm_message_type_vals[] = {
{ 0x5e, "Security mode complete"},
{ 0x5f, "Security mode reject"},
#else
{ 0x5a, "Identity request" },
{ 0x5b, "Identity response" },
{ 0x5c, "Security mode command" },
{ 0x5d, "Security mode complete" },
{ 0x5e, "Security mode reject" },
{ 0x5f, "Not used in v 0.4.0" },
{ 0x60, "Not used in v 0.4.0" },
{ 0x61, "Not used in v 0.4.0" },
{ 0x62, "Not used in v 0.4.0" },
@ -3439,7 +3439,7 @@ static const value_string nas_5gs_mm_message_type_vals[] = {
{ 0x66, "DL NAS transport"},
{ 0x67, "UL NAS transport"},
#endif
{ 0, NULL }
{ 0, NULL }
};
static value_string_ext nas_5gs_mm_msg_strings_ext = VALUE_STRING_EXT_INIT(nas_5gs_mm_message_type_vals);