[PATCH] libosmocore[master]: abis: add attribute names
Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/2144 to look at the new patch set (#2). abis: add attribute names Add human-readable names for Attributes from 3GPP TS 52.021 §9.4 Change-Id: I861247c01557dac7e484ef6fb9b170f69c8a7f55 Related: OS#1614 --- M include/osmocom/gsm/protocol/gsm_12_21.h M src/gsm/abis_nm.c M src/gsm/libosmogsm.map 3 files changed, 73 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/2144/2 diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h index d6e8c11..40237cb 100644 --- a/include/osmocom/gsm/protocol/gsm_12_21.h +++ b/include/osmocom/gsm/protocol/gsm_12_21.h @@ -595,6 +595,7 @@ }; extern const struct value_string abis_nm_pcause_type_names[]; +extern const struct value_string abis_nm_att_names[]; /*! \brief NACK causes (Section 9.4.36) */ enum abis_nm_nack_cause { diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c index 155084a..e98866c 100644 --- a/src/gsm/abis_nm.c +++ b/src/gsm/abis_nm.c @@ -261,6 +261,77 @@ [T200_SACCH_TCH_SAPI3] = 10 }; +/*! \brief 3GPP TS 52.021 §9.4 Attributes and Parameters */ +const struct value_string abis_nm_att_names[] = { + { NM_ATT_ABIS_CHANNEL, "Abis Channel" }, /* §9.4.1 */ + { NM_ATT_ADD_INFO, "Additional Info" }, /* §9.4.2 */ + { NM_ATT_ADD_TEXT, "Additional Text" }, /* §9.4.3 */ + { NM_ATT_ADM_STATE, "Administrative State" }, /* §9.4.4 */ + { NM_ATT_ARFCN_LIST,"ARFCN List" }, /* §9.4.5 */ + { NM_ATT_AUTON_REPORT, "Autonomously Report" }, /* §9.4.6 */ + { NM_ATT_AVAIL_STATUS, "Availability Status" }, /* §9.4.7 */ + { NM_ATT_BCCH_ARFCN,"BCCH ARFCN" }, /* §9.4.8 */ + { NM_ATT_BSIC, "BSIC" }, /* §9.4.9 */ + { NM_ATT_BTS_AIR_TIMER, "BTS Air Timer" }, /* §9.4.10 */ + { NM_ATT_CCCH_L_I_P,"CCCH Load Indication Period" }, /* §9.4.11 */ + { NM_ATT_CCCH_L_T, "CCCH Load Threshold" }, /* §9.4.12 */ + { NM_ATT_CHAN_COMB, "Channel Combination" }, /* §9.4.13 */ + { NM_ATT_CONN_FAIL_CRIT,"Connection Failure Criterion" }, /* §9.4.14 */ + { NM_ATT_DEST, "Destination" }, /* §9.4.15 */ + { NM_ATT_EVENT_TYPE,"Event Type" }, /* §9.4.16 */ + { NM_ATT_FILE_DATA, "File Data" }, /* §9.4.17 */ + { NM_ATT_FILE_ID, "File Id" }, /* §9.4.18 */ + { NM_ATT_FILE_VERSION, "File Version" }, /* §9.4.19 */ + { NM_ATT_GSM_TIME, "GSM Time" }, /* §9.4.20 */ + { NM_ATT_HSN, "HSN" }, /* §9.4.21 */ + { NM_ATT_HW_CONFIG, "HW Configuration" }, /* §9.4.22 */ + { NM_ATT_HW_DESC, "HW Description" }, /* §9.4.23 */ + { NM_ATT_INTAVE_PARAM, "Intave Parameter" }, /* §9.4.24 */ + { NM_ATT_INTERF_BOUND, "Interference level Boundaries" }, /* §9.4.25 */ + { NM_ATT_LIST_REQ_ATTR, "List of Required Attributes" }, /* §9.4.26 */ + { NM_ATT_MAIO, "MAIO" }, /* §9.4.27 */ + { NM_ATT_MANUF_STATE, "Manufacturer Dependent State" }, /* §9.4.28 */ + { NM_ATT_MANUF_THRESH, "Manufacturer Dependent Thresholds" }, /* §9.4.29 */ + { NM_ATT_MANUF_ID, "Manufacturer Id" }, /* §9.4.30 */ + { NM_ATT_MAX_TA,"Max Timing Advance" }, /* §9.4.31 */ + { NM_ATT_MEAS_RES, "Measurement Result" }, /* §9.4.32 */ + { NM_ATT_MEAS_TYPE, "Measurement Type" }, /* §9.4.33 */ + { NM_ATT_MDROP_LINK,"Multi-drop BSC Link" }, /* §9.4.34 */ + { NM_ATT_MDROP_NEXT,"Multi-drop next BTS Link" }, /* §9.4.35 */ + { NM_ATT_NACK_CAUSES, "Nack Causes" }, /* §9.4.36 */ + { NM_ATT_NY1, "Ny1" }, /* §9.4.37 */ + { NM_ATT_OPER_STATE,"Operational State" }, /* §9.4.38 */ + { NM_ATT_OVERL_PERIOD, "Overload Period" }, /* §9.4.39 */ + {
[PATCH] libosmocore[master]: abis: add attribute names
Review at https://gerrit.osmocom.org/2144 abis: add attribute names Add human-readable names for Attributes from 3GPP TS 52.021 §9.4 Change-Id: I861247c01557dac7e484ef6fb9b170f69c8a7f55 Related: OS#1614 --- M include/osmocom/gsm/protocol/gsm_12_21.h M src/gsm/abis_nm.c M src/gsm/libosmogsm.map 3 files changed, 66 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/2144/1 diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h index d6e8c11..40237cb 100644 --- a/include/osmocom/gsm/protocol/gsm_12_21.h +++ b/include/osmocom/gsm/protocol/gsm_12_21.h @@ -595,6 +595,7 @@ }; extern const struct value_string abis_nm_pcause_type_names[]; +extern const struct value_string abis_nm_att_names[]; /*! \brief NACK causes (Section 9.4.36) */ enum abis_nm_nack_cause { diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c index 155084a..cbd2f8a 100644 --- a/src/gsm/abis_nm.c +++ b/src/gsm/abis_nm.c @@ -261,6 +261,70 @@ [T200_SACCH_TCH_SAPI3] = 10 }; +/*! \brief 3GPP TS 52.021 §9.4 Attributes and Parameters */ +const struct value_string abis_nm_att_names[] = { + { NM_ATT_ABIS_CHANNEL, "Abis Channel" }, /* §9.4.1 */ + { NM_ATT_ADD_INFO, "Additional Info" }, /* §9.4.2 */ + { NM_ATT_ADD_TEXT, "Additional Text" }, /* §9.4.3 */ + { NM_ATT_ADM_STATE, "Administrative State" }, /* §9.4.4 */ + { NM_ATT_ARFCN_LIST,"ARFCN List" }, /* §9.4.5 */ + { NM_ATT_AUTON_REPORT, "Autonomously Report" }, /* §9.4.6 */ + { NM_ATT_AVAIL_STATUS, "Availability Status" }, /* §9.4.7 */ + { NM_ATT_BCCH_ARFCN,"BCCH ARFCN" }, /* §9.4.8 */ + { NM_ATT_BSIC, "BSIC" }, /* §9.4.9 */ + { NM_ATT_BTS_AIR_TIMER, "BTS Air Timer" }, /* §9.4.10 */ + { NM_ATT_CCCH_L_I_P,"CCCH Load Indication Period" }, /* §9.4.11 */ + { NM_ATT_CCCH_L_T, "CCCH Load Threshold" }, /* §9.4.12 */ + { NM_ATT_CHAN_COMB, "Channel Combination" }, /* §9.4.13 */ + { NM_ATT_CONN_FAIL_CRIT,"Connection Failure Criterion" }, /* §9.4.14 */ + { NM_ATT_DEST, "Destination" }, /* §9.4.15 */ + { NM_ATT_EVENT_TYPE,"Event Type" }, /* §9.4.16 */ + { NM_ATT_FILE_DATA, "File Data" }, /* §9.4.17 */ + { NM_ATT_FILE_ID, "File Id" }, /* §9.4.18 */ + { NM_ATT_FILE_VERSION, "File Version" }, /* §9.4.19 */ + { NM_ATT_GSM_TIME, "GSM Time" }, /* §9.4.20 */ + { NM_ATT_HSN, "HSN" }, /* §9.4.21 */ + { NM_ATT_HW_CONFIG, "HW Configuration" }, /* §9.4.22 */ + { NM_ATT_HW_DESC, "HW Description" }, /* §9.4.23 */ + { NM_ATT_INTAVE_PARAM, "Intave Parameter" }, /* §9.4.24 */ + { NM_ATT_INTERF_BOUND, "Interference level Boundaries" }, /* §9.4.25 */ + { NM_ATT_LIST_REQ_ATTR, "List of Required Attributes" }, /* §9.4.26 */ + { NM_ATT_MAIO, "MAIO" }, /* §9.4.27 */ + { NM_ATT_MANUF_STATE, "Manufacturer Dependent State" }, /* §9.4.28 */ + { NM_ATT_MANUF_THRESH, "Manufacturer Dependent Thresholds" }, /* §9.4.29 */ + { NM_ATT_MANUF_ID, "Manufacturer Id" }, /* §9.4.30 */ + { NM_ATT_MAX_TA,"Max Timing Advance" }, /* §9.4.31 */ + { NM_ATT_MEAS_RES, "Measurement Result" }, /* §9.4.32 */ + { NM_ATT_MEAS_TYPE, "Measurement Type" }, /* §9.4.33 */ + { NM_ATT_MDROP_LINK,"Multi-drop BSC Link" }, /* §9.4.34 */ + { NM_ATT_MDROP_NEXT,"Multi-drop next BTS Link" }, /* §9.4.35 */ + { NM_ATT_NACK_CAUSES, "Nack Causes" }, /* §9.4.36 */ + { NM_ATT_NY1, "Ny1" }, /* §9.4.37 */ + { NM_ATT_OPER_STATE,"Operational State" }, /* §9.4.38 */ + { NM_ATT_OVERL_PERIOD, "Overload Period" }, /* §9.4.39 */ + { NM_ATT_PHYS_CONF, "Physical Config" }, /* §9.4.40 */ + { NM_ATT_POWER_CLASS,