path: root/src/gsm
diff options
authorHarald Welte <laforge@gnumonks.org>2019-02-18 13:44:30 +0100
committerHarald Welte <laforge@gnumonks.org>2019-02-18 13:34:02 +0000
commitd1365e1a815c057947257c7342a1153476dc721f (patch)
tree3fbd23cab2fe0c2b81fcb5d744517100ea675e79 /src/gsm
parent10ba47dd37951a4f572626c1a8df50242a4c47da (diff)
gsm0808: comment about difference of gsm0808_create_clear_command()
This single function has a quite different behavior than the other gsm0808_ functions in terms of how the resulting msgb l3h pointers are set. Let's document that to avoid more confusion. Change-Id: I0367760a588fc968c5a2dea46001ef1ee7965c8c
Diffstat (limited to 'src/gsm')
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 86b6c058..48730766 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -178,7 +178,10 @@ struct msgb *gsm0808_create_clear_complete(void)
return msg;
-/*! Create BSSMAP Clear Command message
+/*! Create BSSMAP Clear Command message with BSSAP header *before* l3h and BSSMAP in l3h.
+ * This is quite different from most (all?) other gsm0808_create_* which have l3h
+ * point to the BSSAP header. However, we have to keep this for backwards compatibility.
+ * Use gsm0808_create_clear_command2() for a 'modern' implementation.
* \param[in] cause TS 08.08 cause value
* \returns callee-allocated msgb with BSSMAP Clear Command message */
struct msgb *gsm0808_create_clear_command(uint8_t cause)