diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-20 05:02:49 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-20 22:13:25 +0700 |
commit | e06f228be11ba0a7470213a33d8c2001bd9938c1 (patch) | |
tree | 8263adc55415bce21ccc4d3ec2f528cb6ee6c884 /library/RAN_Emulation.ttcnpp | |
parent | 43021cbbf784e08a0a07fcbc19b7bb22f056bbea (diff) |
library/ranap: enrich both t(s|r)_RANAP_DirectTransfer templates
Instead of having two similar variants of RANAP_DirectTransfer:
- t(s|r)_RANAP_DirectTransfer, and
- t(s|r)_RANAP_DirectTransferSAPI,
let's make the first one more flexible, and drop the last one.
This is achieved by introducing two supplementary functions:
- f_gen_ts_dt_ies(), and
- f_gen_tr_dt_ies,
which dynamically compose DirectTransfer.protocolIEs.
Change-Id: I7333d08c4d5a72159bfbd50fe8e7b1084cd61b9e
Diffstat (limited to 'library/RAN_Emulation.ttcnpp')
-rw-r--r-- | library/RAN_Emulation.ttcnpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp index de5b7f38..b41d7eba 100644 --- a/library/RAN_Emulation.ttcnpp +++ b/library/RAN_Emulation.ttcnpp @@ -1097,12 +1097,8 @@ private function f_xmit_raw_l3(integer sccp_conn_id, OCT1 dlci, octetstring l3_e #ifdef RAN_EMULATION_RANAP case (RAN_PROTOCOL_RANAP) { var RANAP_PDU ranap; - if (false /* SAPI */) { - var RANAP_IEs.SAPI sapi := sapi_0; - ranap := valueof(ts_RANAP_DirectTransferSAPI(l3_enc, sapi)); - } else { - ranap := valueof(ts_RANAP_DirectTransfer(l3_enc)); - } + /* FIXME: convert DLCI into SAPI */ + ranap := valueof(ts_RANAP_DirectTransfer(l3_enc)); RANAP.send(ts_RANAP_DATA_req(sccp_conn_id, ranap)); } #endif |