dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/34119 )
Change subject: sgsn_rim: improve comment ......................................................................
sgsn_rim: improve comment
Let's describe more clear what we do in sgsn_bssgp_fwd_rim_to_geran
Related: OS#6095 Change-Id: I54aa82845515bcaa6badc9e0e87fa6248333430e --- M src/sgsn/sgsn_rim.c 1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/19/34119/1
diff --git a/src/sgsn/sgsn_rim.c b/src/sgsn/sgsn_rim.c index 07eff6b..4ba672e 100644 --- a/src/sgsn/sgsn_rim.c +++ b/src/sgsn/sgsn_rim.c @@ -21,6 +21,7 @@ struct bssgp_bvc_ctx *bvc_ctx; OSMO_ASSERT(pdu->routing_info_dest.discr == BSSGP_RIM_ROUTING_INFO_GERAN);
+ /* Resolve RIM ROUTING ADDRESS to a BVC context */ bvc_ctx = btsctx_by_raid_cid(&pdu->routing_info_dest.geran.raid, pdu->routing_info_dest.geran.cid); if (!bvc_ctx) { LOGP(DRIM, LOGL_ERROR, "Unable to find NSEI for destination cell %s\n", @@ -28,7 +29,7 @@ return -EINVAL; }
- /* Forward PDU as it is to the correct interface */ + /* Forward PDU to the NSEI of the resolved BVC context */ return bssgp_tx_rim(pdu, bvc_ctx->nsei); }