-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GMM: split parsing of a RA Update Request in a separate file
gprs_gmm.c is huge. Further split the general validation and parsing of the message into an own function. Change-Id: I413da1b6b4b7c0c4781393acd8564661bc74ce2d
- Loading branch information
Showing
3 changed files
with
104 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
#pragma once | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#include <osmocom/gsm/gsm23003.h> | ||
#include <osmocom/gsm/tlv.h> | ||
|
||
struct msgb; | ||
|
||
extern const struct tlv_definition gsm48_gmm_ie_tlvdef; | ||
|
||
/* 9.4.14 RAU Request */ | ||
struct gprs_gmm_ra_upd_req { | ||
uint8_t skip_ind; /* 10.3.1 */ | ||
uint8_t update_type; /* 10.5.5.18 */ | ||
bool follow_up_req; /* 10.5.5.18 */ | ||
uint8_t cksq; /* 10.5.1.2 */ | ||
struct osmo_routing_area_id old_rai; /* 10.5.5.15 */ | ||
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(struct msgb *msg, struct gprs_gmm_ra_upd_req *rau_req); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters