path: root/sgsn
AgeCommit message (Collapse)AuthorFilesLines
2018-03-16sgsn: test GMM Attach with 3-digit leading-zero MNCNeels Hofmeyr1-4/+21
Add general infrastructure to - pass an MCC-MNC for BSSGP to use into f_init(); - verify that the Attach Accept PLMN matches the BSSGP one. Add TC_attach_mnc3() to feed an MNC with three digits and a leading zero, to verify the recent mnc3 patches. When testing against a libosmocore and osmo-sgsn before mnc3, this results in: Test case TC_attach_mnc3 finished. Verdict: fail reason: "mismatching PLMN in Attach Accept: 02342F; expected 023042" With the current master branches the proper 3-digit MNC with leading zero is fed back into the Attach Accept message. Change-Id: I8901ec0b090e342ebb04a04f9d759fc46c7d9cab
2018-03-16ignore results of .ttcnpp filesNeels Hofmeyr1-0/+2
Add another macro ignore_pp_results to and call from all files, to add results of *.ttcnpp files, i.e. generated *.ttcn files, to .gitignore. Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61
2018-03-16fix don't include source dir as link targetNeels Hofmeyr1-8/+1
First of all, use one common place to define the gen_links() macro, in In this new file, add a 'shift' to exclude the $DIR arg from also appearing in $FILES. This prevents the following wrong symlinks in the source dirs: M3UA_CNL113537/src/src MTP3asp_CNL113337/src/src SCCP_CNL113341/src/src Change-Id: Ia8493e77df1ba8723f2c5d2a49816247b0fb55f7
2018-03-13remove *.default from [EXECUTE] in *.default filesHarald Welte1-1/+0
The problem is that the .cfg file cannot override the [EXECUTE] provided list of tests Change-Id: I7e1e0499b3b32014b25ae4b515263f57a4ea6daf
2018-02-20IPA_Emulation: Make dependencies to RSL/MGCP/SCCP/GSUP conditionalHarald Welte2-15/+4
Let's use the preprocessor to avoid IPA_Emulation pulling *all* dependencies into each and any of our projects. The code readability suffers a bit from the many #ifdefs, but compilation speed increases if we don't have to pull in all those (recursive) dependencies. After all, a BTS test case will never need SCCP, GSUP or MGCP. Change-Id: Ic0231adbd2171214de133d26b3fbf36130ee8aa0
2018-02-18Add TC_attach_pdp_act_user_deact_mt for GGSN-originated PDP DEACTHarald Welte1-0/+39
Change-Id: I7eb653694f487f8bbf122146300c93be625b0f87 Related: OS#2961
2018-02-18sgsn: Add TC_attach_pdp_act_user_deact_moHarald Welte1-3/+42
Change-Id: I43cb7728658cae6590eb1bd31c7c285b942a265e
2018-02-18sgsn: Add new TC_attach_pdp_act_ggsn_rejectHarald Welte1-17/+39
Change-Id: I2da2b3811e843003920cd67ac47f2fc03016912f
2018-02-18sgsn: Use random TEID and Charging IdentifierHarald Welte1-3/+5
Change-Id: I39934396372b057eaf5446e9185e83a1d56c153c
2018-02-18sgsn: More commentsHarald Welte1-19/+19
Change-Id: Ie64bfc43b2d652f1f556628deb26544217a8286c
2018-02-18sgsn: Add user plane GTP testing (GTP->Gb and Gb->GTP)Harald Welte1-6/+108
Change-Id: Ifd62cca8cd9dbcffe4eac957db210ac13b8c633f
2018-02-18sgsn: Reduce logging verbosity of IPA/GSUP/NS/BSSGPHarald Welte2-4/+10
Change-Id: I55d1299ceaad1257959b298741a7321faacc4b45
2018-02-18BSSGP_Emulation: Add SNDCP decoding supportHarald Welte2-0/+10
Change-Id: Icd2e8feed9173b0a2729b7ee1cfac37a86eca6cf
2018-02-18sgsn: Fix hard-coded emulated GGSN IP addressesHarald Welte1-2/+2
Change-Id: Iaf42c25b4c345969c2aec209a6db6e56b69f15e3
2018-02-18sgsn: GTP Create PDP: Include missing required "Charging ID" IEHarald Welte1-1/+3
Change-Id: I7e4b71d7ca6e75f759f77fb47abc9816c0aa716d
2018-02-18sgsn: Store SGSN-side control + user plane IP addressesHarald Welte1-4/+8
Change-Id: Ic82910917167e667cfb26eb084f237140b4c986e
2018-02-18sgsn: Add TC_pdp_act_unattachedHarald Welte1-0/+28
Change-Id: I162ab7cb74102e6f15c4d685c49575bcd0b4f41c
2018-02-18sgsn: Fix syntax errors introduced in PDP Context Act patchesHarald Welte1-4/+4
those were undetected as 'sgsn' is not yet part of the subdirectory list in the master Makefile :/ Change-Id: I46b2baa10cc5a20cd0cb9c0bf32cc0e1a19d38e6
2018-02-18sgsn: First PDP CTX ACT test: TC_attach_pdp_actHarald Welte3-3/+183
Change-Id: Ia1bfaca99a2a70bb097e2ee44f54e4a31b849a1b
2018-02-18sgsn: Add TC_detach_* for various GPRS DETACH use casesHarald Welte1-0/+90
Change-Id: I2243b850400482b911d687585929a2eef3490954
2018-02-18sgsn: Add new TC_attach_rau: Attach followed by RA UpdateHarald Welte1-0/+51
Change-Id: I8f71bf83f4e6504f1cfbdc55a57e3ed62b3e5f25
2018-02-18sgsn: Implement TLLI assignment/modification/unassignmentHarald Welte1-2/+11
It's important that we implement the proper TLLI handling whenever our P-TMSI changes. Change-Id: I5b95b9e49f0a1db9659714c4d01f340fd44fafe8
2018-02-18sgsn: Reduce code duplication by introducing f_gmm_gsup_lu_isd()Harald Welte1-8/+11
Change-Id: I7a43eaa75201fc6c3afba67f6161aef872aca546
2018-02-18sgsn: Reduce code duplication by introducing f_mi_get_lv()Harald Welte1-79/+19
Change-Id: I8b970049074f5de9051a5a791278cd5d29f9d5ed
2018-02-18sgsn: Add TC_attach_gsup_lu_rejectHarald Welte1-7/+45
Change-Id: Id36733e7e51b252407c7513d8441db9a555fd30d
2018-02-18Implement TC_attach_auth_sai_rejectHarald Welte1-0/+29
Change-Id: I8a27c26bb2b6372faccd34c48a597a57783a924f
2018-02-18sgsn: Add TC_rau_unknownHarald Welte1-8/+72
Change-Id: If33fc690cedcc362c3cd5d7c1951440ecba328c2
2018-02-18sgsn: Add TC_attach_closed for "auth-policy closed"Harald Welte1-0/+42
Change-Id: Ic8aa77d1825fa2e39a09c3f0f0918ef24a3b3f7b
2018-02-18sgsn: Add TC_attach_accept_all for "auth-policy accept-all"Harald Welte1-0/+32
Change-Id: I9501595126abf15c9e8b25f06897cf62ab99d8f2
2018-02-18sgsn: Integrate VTY access into SGSN_TestsHarald Welte2-1/+15
Change-Id: I661963368a285ab9358d7f4845b42dc70c35a553
2018-02-18move f_vty_config() from MSC_Tests to Osmocom_VTY_FunctionsHarald Welte1-0/+27
Change-Id: Ie7373c28b1d2b76f8d637ac6c86976fd341e3e2c
2018-02-18sgsn: Ensure ATTACH is always only for GPRS, not combinedHarald Welte1-8/+8
OsmoSGSN doesn't do combined GPRS+IMSI Attach. Change-Id: Ib11f5d720a0e4e1d574982d1f33ba9aaa6b3a3cf
2018-02-18sgsn: Add TC_attach_combinedHarald Welte1-0/+33
Change-Id: I87700d89389f4adb60a056d139674bb5f5addf7b
2018-02-18sgsn: TC_attach_*_timeout test casesHarald Welte1-2/+97
Change-Id: If8cd9e4387588e8299b7675b8b57392d7da66bd9
2018-02-18sgsn: Introduce global guard timerHarald Welte1-3/+17
Change-Id: I0c1fd2a38a4f412079b5f28302b15124d9fd3b3d
2018-02-18sgsn: Use Random RAI when performing attach requestHarald Welte1-7/+6
Change-Id: Id349c7cd0899d6b87114a3ece8bc2ee625f64116
2018-02-18sgsn: Use random TLLI when performing ATTACHHarald Welte1-1/+1
Change-Id: If104add9a6d029b674e46e01af71f2e336aa35f0
2018-02-18First actual SGSN test caseHarald Welte3-16/+251
Change-Id: Id66ddf8dbe1c5cfa96a087235588ba67763b7f05
2018-02-16sgsn: Skeleton of a SGSN test fremworkHarald Welte3-0/+139
Based on the exsting NS/BSSGP emulation as well as the VTY, GSUP and CTRL implementations, we are now building a test framework skeleton for osmo-sgsn. Change-Id: Icce90f9d8a680c7a523163e2c0bc03d12ff857e2