diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-10-30 14:56:59 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-12-03 13:54:31 +0000 |
commit | 225bdf4779a0070648fced5b00cad9c1bfdc9908 (patch) | |
tree | 7474e3a12d9cccac44e66ade0587aa126c642eb3 /include/osmocom | |
parent | a2f696fa5c735bb66f67b1bb9f0ad5a2a36cafb3 (diff) |
gsm0808: add message generator for BSSMAP HANDOVER PERFORMED
We currently have no generator function that can generate BSSMAP
HANDOVER PERFORMED messages. Lets add function for this.
Change-Id: I825106858bd89afc9837811b8fed2e8accc82441
Related: OS#3645
Diffstat (limited to 'include/osmocom')
-rw-r--r-- | include/osmocom/gsm/gsm0808.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h index 298b3e47..e3fb6ad0 100644 --- a/include/osmocom/gsm/gsm0808.h +++ b/include/osmocom/gsm/gsm0808.h @@ -172,6 +172,30 @@ struct gsm0808_handover_failure { }; struct msgb *gsm0808_create_handover_failure(const struct gsm0808_handover_failure *params); +struct gsm0808_handover_performed { + uint16_t cause; + struct gsm0808_cell_id cell_id; + + bool chosen_channel_present; + uint8_t chosen_channel; + + bool chosen_encr_alg_present; + uint8_t chosen_encr_alg; + + bool speech_version_chosen_present; + uint8_t speech_version_chosen; + + bool speech_codec_chosen_present; + struct gsm0808_speech_codec speech_codec_chosen; + + bool lcls_bss_status_present; + enum gsm0808_lcls_status lcls_bss_status; + + /* more items are defined in the spec and may be added later */ + bool more_items; /*< always set this to false */ +}; +struct msgb *gsm0808_create_handover_performed(const struct gsm0808_handover_performed *params); + struct msgb *gsm0808_create_dtap(struct msgb *msg, uint8_t link_id); void gsm0808_prepend_dtap_header(struct msgb *msg, uint8_t link_id); |