Browse Source

tweak comments in rua_to_scu()

Change-Id: I227a5e6b869da453fa72ff0eebaa1e95aa9625e6
changes/33/28233/2
Neels Hofmeyr 2 months ago
parent
commit
afbcae6366
  1. 6
      src/osmo-hnbgw/hnbgw_rua.c

6
src/osmo-hnbgw/hnbgw_rua.c

@ -264,13 +264,15 @@ static int rua_to_scu(struct hnb_context *hnb,
return -EINVAL;
}
/* add optional data section, if needed */
/* If there is RANAP data, include it in the msgb. Usually there is data, but this could also be an SCCP CR
* a.k.a. OSMO_SCU_PRIM_N_CONNECT without RANAP payload. */
if (data && len) {
msg->l2h = msgb_put(msg, len);
memcpy(msg->l2h, data, len);
}
/* Intercept RAB Assignment Response, inform MGW FSM. */
/* If there is data, see if it is a RAB Assignment message where we need to change the user plane information,
* for RTP mapping via MGW (soon also GTP mapping via UPF). */
if (data && len && map && !map->is_ps && !release_context_map) {
message = talloc_zero(map, ranap_message);
rc = ranap_cn_rx_co_decode(map, message, msgb_l2(prim->oph.msg), msgb_l2len(prim->oph.msg));

Loading…
Cancel
Save