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
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 6a37392..deca2df 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -45,6 +45,9 @@
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 @@
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, ...);
/*! @} */