summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-10-20 18:53:10 +0200
committerHarald Welte <laforge@osmocom.org>2019-10-20 18:56:05 +0200
commit26a4c84ca7ca90d4e0d3b7265d76c2fbed3946bf (patch)
tree38fe8b3513fad0a9d3a669f5cf1973426147ac85
parent89407619a31a4332bdb59e7921b99a29b7d6e00c (diff)
cosmetic: Document why IPA uses hard-coded routing-context 0
-rw-r--r--src/xua_asp_fsm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index 9dc9a82..c5bd116 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -848,6 +848,7 @@ static void ipa_asp_fsm_wait_id_ack2(struct osmo_fsm_inst *fi, uint32_t event, v
struct ipa_asp_fsm_priv *iafp = fi->priv;
struct osmo_ss7_asp *asp = iafp->asp;
struct osmo_ss7_instance *inst = asp->inst;
+ /* We use routing-context '0' here, as that's the only one we support in IPA */
struct osmo_ss7_as *as = osmo_ss7_as_find_by_rctx(inst, 0);
OSMO_ASSERT(as);
@@ -920,6 +921,7 @@ static void ipa_asp_fsm_del_route(struct ipa_asp_fsm_priv *iafp)
{
struct osmo_ss7_asp *asp = iafp->asp;
struct osmo_ss7_instance *inst = asp->inst;
+ /* We use routing-context '0' here, as that's the only one we support in IPA */
struct osmo_ss7_as *as = osmo_ss7_as_find_by_rctx(inst, 0);
struct osmo_ss7_route *rt;