libosmogsm
0.9.6.311-c977
Osmocom GSM library
|
GSM Network Management (OML) messages on the A-bis interface. More...
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. More... | |
const char * | abis_nm_nack_name (uint8_t nack) |
Get human-readable string for OML NACK message type. More... | |
const char * | abis_nm_event_type_name (uint8_t cause) |
Get human-readable string for OML event type. More... | |
const char * | abis_nm_severity_name (uint8_t cause) |
Get human-readable string for perceived OML severity. More... | |
const char * | abis_nm_opstate_name (uint8_t os) |
Get human-readable string for OML Operational State. More... | |
const char * | abis_nm_avail_name (uint8_t avail) |
Get human-readable string for OML Availability State. More... | |
const char * | abis_nm_test_name (uint8_t test) |
Get human-readable string for OML test. More... | |
int | abis_nm_chcomb4pchan (enum gsm_phys_chan_config pchan) |
Obtain OML Channel Combination for phnsical channel config. More... | |
enum gsm_phys_chan_config | abis_nm_pchan4chcomb (uint8_t chcomb) |
Obtain physical channel config for OML Channel Combination. More... | |
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. More... | |
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. More... | |
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 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. 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... | |
const struct value_string | abis_nm_adm_state_names [] |
Human-readable names for OML administrative state. More... | |
const struct tlv_definition | abis_nm_att_tlvdef |
GSM A-bis OML TLV parser definition. More... | |
const struct tlv_definition | abis_nm_osmo_att_tlvdef |
org.osmocom GSM A-bis OML TLV parser definition More... | |
const struct tlv_definition | abis_nm_att_tlvdef_ipa |
GSM A-bis OML IPA TLV parser definition. More... | |
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. More... | |
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 More... | |
const struct value_string | abis_nm_att_names [] |
3GPP TS 52.021 §9.4 Attributes and Parameters More... | |
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. More... | |
const struct tlv_definition | abis_nm_att_tlvdef |
GSM A-bis OML TLV parser definition. More... | |
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 [] |
GSM Network Management (OML) messages on the A-bis interface.
3GPP TS 12.21 version 8.0.0 Release 1999 / ETSI TS 100 623 V8.0.0
#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 |
const char * abis_nm_avail_name | ( | uint8_t | avail | ) |
Get human-readable string for OML Availability State.
References avail_names.
int abis_nm_chcomb4pchan | ( | enum gsm_phys_chan_config | pchan | ) |
Obtain OML Channel Combination for phnsical channel config.
References chcomb4pchan.
void abis_nm_debugp_foh | ( | int | ss, |
struct abis_om_fom_hdr * | foh | ||
) |
References abis_nm_obj_class_names.
const char * abis_nm_event_type_name | ( | uint8_t | cause | ) |
Get human-readable string for OML event type.
References event_type_names.
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.
References abis_nm_fail_evt_vrep().
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.
References msgb_tl16v_put(), msgb_tv_fixed_put(), and msgb_tv_put().
Referenced by abis_nm_fail_evt_rep().
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_definition::def, tlv_parse(), TLV_TYPE_TL16V, TLV_TYPE_TV, TLVP_LEN, TLVP_PRESENT, and TLVP_VAL.
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().
const char * abis_nm_nack_cause_name | ( | uint8_t | cause | ) |
Get human-readable string for NACK cause.
References nack_cause_names.
const char * abis_nm_nack_name | ( | uint8_t | nack | ) |
Get human-readable string for OML NACK message type.
References nack_names.
const char * abis_nm_opstate_name | ( | uint8_t | os | ) |
Get human-readable string for OML Operational State.
enum gsm_phys_chan_config abis_nm_pchan4chcomb | ( | uint8_t | chcomb | ) |
Obtain physical channel config for OML Channel Combination.
References chcomb4pchan, and GSM_PCHAN_NONE.
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().
const char * abis_nm_severity_name | ( | uint8_t | cause | ) |
Get human-readable string for perceived OML severity.
References severity_names.
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 char * abis_nm_test_name | ( | uint8_t | test | ) |
Get human-readable string for OML test.
References test_names.
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.
const struct value_string abis_nm_adm_state_names[] |
Human-readable names for OML administrative state.
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.
const struct tlv_definition abis_nm_att_tlvdef |
GSM A-bis OML TLV parser definition.
const struct tlv_definition abis_nm_att_tlvdef |
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 struct tlv_definition abis_nm_att_tlvdef_ipa |
GSM A-bis OML IPA TLV parser definition.
const char abis_nm_ipa_magic[13] |
const char abis_nm_ipa_magic[13] = "com.ipaccess" |
const struct value_string abis_nm_msg_disc_names[] |
Human-readable strings for A-bis OML Object Class.
const struct value_string abis_nm_msg_disc_names[] |
Human-readable strings for A-bis OML Object Class.
const struct value_string abis_nm_msgtype_names[] |
3GPP TS 52.021 §9.1 Message Types
enum abis_nm_msgtype abis_nm_nacks[33] |
All NACKs (negative acknowledgements.
enum abis_nm_msgtype abis_nm_nacks[33] |
All NACKs (negative acknowledgements.
enum abis_nm_msgtype abis_nm_no_ack_nack[3] |
messages without ACK/NACK
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.
Referenced by abis_nm_debugp_foh().
const struct value_string abis_nm_obj_class_names[] |
Human-readable strings for A-bis OML Object Class.
Referenced by abis_nm_debugp_foh().
const struct tlv_definition abis_nm_osmo_att_tlvdef |
org.osmocom 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 char abis_nm_osmo_magic[12] |
const char abis_nm_osmo_magic[12] = "org.osmocom" |
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_reports[4] |
unidirectional messages from BTS to BSC
enum abis_nm_msgtype abis_nm_sw_load_msgs[9] |
messages related to software load
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 |
Referenced by abis_nm_avail_name().
|
static |
Referenced by abis_nm_chcomb4pchan(), and abis_nm_pchan4chcomb().
|
static |
Referenced by abis_nm_event_type_name().
|
static |
Referenced by abis_nm_nack_cause_name().
|
static |
Referenced by abis_nm_nack_name().
|
static |
Referenced by abis_nm_severity_name().
|
static |
Referenced by abis_nm_test_name().