gprs_gmm_util: add parsing of GMM Attach Requests

This will be used in the following commit.

Change-Id: I4a82e0c4070da982efd6c2f15fd145393423772b
This commit is contained in:
Alexander Couzens
2024-11-27 02:39:50 +01:00
parent 028c299bb2
commit 27dd6d84ec
2 changed files with 137 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include <stdint.h>
#include <osmocom/gsm/gsm23003.h>
#include <osmocom/gsm/gsm48.h>
#include <osmocom/gsm/tlv.h>
struct msgb;
@@ -22,4 +23,20 @@ struct gprs_gmm_ra_upd_req {
struct tlv_parsed tlv;
};
int gprs_gmm_parse_ra_upd_req(struct msgb *msg, struct gprs_gmm_ra_upd_req *rau_req);
struct gprs_gmm_att_req {
uint8_t skip_ind; /* 10.3.1 */
uint8_t attach_type; /* 10.5.5.2 */
bool follow_up_req; /* 10.5.5.2 */
uint8_t cksq; /* 10.5.1.2 */
uint16_t drx_parms; /* 10.5.5.6 */
struct osmo_mobile_identity mi; /* 10.5.1.4 */
struct osmo_routing_area_id old_rai; /* 10.5.5.15 */
uint8_t *ms_network_cap; /* 10.5.5.12 */
uint8_t ms_network_cap_len;
uint8_t *ms_radio_cap; /* 10.5.5.12a */
uint8_t ms_radio_cap_len;
struct tlv_parsed tlv;
};
int gprs_gmm_parse_ra_upd_req(const struct msgb *msg, struct gprs_gmm_ra_upd_req *rau_req);
int gprs_gmm_parse_att_req(const struct msgb *msg, struct gprs_gmm_att_req *att_req);