aboutsummaryrefslogtreecommitdiffstats
path: root/bsc-nat
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-01-21 19:07:32 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-21 19:31:09 +0100
commit0b476066b95ae6425a1090f46a070b8d90e38891 (patch)
tree280a433b8b535baab5ed4744be5f1f0ff37e0bc4 /bsc-nat
parent0e5aad201fbef5f10e9e8aebb31faa65a259a1d4 (diff)
BSSMAP_Emulation: Decode DTAP
It's quite cumbersome if the user of the BSSMAP_Emulation (the ConnHdlr) will have to manually decode the DTAP in every BSSAP/DTAP message he receives (and encode on the transmit side). Let's introduce a new optional mode in which the DTAP messages are already decoded for more convenient matching inside the ConnHdlr. Change-Id: I35cd4ea78aca0ce7c7d745e082d7289882c11e81
Diffstat (limited to 'bsc-nat')
-rw-r--r--bsc-nat/BSC_MS_ConnectionHandler.ttcn4
-rw-r--r--bsc-nat/MSC_ConnectionHandler.ttcn4
2 files changed, 6 insertions, 2 deletions
diff --git a/bsc-nat/BSC_MS_ConnectionHandler.ttcn b/bsc-nat/BSC_MS_ConnectionHandler.ttcn
index 876d2ec1..6efb15b0 100644
--- a/bsc-nat/BSC_MS_ConnectionHandler.ttcn
+++ b/bsc-nat/BSC_MS_ConnectionHandler.ttcn
@@ -50,7 +50,9 @@ runs on BSSMAP_Emulation_CT return template PDU_BSSAP {
const BssmapOps BSC_MS_BssmapOps := {
create_cb := refers(CreateCallback),
- unitdata_cb := refers(UnitdataCallback)
+ unitdata_cb := refers(UnitdataCallback),
+ decode_dtap := false,
+ role_ms := true
}
diff --git a/bsc-nat/MSC_ConnectionHandler.ttcn b/bsc-nat/MSC_ConnectionHandler.ttcn
index b038ce5b..0a06759c 100644
--- a/bsc-nat/MSC_ConnectionHandler.ttcn
+++ b/bsc-nat/MSC_ConnectionHandler.ttcn
@@ -56,7 +56,9 @@ runs on BSSMAP_Emulation_CT return template PDU_BSSAP {
const BssmapOps MSC_BssmapOps := {
create_cb := refers(CreateCallback),
- unitdata_cb := refers(UnitdataCallback)
+ unitdata_cb := refers(UnitdataCallback),
+ decode_dtap := false,
+ role_ms := false
}
type enumerated MSC_State {