summaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-02 18:33:16 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-02 18:35:43 +0200
commit07d99c8e7b46b9c490e0cb488d4e2703790fcd84 (patch)
tree0ad1cb1397bbf235af6d08969413838438611561 /msc
parent2aaac1b1d1655732055e6ad5da5965fe94af33e5 (diff)
move imsi_hex2oct to Osmocom_Types.ttcn
This function is required not only for the MSC_Tests, but also for the upcoming Iu related SGSN tests Change-Id: Ic23669671ce79151046f2330726bb68542faeb0e
Diffstat (limited to 'msc')
-rw-r--r--msc/BSC_ConnectionHandler.ttcn19
1 files changed, 0 insertions, 19 deletions
diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index b1a0491..595f402 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -86,25 +86,6 @@ type record BSC_ConnHdlrPars {
boolean ran_is_geran
};
-function imsi_hex2oct(hexstring imsi) return octetstring {
- var hexstring tmp := ''H;
- var octetstring ret;
- var integer i;
-
- /* swap nibbles and pad with F if insufficient input nibbles */
- for (i := 0; i < lengthof(imsi); i := i+1) {
- if (i+1 < lengthof(imsi)) {
- tmp := tmp & imsi[i+1];
- } else {
- tmp := tmp & 'F'H;
- }
- tmp := tmp & imsi[i];
- i := i+1;
- }
- ret := hex2oct(tmp);
- return ret;
-}
-
/* get a one-octet bitmaks of supported algorithms based on Classmark information */
function f_alg_mask_from_cm(BSSMAP_IE_ClassmarkInformationType2 cm2) return OCT1 {
var BIT8 res := '00000001'B; /* A5/0 always supported */