osmo-bsc/src/libbsc
Neels Hofmeyr 4d358c00e1 gsm48_ra_id_by_bts(): struct gsm48_ra_id* instead of buf
Move from using deprecated gsm48_construct_ra(), which uses a buf, to
gsm48_encode_ra(), which uses a gsm48_ra_id argument. Pass struct gsm48_ra_id
around instead of a buf.

struct gsm48_ra_id is the "encoded" representation of the bytes in a typical
MCC-MNC-LAC-RAC (04.08 Routing Area Id IE, 3GPP TS 24.008 § 10.5.5.15). Using
the struct spares using magic numbers for byte offsets.

In the process, fix a sanitizer warning for unaligned access by using memcpy()
instead of pointer assignment:

  osmo-bsc/src/libbsc/abis_nm.c:2857:27: runtime error: store to misaligned address 0x7ffe8e0d6695 for type 'uint16_t', which requires 2 byte alignment

Note that (besides removing a now unnecessary cast) the gsm0408_test and
abis_test tests of RAI / CGI encoding remain stable, which indicates that the
new code is still correct.

Change-Id: I0d3908fb8ca1e2e669d257b5d59b40675fa85d06
2018-03-05 05:35:54 +01:00
..
Makefile.am Add support for Access Control Class ramping. 2018-02-27 14:29:39 +00:00
a_reset.c a_reset: Add FSM event names 2018-03-01 23:08:15 +00:00
abis_nm.c gsm48_ra_id_by_bts(): struct gsm48_ra_id* instead of buf 2018-03-05 05:35:54 +01:00
abis_nm_ipaccess.c move openbsc/* to repos root 2017-08-27 03:52:43 +02:00
abis_nm_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:48:52 +01:00
abis_om2000.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
abis_om2000_vty.c compiler warnings: drop some unused variables 2017-11-29 17:37:18 +00:00
abis_rsl.c HO: lchan: store last seen measurement report nr, tweak log 2018-02-19 15:51:18 +00:00
acc_ramp.c Add support for Access Control Class ramping. 2018-02-27 14:29:39 +00:00
arfcn_range_encode.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bsc_api.c compiler warning: chan_compat_with_mode(): clearly handle all enum vals 2018-03-05 00:59:44 +01:00
bsc_ctrl_commands.c Remove bogus MM INFO configuration 2017-12-19 17:53:14 +00:00
bsc_ctrl_lookup.c Support control connection status query for a particular MSC. 2018-01-09 11:18:10 +00:00
bsc_dyn_ts.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bsc_init.c Add support for Access Control Class ramping. 2018-02-27 14:29:39 +00:00
bsc_msc.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bsc_rf_ctrl.c Make TRX rf locking more visible 2017-09-08 08:31:02 +00:00
bsc_rll.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bsc_subscriber.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bsc_vty.c bsc_vty: Merge more VTY documentation string #defines 2018-03-04 09:00:29 +00:00
bts_ericsson_rbs2000.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bts_init.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bts_ipaccess_nanobts.c Revert "Generate the S_L_INP_TEI_UP signal earlier." 2018-03-02 14:15:23 +00:00
bts_ipaccess_nanobts_omlattr.c osmo-bts/nanobts: Set RACH_Busy Threshold to -90 dBm 2018-02-27 10:09:43 +01:00
bts_nokia_site.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bts_siemens_bs11.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bts_sysmobts.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
bts_unknown.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
chan_alloc.c Add support for Access Control Class ramping. 2018-02-27 14:29:39 +00:00
e1_config.c Make RSL connection attempts time out. 2018-02-13 18:08:28 +01:00
gsm_04_08_utils.c libcommon_cs: move gsm48 bits to libbsc 2018-02-14 12:55:45 +01:00
gsm_04_80_utils.c move include/openbsc to include/osmocom/bsc 2017-09-06 16:26:13 +02:00
gsm_data.c gsm48_ra_id_by_bts(): struct gsm48_ra_id* instead of buf 2018-03-05 05:35:54 +01:00
handover_cfg.c cosmetic: adjust copyrights on handover_cfg.c,_vty.c 2018-02-19 16:31:10 +00:00
handover_decision.c HO: introduce ho decision callbacks 2018-02-19 17:11:47 +01:00
handover_decision_2.c HO: fix minor issues found by coverity 2018-02-21 14:40:16 +01:00
handover_logic.c HO: cosmetic: getting a chan activ nack on a non-ho lchan is not an error 2018-02-19 17:11:47 +01:00
handover_vty.c HO: vty: clearly mark 'handover foo' as legacy alias for 'handover1 foo' 2018-02-19 19:01:13 +01:00
meas_rep.c Fix: meas_rep.c will only use valid DL measurement reports 2018-01-21 19:06:58 +00:00
net_init.c HO: Implement load based handover, as handover_decision_2.c 2018-02-19 17:11:47 +01:00
paging.c paging: fix paging attemt rate counter 2018-02-27 07:03:56 +00:00
pcu_sock.c compiler warnings: drop some unused variables 2017-11-29 17:37:18 +00:00
penalty_timers.c HO: move penalty timers to own file as proper API 2018-02-16 16:11:16 +01:00
rest_octets.c Generate SI2bis Rest Octets 2017-12-12 18:00:56 +00:00
system_information.c Add support for Access Control Class ramping. 2018-02-27 14:29:39 +00:00