aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-02-08 21:47:14 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-08 22:09:29 +0100
commit3c89e2c36a4c2fe16c569851464533df791cf8f5 (patch)
tree44716138634148678c4ef8a2579905e0c10f6df4 /src/common/oml.c
parent9c9232c993ad7f56ebeaaa7e7632ce235446b533 (diff)
OML: some more comments on what functions do
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 41debc1b..ce598651 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -102,6 +102,7 @@ void oml_fail_rep(uint16_t cause_value, const char *fmt, ...)
talloc_free(rep);
}
+/* Push OM header in front of msgb and send it */
int oml_send_msg(struct msgb *msg, int is_manuf)
{
struct abis_om_hdr *omh;
@@ -363,6 +364,8 @@ int oml_mo_state_chg(struct gsm_abis_mo *mo, int op_state, int avail_state)
return rc;
}
+/* Send an ACK or NACK response from 'mo' to BSC, deriving message
+ * type from 'orig_msg_type'. ACK is sent if cause == 0; NACK otherwise */
int oml_mo_fom_ack_nack(struct gsm_abis_mo *mo, uint8_t orig_msg_type,
uint8_t cause)
{
@@ -417,6 +420,9 @@ int oml_mo_opstart_nack(struct gsm_abis_mo *mo, uint8_t nack_cause)
return oml_mo_fom_ack_nack(mo, NM_MT_OPSTART, nack_cause);
}
+/* Send an ACK or NACK response for 'msg' to BSC, deriving message
+ * type, obj class, obj inst from 'msg' and copying all attributes
+ * contained in 'msg'. ACK is sent if cause == 0; NACK otherwise */
int oml_fom_ack_nack(struct msgb *old_msg, uint8_t cause)
{
struct abis_om_hdr *old_oh = msgb_l2(old_msg);