diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-11 15:22:18 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-18 13:20:58 +0200 |
commit | 948c07f490f7be7be3d5b3a2efe3390af61bfafc (patch) | |
tree | 8c81024b8de8ad7335e235ba01c22362dbc8fcad /openbsc/include/openbsc/gprs_gb_parse.h | |
parent | 991606b57a613e806e3db3be02864508f593cb27 (diff) |
gbproxy: Fixed RAI patching in Attach Request messages
Currently the RAI in the LLC part of the message is not updated if
the message has been taken from the list of stored messages. The
reason is, that old_raid_matches is update in
gbprox_process_bssgp_ul() but not in gbproxy_flush_stored_messages().
This patch moves the check to gprs_gb_parse_bssgp() which is called
at both places and where other fields like parse_ctx->tlli are set,
too.
In addition, old_raid_matches is replaced by old_raid_is_foreign
since this is clearer in the case when there is no old RAI at all.
Several RAI patch counter assertions are also added to
test_gbproxy_ra_patching().
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/gprs_gb_parse.h')
-rw-r--r-- | openbsc/include/openbsc/gprs_gb_parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gprs_gb_parse.h b/openbsc/include/openbsc/gprs_gb_parse.h index eaf42d35d..eb9776339 100644 --- a/openbsc/include/openbsc/gprs_gb_parse.h +++ b/openbsc/include/openbsc/gprs_gb_parse.h @@ -37,7 +37,7 @@ struct gprs_gb_parse_context { int need_decryption; uint32_t tlli; int pdu_type; - int old_raid_matches; + int old_raid_is_foreign; }; int gprs_gb_parse_dtap(uint8_t *data, size_t data_len, |