aboutsummaryrefslogtreecommitdiffstats
path: root/sgsn/SGSN_Tests.ttcn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-02-18 15:06:42 +0100
committerHarald Welte <laforge@gnumonks.org>2018-02-18 15:06:42 +0100
commitf8af5d6b277a51f36f6a866ed2dc9d0fd711eba1 (patch)
tree7a875eaa15a96c99a5e596b4728b1fab86a79535 /sgsn/SGSN_Tests.ttcn
parent835b15f799b3ade84398ee952b0deb336c46d981 (diff)
sgsn: Store SGSN-side control + user plane IP addresses
Diffstat (limited to 'sgsn/SGSN_Tests.ttcn')
-rw-r--r--sgsn/SGSN_Tests.ttcn12
1 files changed, 8 insertions, 4 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 988ece1b..6b36bc24 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -769,9 +769,10 @@ type record PdpActPars {
octetstring ggsn_ip_c,
octetstring ggsn_ip_u,
- GtpPeer sgsn,
OCT4 sgsn_tei_c optional,
- OCT4 sgsn_tei_u optional
+ OCT4 sgsn_tei_u optional,
+ octetstring sgsn_ip_c optional,
+ octetstring sgsn_ip_u optional
};
function f_pdp_ctx_act(PdpActPars apars) runs on BSSGP_ConnHdlr {
@@ -786,6 +787,8 @@ function f_pdp_ctx_act(PdpActPars apars) runs on BSSGP_ConnHdlr {
var GTPC_PDUs gtpc_rx := g_ud.gtpc.gtpc_pdu;
apars.sgsn_tei_c := gtpc_rx.createPDPContextRequest.teidControlPlane.teidControlPlane;
apars.sgsn_tei_u := gtpc_rx.createPDPContextRequest.teidDataI.teidDataI;
+ apars.sgsn_ip_c := gtpc_rx.createPDPContextRequest.sgsn_addr_signalling.addressf;
+ apars.sgsn_ip_u := gtpc_rx.createPDPContextRequest.sgsn_addr_traffic.addressf;
var OCT1 cause := int2oct(128, 1);
GTP.send(ts_GTPC_CreatePdpResp(g_ud.peer, seq_nr,
apars.sgsn_tei_c, cause,
@@ -875,9 +878,10 @@ template (value) PdpActPars t_PdpActPars := {
ggsn_ip_c := '7F000001'O,
ggsn_ip_u := '7F000001'O,
- sgsn := { },
sgsn_tei_c := omit,
- sgsn_tei_u := omit
+ sgsn_tei_u := omit,
+ sgsn_ip_c := omit,
+ sgsn_ip_u := omit
}
private function f_TC_attach_pdp_act(charstring id) runs on BSSGP_ConnHdlr {