diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2013-03-18 20:26:47 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2013-03-18 20:26:47 +0000 |
commit | 94f330030de8410b5f28798ad12da48a9944ab36 (patch) | |
tree | 71cc02064eac3f36fd4234990f9e2f3a588c4a2c /epan/dissectors/packet-gsm_a_common.c | |
parent | 434aae5245f83f69bf3eb49ad34966c442117385 (diff) |
use enum values instead of hardcoded values
(as suggested by Sylvain Munaut in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8487)
svn path=/trunk/; revision=48397
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index 1f304ed6e9..4406b96b42 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -46,24 +46,24 @@ const value_string gsm_common_elem_strings[] = { /* Common Information Elements 10.5.1 */ - { 0x00, "Cell Identity" }, - { 0x01, "Ciphering Key Sequence Number" }, - { 0x02, "Location Area Identification (LAI)" }, - { 0x03, "Mobile Identity" }, - { 0x04, "Mobile Station Classmark 1" }, - { 0x05, "Mobile Station Classmark 2" }, - { 0x06, "Mobile Station Classmark 3" }, - { 0x07, "Spare Half Octet" }, - { 0x08, "Descriptive group or broadcast call reference" }, - { 0x09, "Group Cipher Key Number" }, - { 0x0a, "PD and SAPI $(CCBS)$" }, - { 0x0b, "Priority Level" }, - { 0x0c, "CN Common GSM-MAP NAS system information" }, - { 0x0d, "CS domain specific system information" }, - { 0x0e, "PS domain specific system information" }, - { 0x0f, "PLMN List" }, - { 0x10, "NAS container for PS HO" }, - { 0x11, "MS network feature support" }, + { DE_CELL_ID, "Cell Identity" }, + { DE_CIPH_KEY_SEQ_NUM, "Ciphering Key Sequence Number" }, + { DE_LAI, "Location Area Identification (LAI)" }, + { DE_MID, "Mobile Identity" }, + { DE_MS_CM_1, "Mobile Station Classmark 1" }, + { DE_MS_CM_2, "Mobile Station Classmark 2" }, + { DE_MS_CM_3, "Mobile Station Classmark 3" }, + { DE_SPARE_NIBBLE, "Spare Half Octet" }, + { DE_D_GB_CALL_REF, "Descriptive group or broadcast call reference" }, + { DE_G_CIPH_KEY_NUM, "Group Cipher Key Number" }, + { DE_PD_SAPI, "PD and SAPI $(CCBS)$" }, + { DE_PRIO, "Priority Level" }, + { DE_CN_COMMON_GSM_MAP_NAS_SYS_INFO, "CN Common GSM-MAP NAS system information" }, + { DE_CS_DOMAIN_SPEC_SYS_INFO, "CS domain specific system information" }, + { DE_PS_DOMAIN_SPEC_SYS_INFO, "PS domain specific system information" }, + { DE_PLMN_LIST, "PLMN List" }, + { DE_NAS_CONT_FOR_PS_HO, "NAS container for PS HO" }, + { DE_MS_NET_FEAT_SUP, "MS network feature support" }, { 0, NULL } }; |