diff options
author | Max <msuraev@sysmocom.de> | 2018-01-05 14:19:33 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-01-08 13:02:07 +0000 |
commit | f1ad60e4d861d5ff462a8d7ab481ad082360f346 (patch) | |
tree | d3cbc64a221e5a163b6407aaf6f9a7c65d76472c /src/gsm/libosmogsm.map | |
parent | e1a511b0319bc2d8fc271aaee52d3a8ce2acf1e1 (diff) |
Add function to properly encode RAI
Add gsm48_encode_ra() which takes appropriate struct as [out] parameter
instead of generic buffer. Using uint8_t buffer instead of proper struct
type prooved to be error-prone - see Coverity CID57877, CID57876.
Old gsm48_construct_ra() is made into tiny wrapper around new
function. The test output is adjusted because of the change in function
return value which was constant and hence ignored anyway.
Related: OS#1640
Change-Id: I31f9605277f4945f207c2c44ff82e62399f8db74
Diffstat (limited to 'src/gsm/libosmogsm.map')
-rw-r--r-- | src/gsm/libosmogsm.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gsm/libosmogsm.map b/src/gsm/libosmogsm.map index d915234c..5611ba3f 100644 --- a/src/gsm/libosmogsm.map +++ b/src/gsm/libosmogsm.map @@ -205,6 +205,7 @@ gsm48_cc_msg_name; gsm48_rr_msg_name; gsm48_cc_state_name; gsm48_construct_ra; +gsm48_encode_ra; gsm48_hdr_gmm_cipherable; gsm48_decode_bcd_number; gsm48_decode_bearer_cap; |