aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsm/gsm0808.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-09-13 05:36:32 +0200
committerHarald Welte <laforge@gnumonks.org>2018-09-13 14:27:26 +0000
commit2c79d55934f033dd18a61c309c0487f3c5d81961 (patch)
tree41fef7d9992afad2c9ef2ae63b4551135f61ccfa /src/gsm/gsm0808.c
parent3a9ff11e574fa7ee19b1062b2c90151dbf7f0e27 (diff)
gsm0808: implement BSSMAP Classmark Request
Diffstat (limited to 'src/gsm/gsm0808.c')
-rw-r--r--src/gsm/gsm0808.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index e3b10d0c..9a9f70ee 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -341,6 +341,19 @@ struct msgb *gsm0808_create_lcls_notification(enum gsm0808_lcls_status status, b
return msg;
}
+/*! Create BSSMAP Classmark Request message
+ * \returns callee-allocated msgb with BSSMAP Classmark Request message */
+struct msgb *gsm0808_create_classmark_request()
+{
+ struct msgb *msg = msgb_alloc_headroom(BSSMAP_MSG_SIZE, BSSMAP_MSG_HEADROOM,
+ "classmark-request");
+ if (!msg)
+ return NULL;
+
+ msgb_v_put(msg, BSS_MAP_MSG_CLASSMARK_RQST);
+ msg->l3h = msgb_tv_push(msg, BSSAP_MSG_BSS_MANAGEMENT, msgb_length(msg));
+ return msg;
+}
/*! Create BSSMAP Classmark Update message
* \param[in] cm2 Classmark 2