SCCP + SIGTRAN (SUA/M3UA) libraries as well as OsmoSTP https://osmocom.org/projects/libosmo-sccp
Go to file
Neels Hofmeyr a8929fdb56 sccp_scrc: fix Network Indicator in SIO composition
Since the NI is in bits DC, not BA, it needs to be shifted by 6, not 4, to end
up in the two most significant bits. Also, NI is two bits wide, hence & 0x3.
(The m3ua.c side of this is already correct.)

See ITU-T Recommendation Q.704 (07/96), 14.2 "Service information octet".

Before this patch, NI was always sent as 00 == International regardless of the
VTY configuration.

This patch was verified to work by a wireshark trace of osmo-bsc connecting to
osmo-msc, showing the NI decoded as configured by an osmo-bsc.cfg file in the
BSSMAP Reset message MTP 3 / Protocol data.

Change-Id: I7bb4eb6518a1e0d74313bda776d2a6acd0b02e1b
2017-10-26 17:34:28 +02:00
contrib contrib: Add osmo-stp systemd service file 2017-09-27 12:04:54 +02:00
debian Add doxygen docs 2017-10-18 10:42:52 +02:00
doc/examples osmo-stp: Remove hack to always enable debug logging 2017-04-14 17:11:21 +02:00
examples sccp_sap.h: Fix SSN for BSSAP and BSSAP-LE 2017-09-03 21:20:32 +02:00
include sccp_scrc: fix Network Indicator in SIO composition 2017-10-26 17:34:28 +02:00
specs add RFC 3868 (SUA) spec in HTML 2017-01-27 09:59:30 +01:00
src Makefile.am: Link libosmo-sigtran against libvty 2017-10-04 11:40:51 +08:00
stp osmo-stp: Fix process termination on SIGINT+SIGTERM 2017-08-31 20:25:52 +02:00
tests fix osmo_sccp_addr_dump(): actually print RI 2017-08-09 13:54:44 +02:00
.gitignore Add doxygen docs 2017-10-18 10:42:52 +02:00
.gitreview Add gerrit settings 2016-12-21 13:46:12 +01:00
COPYING move openbsc into its own subdirectory 2009-06-10 05:40:52 +08:00
Doxyfile.in Add doxygen docs 2017-10-18 10:42:52 +02:00
Makefile.am Add doxygen docs 2017-10-18 10:42:52 +02:00
TODO-RELEASE Use release helper from libosmocore 2017-08-29 12:48:21 +00:00
configure.ac Add doxygen docs 2017-10-18 10:42:52 +02:00
git-version-gen fix git-version-gen to find .git directory 2010-08-03 15:08:43 +02:00
libosmo-mtp.pc.in Revert "Fix the .pc files so the -l arg matches the installed libraries" 2016-11-03 13:04:34 +00:00
libosmo-sccp.pc.in Revert "Fix the .pc files so the -l arg matches the installed libraries" 2016-11-03 13:04:34 +00:00
libosmo-sigtran.pc.in libosmo-sigtran: Add pkg-config integration 2015-12-22 23:03:44 +01:00
libosmo-xua.pc.in Add missing xua.pc file 2016-11-03 12:36:41 +00:00