From ecbcdf52ec7c165c7933346441c02030833aba78 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 2 Jan 2017 14:43:35 +0100 Subject: Add OML Failure Event Report support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/osmocom/gsm/protocol/gsm_12_21.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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, ...); /*! @} */ -- cgit v1.2.3