aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-12 14:22:32 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-12 15:17:33 +0100
commit4b4c997dc5e0881fc0fd05ae84350cf2d77fd84a (patch)
tree89677de50c8313e039ba9ac5300b363e1368d416
parentc4c1db9e7814e1fd74dfa273f5df117f309c3f16 (diff)
gbproxy: Copy RA-ID from BSS side BVC to CELL and SGSN-side BVC
-rw-r--r--src/gbproxy/gb_proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index ed4dbebb..0dd45d4a 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -509,6 +509,7 @@ static void bss_ptp_bvc_reset_notif(uint16_t nsei, uint16_t bvci, const struct g
bvc->cell = gbproxy_cell_alloc(cfg, bvci);
OSMO_ASSERT(bvc->cell);
+ memcpy(bvc->cell->ra, bvc->ra, sizeof(bvc->cell->ra));
/* link us to the cell and vice-versa */
bvc->cell->bss_bvc = bvc;
@@ -524,6 +525,7 @@ static void bss_ptp_bvc_reset_notif(uint16_t nsei, uint16_t bvci, const struct g
OSMO_ASSERT(sgsn_bvc);
sgsn_bvc->cell = bvc->cell;
+ memcpy(sgsn_bvc->ra, bvc->cell->ra, sizeof(sgsn_bvc->ra));
sgsn_bvc->fi = bssgp_bvc_fsm_alloc_ptp_bss(sgsn_bvc, cfg->nsi, sgsn_nse->nsei,
bvci, ra_id, cell_id);
OSMO_ASSERT(sgsn_bvc->fi);