aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-01-23cs RAB: add more SDU_FormatInformationParameter itemsneels/ipa_nano3g_wipNeels Hofmeyr2-11/+39
Change-Id: I97e5c0b1e9ab9de00449b50a86d79a967af0d3f3
2017-01-23ranap: make X.213 NSAP 160 bits long, zero paddedNeels Hofmeyr2-12/+16
Change-Id: I070bbfe887ab93d08322df30571050a381d082d5
2017-01-23cs RAB: toggle QueuingAllowedNeels Hofmeyr2-4/+4
Change-Id: I39a541c193eed9c15b2ce8fda306bb226c70647f
2017-01-23cs RAB: toggle Pre_emptionVulnerabilityNeels Hofmeyr2-4/+4
Change-Id: I0f4d5a5e56bb6a3a3dfd6db8292d30f55fccdbc1
2017-01-23cs RAB: set allocationOrRetentionPriority=lowestNeels Hofmeyr2-4/+4
Change-Id: I0d7dc32bc93fa0a4d316f8378b3735dc11e87071
2017-01-23cs RAB: tweak sDU_ErrorRatioNeels Hofmeyr2-4/+4
Change-Id: I3169376bb182aba5926b7c974108bdc5fba04fa4
2017-01-23cs RAB: lower guaranteedBitrateNeels Hofmeyr2-5/+5
Change-Id: Ia7eecca43d62a6a020466e9b8dc8b566ca988f9f
2017-01-23cs RAB: add nAS_SynchronisationIndicatorNeels Hofmeyr2-11/+19
Change-Id: I14c22b0befb308bac2eded662fe13a58c8478743
2016-12-07log: fix number format for domain indicatorNeels Hofmeyr1-2/+2
CN_DomainIndicator_t is a long, so use %l format. Error was introduced in recent 2b5021fd8d445f0ca4f28e0ea71a19cd52724e57. Fixes: CID#157119 Change-Id: I22f49d45bc87897beb24a6b1eee6c83da3e57b0f
2016-11-27hnbgw: rua rx: fix rc and log unhandled Private MsgNeels Hofmeyr1-0/+3
Fixes: CID#57949 Change-Id: I822888a3cf450e2787fc352e0352aed92236ddb7
2016-11-27fix error rc in various ASN.1 decoding functionsNeels Hofmeyr5-6/+6
Fixes: CID#57945, CID#57946, CID#57947, CID#57948, CID#57950, CID#57951 Change-Id: I2d9ee1aa79959c5973041393f4769faa13720898
2016-11-27hnbgw_rua: reject invalid domain indicatorNeels Hofmeyr1-0/+14
Fixes: CID#135226, CID#135227 Change-Id: I0c44179aac02772585214e528207e959ad168f3c
2016-11-26ue_context_alloc(): Avoid ue->imsi without NULL terminationHarald Welte1-2/+3
Change-Id: I152e84206e0b2b80fa79956f5adbbe84ff10b4ab Fixes: Coverity CID 57625
2016-10-27hnbgw: parameterize IuCS and IuPS ips and ports: add vty cmdsNeels Hofmeyr4-2/+139
Basically copy-paste the Iuh local-ip and local-port code to provide parameterization of the IuCS and IuPS remote addresses. Add IUCS and IUPS nodes, enhance go_parent_cb and config writing accordingly. Change-Id: I2c28977011009df4e1fa472290bbbc359e406971
2016-10-27hnbgw: vty: set explicit go_parent_cbNeels Hofmeyr3-0/+23
A second level of depth will be added to the hnbgw node soon, which will need explicit go-parent logic. Change-Id: I8d1c18a396c215e8425ae49872b5c73316087d7d
2016-10-27hnbgw: parameterize iuh local port: add vty cmdNeels Hofmeyr1-0/+14
For completeness' sake, add VTY command to set the local Iuh port, to go with the command that sets the local IP. Change-Id: I4b5e9fe9fcfa489069a0728d47899ef4a61f7ce5
2016-10-27hnbgw: cosmetic: local-ip config: drop getter functionNeels Hofmeyr2-16/+5
Use the g_hnb_gw->config.iuh_local_ip directly, drop hnbgw_get_iuh_local_ip(). Change-Id: Ie91aea82ae5d128ad735a0857ea814b440c3232c Suggested-by: hwelte
2016-10-13cosmetic: hnbgw: addr related renames, move define, move commentNeels Hofmeyr3-22/+22
Prepare for parameterization of IuCS and IuPS addresses: Conform internal variable naming to local-ip, local-port, remote-ip, remote-port (instead of bind-ip). Rename HNBGW_IUH_LOCAL_IP_DEFAULT to HNGGW_LOCAL_IP_DEFAULT to be more general and move it to the top. Move a function doc comment to the .c file. Change-Id: Ice85941c978498e3ddf41d151248507e7f56cb5d
2016-10-13fix msgb talloc context initializationNeels Hofmeyr4-3/+3
Properly initialize msgb talloc context in hnbgw and all tests, using the new msgb_talloc_ctx_init(). test-ranap.c: since msgb talloc ctx is now in test_common_init(), remove msgb talloc init here. Change-Id: I807c799aff1239184728551ed77fdafa73bd683f
2016-10-12jenkins.sh: use osmo-build-dep.shNeels Hofmeyr1-43/+17
Like in libosmo-abis' and other jenkins.sh Change-Id: I24f5a04abdf986eee4358bb3327b8d8b9b27e8f2
2016-10-10fix build: look for generated sources in builddir, not srcdirNeels Hofmeyr1-3/+3
Fixes 'make check' from a different dir than the source tree. Change-Id: I97606dadef3c2184f9538b0198029047cc3af71c
2016-10-01configure: check for pkg-config presenceNeels Hofmeyr1-0/+7
Change-Id: I940558e1b53b0d42291077eba0568f9974df6957
2016-10-01build: be robust against install-sh files above the root dirNeels Hofmeyr1-0/+3
Explicitly set AC_CONFIG_AUX_DIR. To reproduce the error avoided by this patch: rm install-sh # in case it was already generated. touch ../install-sh # yes, outside this source tree autoreconf -fi This will produce an error like ... configure.ac:16: error: required file '../ltmain.sh' not found configure.ac:5: installing '../missing' src/Makefile.am: installing '../depcomp' autoreconf: automake failed with exit status: 1 See also automake (vim `which automake`) and look for 'sub locate_aux_dir'. Change-Id: I5aad87b7d4c043f890f4ae2bc5d68cbad6d2c5c7
2016-09-30jenkins.sh: output all test logs when 'make check' failedNeels Hofmeyr1-2/+5
Assume that cat-testlogs.sh from osmo-ci is installed in $HOME/osmo-ci/scripts, and call from jenkins.sh upon 'make check' failure. Change-Id: I6ee37ae638aa0b95222e5c0ec78474fab1f8cfae
2016-09-27fix: apply rename of osmo_sua_link_get_user_priv()3G_2016_09Neels Hofmeyr1-1/+1
In the course of a rebase in libosmo-sccp, osmo_sua_link_get_user_priv() was renamed to osmo_sccp_link_get_user_priv(). Apply this rename here to fix the build. Change-Id: I09603f5eb983f17c1e4a1232967fc43c7ceea12a
2016-09-27hnbgw: vty conformance: rename iuh 'bind' command to 'local-ip'Neels Hofmeyr3-7/+7
The standard osmo VTY terminology is 'remote-ip', 'remote-port', 'local-ip', 'local-port'. Conform to that. osmo-hnbgw is so far not rolled out widely, so it makes sense to do this now. Change-Id: Ifda2653bf58044552a5f1477cd7008dec3fb9100
2016-09-27log: hnbgw: add hnbap UE context allocation info logNeels Hofmeyr1-0/+3
Change-Id: Iac0ca948d6e699d984c6e424afe7106dcaf2ab1e
2016-09-27hnbap: accept UE Register Requests with TMSI and pTMSINeels Hofmeyr3-4/+130
Add the option to allow UE Register Requests with a TMSI identity. Add VTY command to enable this option, 'hnbap-allow-tmsi'. Add hnbgw_tx_ue_register_acc_tmsi(). HNBGW so far keeps track of UEs that have registered, with their IMSI. When a UE registers with only a TMSI, we obviously can't store an IMSI. However, since we're so far never *using* the list of UEs in osmo-hnbgw, we might as well just accept the TMSI registration and carry on as usual. All that is needed for proper operation is a valid UE context. This is aimed at the ip.access nano3G femto cell, as it apparently feeds whichever identification the UE sends through to HNBAP (TMSI+LAI, pTMSI+RAI), instead of an IMSI as expected. So far this caused failures and the need to make the UE clear its TMSI (wait several minutes or attempt to subscribe to a different network), so that UE registration switched back to IMSI. When simply accepting the TMSI in osmo-hngw, no problems are apparent in our current code state. For example, a Samsung Galaxy S4 seems to send a UE_Identity_PR_tMSILAI (CS identity), and a GT-I9100 seems to send a UE_Identity_PR_pTMSIRAI (PS identity) upon first registration to the network. Recording the IMSI in hnbgw: we could use the subscriber list during paging, to page a UE on only its last seen HNB. On the other hand, it doesn't hurt to anyway always page to all HNBs connected to osmo-hnbgw. The paging procedure does include a page-to-all-HNBs in case the first HNB paging fails. But we must be aware that UEs that register by TMSI will simply not have an IMSI recorded in the list of UE contexts, so a lookup based on IMSI may fail. Patch-by: Harald Welte <laforge@gnumonks.org>, me Change-Id: I87bc1aa3e85815ded7ac1dbdca48f1680b468589
2016-09-27hnbgw: UE context: add handling by tmsi identificationNeels Hofmeyr3-6/+23
To prepare for an upcoming commit that accepts TMSI identification upon UE Register Requests: Add tmsi arg to ue_context_alloc(). Add ue_context_by_tmsi(). This is aimed at the ip.access nano3G femto cell, as it apparently feeds whichever identification the UE sends through to HNBAP (TMSI+LAI, pTMSI+RAI), instead of an IMSI as expected. See the upcoming commit that enables accepting TMSI identities for further detail. Change-Id: I138458443319cc4cbea5ee7906cf5dd72d582130
2016-09-27hnbap: add UE Register Reject for pTMSIRAI identityNeels Hofmeyr1-32/+99
This is aimed at the ip.access nano3G femto cell, as it apparently feeds whichever identification the UE sends through to HNBAP (TMSI+LAI, pTMSI+RAI), instead of an IMSI as expected. Sending a proper registration reject speeds up the response seen on the UE and avoids needless waiting. See the upcoming commit that enables accepting TMSI identities for further detail. Change-Id: I03b69613e6ddd8a08d9358ffc2f74954c231fd2c
2016-09-26log VTY telnet bind only onceNeels Hofmeyr2-3/+0
After libosmocore 55dc2edc89c1a85187ef8aafc09f7d922383231f which outputs 'telnet at <ip> <port>' from telnet_init_dynif(), there's no need to log the telnet VTY bind here anymore. Change-Id: Icd9e670c1d30c156f7bd5d0d34892150aeba95e9
2016-09-22comment: note RAB assignment spec referenceNeels Hofmeyr1-1/+4
Change-Id: Ifef8da82a01cd781ef560d1ec21cbfb23efb1495
2016-09-16ranap: include port in RTP TransportLayerInformationNeels Hofmeyr2-9/+4
Remove an #if 0 to properly include the port information (verified to work). Adjust test expectations. Change-Id: I45fb134959dea9bcdfbfd9d8a061e67c3cc80fb7
2016-09-09jenkins.sh: enable make distcheckNeels Hofmeyr1-2/+1
Change-Id: I967d4de9682cb2a45210f689ec076ef457841179
2016-09-09build: parallel build: require ../libosmo-ranap.la from tests/Neels Hofmeyr1-0/+3
This rule is bad because it re-invokes $(MAKE), but it seems to fix the parallel build. It should probably be done differently. Change-Id: I8107e08e4c211f20d671f520bf6bab9356f3c90e
2016-09-09build: move headers to include/osmocom/*Neels Hofmeyr27-37/+41
This came up while fixing 'make distcheck'; this is certainly not the easiest way but it makes sense to have the headers in include/, like we do in openbsc. The easy alternative might be to add -I$(top_srcdir)/src to src/Makefile.am. Remove -I$(top_srcdir)/src from src/tests/Makefile.am, no longer needed. Change-Id: I5a82e029dcdc4df0a60a31271a4883393fe59234
2016-09-09build: cosmetic: hnbap: undup asn1 src pathNeels Hofmeyr1-1/+3
Change-Id: I0507277995302261c87db1b0c48105065cf13ae4
2016-09-09build: distcheck: add missing bits for testsuite distcheckNeels Hofmeyr1-0/+10
Got some errors during 'make distcheck', copying the way openbsc.git does these things. Change-Id: I13d76cd56dfb8fe4eb02d6fcada78a9e3311b51b
2016-09-09build: distcheck: look for asn1 in top_srcdir, not top_builddirNeels Hofmeyr1-1/+1
Change-Id: Iebcff240ba2fae964dad2a2c481fcbfd29e14e69
2016-09-09build: distcheck: add missing distclean filesNeels Hofmeyr5-0/+22
Change-Id: I24d72b2b1bae52a1b2cf8a989396d2aac31d119e
2016-09-09build: fix ranap gen, use same for gen hnbap and rua genNeels Hofmeyr16-27/+51
fix extraneous rebuild for each make invocation: touch the ranap.stamp file in src/ as the make target suggests. fix for 'make distcheck': ranap gen: move generated sources to builddir, not srcdir. Thus we also -I the builddir include to pick up those headers. hnbap and rua have the same situation as ranap (they generate numerous files from a single make rule). Use the same makefile semantics for those two (commit for ranap gen omitted the same changes for hnbap and rua). The generated headers are thus moved to include/osmocom/*/, so adjust #include statements accordingly (*_common.h, *_ies_defs.h). Also move hnbap_common.h to include/osmocom/hnbap and rua_common.h to include/osmocom/rua, since the *_ies_defs.h want to include them; and since *_ies_defs.h are now in include/osmocom/*, we want a '<foo>' include now. Also adjust gitignore. Change-Id: I32213666fcdfc144008fa7d46497c0938d093e86
2016-09-09build: remove subdir-objects from configure.ac, it is brokenNeels Hofmeyr1-1/+1
This is a known autoconf bug, it creates odd directories named literally '$(top_srcdir)', potentially messing up dependency checking. Change-Id: Ia47b038d4ca4f6c345711fb17d074f71c80e4453
2016-09-09build: use tar-ustar to allow paths longer than 99Neels Hofmeyr1-1/+4
Needed to fix these errors: tar: osmo-iuh-UNKNOWN-dirty/include/osmocom/ranap/RANAP_SourceeNodeB-ToTargeteNodeB-TransparentContainer.h: file name is too long (max 99); not dumped tar: osmo-iuh-UNKNOWN-dirty/include/osmocom/ranap/RANAP_LocationRelatedDataRequestTypeSpecificToGERANIuMode.h: file name is too long (max 99); not dumped tar: osmo-iuh-UNKNOWN-dirty/include/osmocom/ranap/RANAP_TargeteNodeB-ToSourceeNodeB-TransparentContainer.h: file name is too long (max 99); not dumped tar: osmo-iuh-UNKNOWN-dirty/include/osmocom/ranap/RANAP_Requested-RAB-Parameter-ExtendedGuaranteedBitrateList.h: file name is too long (max 99); not dumped Change-Id: Id41bca92810a81ac50697c0230a6caef490b0ffd
2016-09-09tests: don't log filename nor color in unit testsNeels Hofmeyr2-3/+5
In experr, we had line numbers in log output, which might change. Also, for make distcheck, the path of the source file might have some '../../' added in the log output (to indicate the src dir as seen from the build dir). Fix both by dropping source file and line. Also drop color while at it. Change-Id: Ie76384c4176ce0a7d89d093f2efb848fe3f19400
2016-09-09jenkins.sh: don't build twiceNeels Hofmeyr1-9/+14
Instead of building the same .c files twice, rather verify that the 'make regen' target produces identical .c files as are checked in. Change-Id: I18e7677d8596f61b883e9db57b4bdd2a5c154ec3
2016-09-09UE Register with TMSI: reply with a Register RejectNeels Hofmeyr1-1/+65
When receiving a UE Register Request with TMSI and no IMSI, compose a Register Reject with the same UE Identity and send. The accepting function expects a ue_context argument and composes the message from the IMSI found there. This new rejection message cannot rely on a ue_context struct and hence uses the asn1 uE_Identity directly. Change-Id: Ia47e398e50e316842cd260dc0d9a4e2d8a1c627c
2016-09-08RAB Assign for voice: heed the x213 nsap flagNeels Hofmeyr3-6/+12
Add use_x213_nsap arg to ranap_new_msg_rab_assign_voice() and new_transp_info_rtp(). Pass this to new_transp_layer_addr() to compose 32bit addresses when use_x213_nsap == false. This is analogous to ranap_new_msg_rab_assign_data(). Particularly, the ip.access nano3G does not accept x213 NSAP 56bit addresses, so we want to send 32bit addresses there. Change-Id: I0c3c95d709c8a2b1c48d7a187faca34102226329
2016-08-29jenkins.sh: cosmetic: mark start of main buildNeels Hofmeyr1-4/+9
Add function 'marker' so we don't repeat the five echos, use in build_dep and before main build. Change-Id: I58ab958414eb9e9b0fd7e214103578e5b4aa6ff2
2016-08-20doc: add example osmo-hnbgw.cfgNeels Hofmeyr1-0/+32
Note that all *.cfg files are added to 'make dist' by the doc/examples/Makefile.am. Change-Id: I424ccdea02578edc7816e4d23a9ea7c5729315d8
2016-08-18add doc/examples, Makefile.am adds all *.cfg files genericallyNeels Hofmeyr3-0/+26
doc/examples/Makefile.am taken from openbsc/openbsc/doc/examples. Change-Id: I1fadad4deb7f73d2b3aa753a84a76ba5b9bf9574