From a62fe31d69a5205cea9d7f4c744c50aa07b0a332 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 19 Jun 2013 15:14:37 +0200 Subject: introduce gsm0808_create_reset_ack() --- src/gsm/gsm0808.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gsm') 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, -- cgit v1.2.3