|
libosmogsm
0.9.6.241-b6c8
Osmocom GSM library
|
Files | |
| file | abis_nm.h |
| file | abis_nm.c |
Macros | |
| #define | abis_nm_debugp_foh(ss, foh) |
| write a human-readable OML header to the debug log More... | |
Functions | |
| const char * | abis_nm_nack_cause_name (uint8_t cause) |
| Get human-readable string for NACK cause. | |
| const char * | abis_nm_nack_name (uint8_t nack) |
| Get human-readable string for OML NACK message type. | |
| const char * | abis_nm_event_type_name (uint8_t cause) |
| Get human-readable string for OML event type. | |
| const char * | abis_nm_severity_name (uint8_t cause) |
| Get human-readable string for perceived OML severity. | |
| const char * | abis_nm_opstate_name (uint8_t os) |
| Get human-readable string for OML Operational State. | |
| const char * | abis_nm_avail_name (uint8_t avail) |
| Get human-readable string for OML Availability State. | |
| const char * | abis_nm_test_name (uint8_t test) |
| Get human-readable string for OML test. | |
| int | abis_nm_chcomb4pchan (enum gsm_phys_chan_config pchan) |
| Obtain OML Channel Combination for phnsical channel config. | |
| enum gsm_phys_chan_config | abis_nm_pchan4chcomb (uint8_t chcomb) |
| Obtain physical channel config for OML Channel Combination. | |
| struct msgb * | abis_nm_fail_evt_rep (enum abis_nm_event_type t, enum abis_nm_severity s, enum abis_nm_pcause_type ct, uint16_t cause_value, const char *fmt,...) |
| Pack 3GPP TS 12.21 § 8.8.2 Failure Event Report into msgb. | |
| struct msgb * | abis_nm_fail_evt_vrep (enum abis_nm_event_type t, enum abis_nm_severity s, enum abis_nm_pcause_type ct, uint16_t cause_value, const char *fmt, va_list ap) |
| Pack 3GPP TS 12.21 § 8.8.2 Failure Event Report into msgb. | |
| uint16_t | abis_nm_sw_desc_len (const struct abis_nm_sw_desc *sw, bool put_sw_desc) |
| Compute length of given 3GPP TS 52.021 §9.4.62 SW Description. More... | |
| uint16_t | abis_nm_put_sw_desc (struct msgb *msg, const struct abis_nm_sw_desc *sw, bool put_sw_desc) |
| Put given 3GPP TS 52.021 §9.4.62 SW Description into msgb. More... | |
| uint16_t | abis_nm_put_sw_file (struct msgb *msg, const char *id, const char *ver, bool put_sw_desc) |
| Put given file ID/Version pair as 3GPP TS 52.021 §9.4.62 SW Description into msgb. More... | |
| uint32_t | abis_nm_get_sw_desc_len (const uint8_t *buf, size_t len) |
| Get length of first 3GPP TS 52.021 §9.4.62 SW Description from buffer. More... | |
| static int | abis_nm_get_sw_desc (struct abis_nm_sw_desc *sw, const uint8_t *buf, size_t length) |
| Parse single 3GPP TS 52.021 §9.4.62 SW Description from buffer. More... | |
| int | abis_nm_get_sw_conf (const uint8_t *buf, size_t buf_len, struct abis_nm_sw_desc *sw, uint16_t sw_len) |
| Parse 3GPP TS 52.021 §9.4.61 SW Configuration from buffer. More... | |
| void | abis_nm_debugp_foh (int ss, struct abis_om_fom_hdr *foh) |
Variables | |
| const char | abis_nm_ipa_magic [13] |
| const char | abis_nm_osmo_magic [12] |
| enum abis_nm_msgtype | abis_nm_reports [4] |
| unidirectional messages from BTS to BSC | |
| enum abis_nm_msgtype | abis_nm_no_ack_nack [3] |
| messages without ACK/NACK | |
| enum abis_nm_msgtype | abis_nm_sw_load_msgs [9] |
| messages related to software load | |
| enum abis_nm_msgtype | abis_nm_nacks [33] |
| All NACKs (negative acknowledgements. | |
| const struct value_string | abis_nm_msg_disc_names [] |
| Human-readable strings for A-bis OML Object Class. | |
| const struct value_string | abis_nm_obj_class_names [] |
| Human-readable strings for A-bis OML Object Class. | |
| const struct value_string | abis_nm_adm_state_names [] |
| Human-readable names for OML administrative state. | |
| const struct tlv_definition | abis_nm_att_tlvdef |
| GSM A-bis OML TLV parser definition. | |
| const struct tlv_definition | abis_nm_osmo_att_tlvdef |
| org.osmocom GSM A-bis OML TLV parser definition | |
| const struct tlv_definition | abis_nm_att_tlvdef_ipa |
| GSM A-bis OML IPA TLV parser definition. | |
| const char | abis_nm_ipa_magic [13] = "com.ipaccess" |
| const char | abis_nm_osmo_magic [12] = "org.osmocom" |
| enum abis_nm_msgtype | abis_nm_reports [4] |
| unidirectional messages from BTS to BSC More... | |
| enum abis_nm_msgtype | abis_nm_no_ack_nack [3] |
| messages without ACK/NACK More... | |
| enum abis_nm_msgtype | abis_nm_sw_load_msgs [9] |
| messages related to software load More... | |
| enum abis_nm_msgtype | abis_nm_nacks [33] |
| All NACKs (negative acknowledgements. | |
| static const struct value_string | nack_names [] |
| const struct value_string | abis_mm_event_cause_names [] |
| const struct value_string | abis_nm_pcause_type_names [] |
| static const struct value_string | nack_cause_names [] |
| static const struct value_string | event_type_names [] |
| static const struct value_string | severity_names [] |
| const uint8_t | abis_nm_t200_ms [] |
| 3GPP TS 12.21 9.4.53 T200 values (in msec) More... | |
| const struct value_string | abis_nm_msgtype_names [] |
| 3GPP TS 52.021 §9.1 Message Types | |
| const struct value_string | abis_nm_att_names [] |
| 3GPP TS 52.021 §9.4 Attributes and Parameters | |
| enum abis_nm_attr | abis_nm_att_settable [] |
| Attributes that the BSC can set, not only get, according to Section 9.4. More... | |
| const struct tlv_definition | abis_nm_att_tlvdef_ipa |
| GSM A-bis OML IPA TLV parser definition. | |
| const struct tlv_definition | abis_nm_att_tlvdef |
| GSM A-bis OML TLV parser definition. | |
| const struct tlv_definition | abis_nm_osmo_att_tlvdef |
| org.osmocom GSM A-bis OML TLV parser definition More... | |
| const struct value_string | abis_nm_msg_disc_names [] |
| Human-readable strings for A-bis OML Object Class. More... | |
| const struct value_string | abis_nm_obj_class_names [] |
| Human-readable strings for A-bis OML Object Class. More... | |
| static const struct value_string | avail_names [] |
| static const struct value_string | test_names [] |
| const struct value_string | abis_nm_adm_state_names [] |
| Human-readable names for OML administrative state. More... | |
| static enum abis_nm_chan_comb | chcomb4pchan [] |
| #define abis_nm_debugp_foh | ( | ss, | |
| foh | |||
| ) |
write a human-readable OML header to the debug log
| [in] | ss | Logging sub-system |
| [in] | foh | A-bis OML FOM header |
| int abis_nm_get_sw_conf | ( | const uint8_t * | buf, |
| size_t | buf_len, | ||
| struct abis_nm_sw_desc * | sw, | ||
| uint16_t | sw_len | ||
| ) |
Parse 3GPP TS 52.021 §9.4.61 SW Configuration from buffer.
| [in] | buf | buffer |
| [in] | buf_len | buffer length |
| [out] | sw | SW Description struct array |
| [in] | sw_len | Expected number of SW Description entries |
References abis_nm_get_sw_desc(), and abis_nm_get_sw_desc_len().
|
inlinestatic |
Parse single 3GPP TS 52.021 §9.4.62 SW Description from buffer.
| [out] | sw | SW Description struct |
| [in] | buf | buffer |
| [in] | len | buffer length |
References abis_nm_get_sw_desc_len(), tlv_parse(), TLV_TYPE_TL16V, and TLV_TYPE_TV.
Referenced by abis_nm_get_sw_conf().
| uint32_t abis_nm_get_sw_desc_len | ( | const uint8_t * | buf, |
| size_t | len | ||
| ) |
Get length of first 3GPP TS 52.021 §9.4.62 SW Description from buffer.
| [in] | buf | buffer, may contain several SW Descriptions |
| [in] | len | buffer length |
Referenced by abis_nm_get_sw_conf(), and abis_nm_get_sw_desc().
| uint16_t abis_nm_put_sw_desc | ( | struct msgb * | msg, |
| const struct abis_nm_sw_desc * | sw, | ||
| bool | put_sw_desc | ||
| ) |
Put given 3GPP TS 52.021 §9.4.62 SW Description into msgb.
| [out] | msg | message buffer |
| [in] | sw | SW Description struct |
| [in] | put_sw_descr | boolean, whether to put NM_ATT_SW_DESCR IE or not |
References abis_nm_sw_desc_len(), msgb_tl16v_put(), and msgb_v_put().
Referenced by abis_nm_put_sw_file().
| uint16_t abis_nm_put_sw_file | ( | struct msgb * | msg, |
| const char * | id, | ||
| const char * | ver, | ||
| bool | put_sw_desc | ||
| ) |
Put given file ID/Version pair as 3GPP TS 52.021 §9.4.62 SW Description into msgb.
| [out] | msg | message buffer |
| [in] | id | File ID part of SW Description |
| [in] | id | File Version part of SW Description |
| [in] | put_sw_descr | boolean, whether to put NM_ATT_SW_DESCR IE or not |
References abis_nm_put_sw_desc().
| uint16_t abis_nm_sw_desc_len | ( | const struct abis_nm_sw_desc * | sw, |
| bool | put_sw_desc | ||
| ) |
Compute length of given 3GPP TS 52.021 §9.4.62 SW Description.
| [in] | sw | SW Description struct |
| [in] | put_sw_descr | boolean, whether to put NM_ATT_SW_DESCR IE or not |
Referenced by abis_nm_put_sw_desc().
| const struct value_string abis_mm_event_cause_names[] |
| const struct value_string abis_nm_adm_state_names[] |
Human-readable names for OML administrative state.
| enum abis_nm_attr abis_nm_att_settable[] |
Attributes that the BSC can set, not only get, according to Section 9.4.
| const struct value_string abis_nm_msg_disc_names[] |
Human-readable strings for A-bis OML Object Class.
| enum abis_nm_msgtype abis_nm_no_ack_nack[3] |
messages without ACK/NACK
| const struct value_string abis_nm_obj_class_names[] |
Human-readable strings for A-bis OML Object Class.
| const struct tlv_definition abis_nm_osmo_att_tlvdef |
org.osmocom GSM A-bis OML TLV parser definition
| const struct value_string abis_nm_pcause_type_names[] |
| enum abis_nm_msgtype abis_nm_reports[4] |
unidirectional messages from BTS to BSC
| enum abis_nm_msgtype abis_nm_sw_load_msgs[9] |
messages related to software load
| const uint8_t abis_nm_t200_ms[] |
3GPP TS 12.21 9.4.53 T200 values (in msec)
|
static |
|
static |
|
static |
|
static |
|
static |