From 0b476066b95ae6425a1090f46a070b8d90e38891 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 21 Jan 2018 19:07:32 +0100 Subject: 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 --- bsc-nat/BSC_MS_ConnectionHandler.ttcn | 4 +++- bsc-nat/MSC_ConnectionHandler.ttcn | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'bsc-nat') 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 { -- cgit v1.2.3