aboutsummaryrefslogtreecommitdiffstats
path: root/pcu/SGSN_Components.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'pcu/SGSN_Components.ttcn')
-rw-r--r--pcu/SGSN_Components.ttcn61
1 files changed, 47 insertions, 14 deletions
diff --git a/pcu/SGSN_Components.ttcn b/pcu/SGSN_Components.ttcn
index 2f1fa75c..bbac9b0d 100644
--- a/pcu/SGSN_Components.ttcn
+++ b/pcu/SGSN_Components.ttcn
@@ -33,25 +33,54 @@ modulepar {
},
cell_id := 20960
},
- depth := BSSGP_DECODE_DEPTH_BSSGP
+ depth := BSSGP_DECODE_DEPTH_BSSGP,
+ create_cb := refers(BSSGP_Emulation.DefaultCreateCallback)
}
}
};
NSConfiguration mp_nsconfig := {
- provider := {
- ip := {
- address_family := AF_INET,
- local_udp_port := 23000,
- local_ip := "127.0.0.1",
- remote_udp_port := 21000,
- remote_ip := "127.0.0.1"
- }
- },
- nsvci := 0,
nsei := 2342,
role_sgsn := true,
- handle_sns := true
+ handle_sns := true,
+ nsvc := {
+ {
+ provider := {
+ ip := {
+ address_family := AF_INET,
+ local_udp_port := 23000,
+ local_ip := "127.0.0.1",
+ remote_udp_port := 21000,
+ remote_ip := "127.0.0.1"
+ }
+ },
+ nsvci := 0
+ },
+ {
+ provider := {
+ ip := {
+ address_family := AF_INET,
+ local_udp_port := 23001,
+ local_ip := "127.0.0.1",
+ remote_udp_port := 21000,
+ remote_ip := "127.0.0.1"
+ }
+ },
+ nsvci := 0
+ },
+ {
+ provider := {
+ ip := {
+ address_family := AF_INET,
+ local_udp_port := 23002,
+ local_ip := "127.0.0.1",
+ remote_udp_port := 21000,
+ remote_ip := "127.0.0.1"
+ }
+ },
+ nsvci := 0
+ }
+ }
};
}
@@ -60,6 +89,7 @@ type component bssgp_CT extends BSSGP_Client_CT {
var NS_CT ns_component;
var BSSGP_CT bssgp_component;
port BSSGP_CT_PROC_PT PROC;
+ port BSSGP_PT RIM;
var boolean g_initialized := false;
}
@@ -78,8 +108,8 @@ function f_init_bssgp() runs on bssgp_CT {
g_initialized := true;
/* create a new NS component */
- ns_component := NS_CT.create;
- bssgp_component := BSSGP_CT.create;
+ ns_component := NS_CT.create alive;
+ bssgp_component := BSSGP_CT.create alive;
/* connect lower-end of BSSGP with BSSGP_CODEC_PORT (maps to NS_PT*/
connect(bssgp_component:BSCP, ns_component:NS_SP);
connect(self:PROC, bssgp_component:PROC);
@@ -96,6 +126,9 @@ function f_init_bssgp() runs on bssgp_CT {
connect(self:BSSGP_PROC[i], vc_BVC:BSSGP_PROC);
f_bssgp_client_register(mmctx.imsi, mmctx.tlli);
}
+ /* connect RIM related port */
+ connect(self:RIM, bssgp_component:RIM);
+ connect(self:BSSGP_GLOBAL[0], bssgp_component:GLOBAL);
}
/* Establish BSSGP connection to PCU */