summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-01-02 14:43:35 +0100
committerMax <msuraev@sysmocom.de>2017-01-06 18:05:49 +0100
commitecbcdf52ec7c165c7933346441c02030833aba78 (patch)
treee8939107701f6f5e490901a0ea6cd6a818e5b74b /include
parent07352fee098758431ae1434c47c054d94887a6d4 (diff)
Add OML Failure Event Report support
Add 3GPP TS 12.21 ยง 8.8.2 Failure Event Report function which pack given vararg string and parameters into msgb. Change-Id: I58c198d8ea588432c62520928b08f0b2a7035e93 Related: OS#1615
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/protocol/gsm_12_21.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 6a37392c..deca2df9 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -45,6 +45,9 @@ struct abis_om_hdr {
uint8_t data[0];
} __attribute__ ((packed));
+#define ABIS_NM_MSG_SIZE 1024
+#define ABIS_NM_MSG_HEADROOM 128
+
/*! \brief Message Discriminator for Formatted Object Messages */
#define ABIS_OM_MDISC_FOM 0x80
/*! \brief Message Discriminator for Man Machine Interface */
@@ -781,4 +784,8 @@ enum ipac_bcch_info_type {
IPAC_BINF_CELL_ALLOC = (1 << 2),
};
+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, ...);
/*! @} */