mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-sgsn.git
synced 2025-11-02 13:13:16 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user