m3ua: Remove inbound routing context before routing
After verifying the routing context of an incoming M3UA message, remove the routing context before passing into MTP routing. In the forwarding case, we might want to set a new routing context on the outbound link, and we don't want the routing context IE to show up twice. Change-Id: I7a534cb1da275369c70766c059aaae8157ce6833
This commit is contained in:
parent
ac00448f19
commit
72f12f7543
|
@ -515,6 +515,10 @@ static int m3ua_rx_xfer(struct osmo_ss7_asp *asp, struct xua_msg *xua)
|
|||
OSMO_ASSERT(dh);
|
||||
m3ua_dh_to_xfer_param(&xua->mtp, dh);
|
||||
|
||||
/* remove ROUTE_CTX as in the routing case we want to add a new
|
||||
* routing context on the outbound side */
|
||||
xua_msg_free_tag(xua, M3UA_IEI_ROUTE_CTX);
|
||||
|
||||
return m3ua_hmdc_rx_from_l2(asp->inst, xua);
|
||||
out_err:
|
||||
if (err)
|
||||
|
|
Loading…
Reference in New Issue