tweak comments in rua_to_scu()

Change-Id: I227a5e6b869da453fa72ff0eebaa1e95aa9625e6
This commit is contained in:
Neels Hofmeyr 2022-06-07 22:30:46 +02:00
parent da9d08c94e
commit afbcae6366
1 changed files with 4 additions and 2 deletions

View File

@ -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));