summaryrefslogtreecommitdiffstats
path: root/src/gsm
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-19 15:14:37 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-29 10:53:33 +0200
commita62fe31d69a5205cea9d7f4c744c50aa07b0a332 (patch)
tree0374b2d00d5eab520c1690aa4d72d9cfbdde48bc /src/gsm
parent14df1c07ec6f1525902fa31037fdfd60c24b3bb9 (diff)
introduce gsm0808_create_reset_ack()
Diffstat (limited to 'src/gsm')
-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 30098278..f67ca78c 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -76,6 +76,19 @@ struct msgb *gsm0808_create_reset(void)
return msg;
}
+struct msgb *gsm0808_create_reset_ack(void)
+{
+ struct msgb *msg = msgb_alloc_headroom(BSSMAP_MSG_SIZE, BSSMAP_MSG_HEADROOM,
+ "bssmap: reset ack");
+ if (!msg)
+ return NULL;
+
+ msgb_v_put(msg, BSS_MAP_MSG_RESET_ACKNOWLEDGE);
+ msg->l3h = msgb_tv_push(msg, BSSAP_MSG_BSS_MANAGEMENT, msgb_length(msg));
+
+ return msg;
+}
+
struct msgb *gsm0808_create_clear_complete(void)
{
struct msgb *msg = msgb_alloc_headroom(BSSMAP_MSG_SIZE, BSSMAP_MSG_HEADROOM,