From 783047e86ec64677f3894bd22576315eee631275 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 29 Mar 2017 11:35:50 +0200 Subject: gsm0808: Add utils for Cell Identifier List The planned support for true A over IP requires the encoding of the a Cell Identifier List element (see also BSS_MAP_MSG_PAGING). This commt adds encoding/decoding functionality and tests for the element mentioned above, however, it is not yet actively used. Change-Id: I625245dd1dd396fc2bc189e8cd2c444a33042528 --- include/osmocom/gsm/protocol/gsm_08_08.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/osmocom/gsm/protocol/gsm_08_08.h') diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 3939aedd..e5e7e1ef 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -457,3 +457,11 @@ struct gsm0808_encrypt_info { uint8_t key[ENCRY_INFO_KEY_MAXLEN]; unsigned int key_len; }; + +/* 3GPP TS 48.008 3.2.2.27 Cell Identifier List */ +#define CELL_ID_LIST_LAC_MAXLEN 127 +struct gsm0808_cell_id_list { + uint8_t id_discr; + uint16_t id_list_lac[CELL_ID_LIST_LAC_MAXLEN]; + unsigned int id_list_len; +}; -- cgit v1.2.3