| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Fri, 16 Mar 2007 06:16:58 GMT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| osr61 ManualDescription: OpenSS7 Online ManualsA PDF version of this document is available here. Dialogic Open Systems Release 6.1Dialogic Open Systems Release 6.1 Installation and Reference ManualAbout This ManualThis is Edition 2, last updated 2007-06-24, of The Dialogic Open Systems Release 6.1 Installation and Reference Manual, for Version 0.9.2 release 2 of the Dialogic Open Systems Release 6.1 package. PrefaceNoticeThis version of osr61 is a version of the Dialogic® Open System Release 6.1 GPL drivers, modified by The OpenSS7 Project to support the package using Linux Fast-STREAMS instead of the deprecated LiS. This package is released and distributed under the GNU General Public License (see GNU General Public License). Please note, however, that there are different licensing terms for the manual pages and some of the documentation (derived from publications and other sources). Consult the permission notices contained in the documentation for more information. This manual is released under the FDL (see GNU Free Documentation License) with all sections invariant. AbstractThis manual provides a Installation and Reference Manual for Dialogic Open Systems Release 6.1. ObjectiveThe objective of this manual is to provide a guide for the STREAMS programmer when developing STREAMS modules, drivers and application programs for Dialogic Open Systems Release 6.1. This guide provides information to developers on the use of the STREAMS mechanism at user and kernel levels. STREAMS was incorporated in UNIX System V Release 3 to augment the character input/output (I/O) mechanism and to support development of communication services. STREAMS provides developers with integral functions, a set of utility routines, and facilities that expedite software design and implementation. Intent
The intent of this manual is to act as an introductory guide to the STREAMS programmer. It
is intended to be read alone and is not intended to replace or supplement the
Dialogic Open Systems Release 6.1 manual pages. For a reference for writing code, the manual pages
(see AudienceThis manual is intended for a highly technical audience. The reader should already be familiar with Linux kernel programming, the Linux file system, character devices, driver input and output, interrupts, software interrupt handling, scheduling, process contexts, multiprocessor locks, etc. The guide is intended for network and systems programmers, who use the STREAMS mechanism at user and kernel levels for Linux and UNIX system communication services. Readers of the guide are expected to possess prior knowledge of the Linux and UNIX system, programming, networking, and data communication. RevisionsTake care that you are working with a current version of this manual: you will not be notified of updates. To ensure that you are working with a current version, contact the Author, or check The OpenSS7 Project website for a current version. A current version of this manual is normally distributed with the Dialogic Open Systems Release 6.1 package, osr61-0.9.2.2.1 Version Control
osr61.texi,v
Revision 0.9.2.5 2007/06/22 00:18:25 brian
- mostly documentation updates for release, some netconfig workaround
Revision 0.9.2.4 2007/03/04 10:00:31 brian
- updates for release, do not propagate empty flags, build improvements
Revision 0.9.2.3 2007/02/28 06:30:25 brian
- updates and corrections, #ifdef instead of #if
Revision 0.9.2.2 2007/02/27 08:38:35 brian
- release corrections for 2.4 kernel builds
Revision 0.9.2.1 2007/02/25 12:45:12 brian
- added new files for release package
ISO 9000 ComplianceOnly the TeX, texinfo, or roff source for this manual is controlled. An opaque (printed, postscript or portable document format) version of this manual is an UNCONTROLLED VERSION. DisclaimerOpenSS7 Corporation disclaims all warranties with regard to this documentation including all implied warranties of merchantability, fitness for a particular purpose, non-infringement, or title; that the contents of the manual are suitable for any purpose, or that the implementation of such contents will not infringe on any third party patents, copyrights, trademarks or other rights. In no event shall OpenSS7 Corporation be liable for any direct, indirect, special or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with any use of this manual or the performance or implementation of the contents thereof. OpenSS7 Corporation reserves the right to revise this software and documentation for any reason, including but not limited to, conformity with standards promulgated by various agencies, utilization of advances in the state of the technical arts, or the reflection of changes in the design of any techniques, or procedures embodied, described, or referred to herein. OpenSS7 Corporation is under no obligation to provide any feature listed herein. U.S. Government Restricted RightsIf you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you. If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users). If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). AcknowledgementsAs with most open source projects, this project would not have been possible without the valiant efforts and productive software of the Free Software Foundation and the Linux Kernel Community. SponsorsFunding for completion of the OpenSS7 Dialogic Open Systems Release 6.1 package was provided in part by:
Additional funding for The OpenSS7 Project was provided by: ContributorsThe primary contributor to the OpenSS7 Dialogic Open Systems Release 6.1 package is Brian F. G. Bidulock. The following is a list of significant contributors to The OpenSS7 Project:
AuthorsThe authors of the OpenSS7 Dialogic Open Systems Release 6.1 package include:
See Author Index, for a complete listing and cross-index of authors to sections of this manual. MaintainerThe maintainer of this modified OpenSS7 Dialogic Open Systems Release 6.1 package is:
Please send bug reports to bugs@openss7.org using the send-pr script included in the package, only after reading the BUGS file in the release, or See Problem Reports. Web ResourcesThe OpenSS7 Project provides a website dedicated to the software packages released by the OpenSS7 Project. Bug ReportsPlease send bug reports to bugs@openss7.org using the send-pr script included in the Dialogic Open Systems Release 6.1 package, only after reading the BUGS file in the release, or See Problem Reports. You can access the OpenSS7 GNATS database directly via the web, however, the preferred method for sending new bug reports is via mail with the send-pr script. Mailing ListsThe OpenSS7 Project provides a number of general discussion Mailing Lists for discussion concerning the OpenSS7 Dialogic Open Systems Release 6.1 package as well as other packages released by The OpenSS7 Project. These are mailman mailing lists and so have convenient web interfaces for subscribers to control their settings. See http://www.openss7.org/mailinglist.html. The mailing lists are as follows:
SpamTo avoid spam being sent to the members of the OpenSS7 mailing list(s), we have blocked mail from non-subscribers. Please subscribe to the mailing list before attempting to post to them. (Attempts to post when not subscribed get bounced.) As an additional measure against spam, subscriber lists for all OpenSS7 mailing lists are not accessible to non-subscribers; for most lists subscriber lists are only accessible to the list administrator. This keeps your mailing address from being picked off our website by bulk mailers. Acceptable Use PolicyIt is acceptable to post professional and courteous messages regarding the OpenSS7 package or any general information or questions concerning STREAMS, SS7, SIGTRAN, SCTP or telecommunications applications in general. Large AttachmentsThe mailing list is blocked from messages of greater than Quick Start GuideDialogic Open Systems Release 6.1Package osr61-0.9.2.2 was released under GPLv2 2007-06-24. The Dialogic Open Systems Release 6.1 package provides STREAMS modules and drivers, libraries, programs, init scripts, and daemons that implement the Dialogic® Open System Release 6.1 drivers for Linux Fast-STREAMS. This is an OpenSS7 Project modified relase of the GPL'ed Dialogic® OSR 6.1 Release 239 drivers modified for use with Linux Fast-STREAMS. The Dialogic Open Systems Release 6.1 package includes kernel modules, SVR 4.2 STREAMS drivers, modules, libraries, utilities, test programs, daemons, and development environment for the development and execution of Dialogic Open Systems Release 6.1 components and applications for the SVR 4.2 STREAMS environment. It provides true STREAMS-based Dialogic® OSR 6.1 drivers for Linux. The package builds and installs the following STREAMS kernel modules and drivers:
The Springware device drivers support the ability to run the older Springware legacy platform. These are STREAMS based and use STREAMS functionality provided by Linux Fast-STREAMS. Unlike DM3 or PMAC, a common library interface to access these drivers does no exist which makes their removal difficult. All User Interfaces are provided by Linux Fast-STREAMS, based on the STREAMS protocol.
The Dialogic Open Systems Release 6.1 package includes kernel modules, SVR 4.2 STREAMS drivers, modules, libraries, utilities, test programs, daemons, and development environment for the development and execution of Dialogic Open Systems Release 6.1 components and applications for the SVR 4.2 STREAMS environment. This distribution is only currently applicable to Linux 2.4 and 2.6 kernels and was targeted
at ReleaseThis is the osr61-0.9.2.2 package, released 2007-06-24. This `0.9.2.2' release, and the latest version, can be obtained from the download area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/osr61-0.9.2.2.tar.bz2 The release is available as an autoconf(1) tarball, src.rpm or dsc, or as a set of binary rpms or debs. See the download page for the autoconf(1) tarballs, src.rpms or dscs. See the osr61 package page for tarballs, source and binary packages. Please see the NEWS file for release notes and history of user visible changes for the current version, and the ChangeLog file for a more detailed history of implementation changes. The TODO file lists features not yet implemented and other outstanding items. Please see the INSTALL, INSTALL-osr61 and README-make, files (or see Installation) for installation instructions. When working from cvs(1) or git(1), please see the README-cvs, file (or see Downloading from CVS). An abbreviated installation procedure that works for most applications appears below. This release of the package is published strictly under Version 2 of the GNU Public License which can be found in the file COPYING. Package specific licensing terms (if any) can be found in the file LICENSES. Please respect these licensing arrangements. If you are interested in different licensing terms, please contact the copyright holder, or OpenSS7 Corporation <sales@openss7.com>. See README-alpha (if it exists) for alpha release information. PrerequisitesThe quickest and easiest way to ensure that all prerequisites are met is to download and install this package from within the OpenSS7 Master Package, openss7-0.9.2.F, instead of separately. Prerequisites for the Dialogic Open Systems Release 6.1 package are as follows:
(Note: If you acquired osr61 a part of the OpenSS7 Master Package, then the dependencies listed below will already have been met by unpacking the master package.)
When configuring and building multiple OpenSS7 Project release packages, place all of the source packages (unpacked tarballs) at the same directory level and all build directories at the same directory level (e.g. all source packages under /usr/src). When installing packages that install as kernel modules, it is necessary to have the correct kernel development package installed. For the following distributions, use the following commands: Ubuntu: $> apt-get install linux-headers
Debian: $> apt-get install kernel-headers
Fedora: $> yum install kernel-devel
You also need the same version of gcc(1) compiler with which the kernel was built. If it is not the default, add `CC=kgcc' on the line after `./configure', for example: $> ../osr61-0.9.2.2/configure CC='gcc-3.4' InstallationThe following commands will download, configure, build, check, install, validate, uninstall and remove the package: $> wget http://www.openss7.org/tarballs/osr61-0.9.2.2.tar.bz2
$> tar -xjvf osr61-0.9.2.2.tar.bz2
$> mkdir build
$> pushd build
$> ../osr61-0.9.2.2/configure --enable-autotest
$> make
$> make check
$> sudo make install
$> sudo make installcheck
$> sudo make uninstall
$> popd
$> sudo rm -rf build
$> rm -rf osr61-0.9.2.2
$> rm -f osr61-0.9.2.2.tar.bz2
If you have problems, try building with the logging targets instead. If the make of a logging target fails, an automatic problem report will be generated that can be mailed to The OpenSS7 Project.5 Installation steps using the logging targets proceed as follows: $> wget http://www.openss7.org/tarballs/osr61-0.9.2.2.tar.bz2
$> tar -xjvf osr61-0.9.2.2.tar.bz2
$> mkdir build
$> pushd build
$> ../osr61-0.9.2.2/configure --enable-autotest
$> make compile.log
$> make check.log
$> sudo make install.log
$> sudo make installcheck.log
$> sudo make uninstall.log
$> popd
$> sudo rm -rf build
$> rm -rf osr61-0.9.2.2
$> rm -f osr61-0.9.2.2.tar.bz2
See README-make for additional specialized make targets. For custom applications, see the INSTALL and INSTALL-osr61 files or the see Installation, as listed below. If you encounter troubles, see Troubleshooting, before issuing a bug report. Brief Installation InstructionsThe Dialogic Open Systems Release 6.1 package is available from the downloads area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/osr61-0.9.2.2.tar.bz2 Unpack the tarball using a command such as: $> tar -xjvf osr61-0.9.2.2.tar.bz2 The tarball will unpack into the relative subdirectory named after the package name: osr61-0.9.2.2. The package builds using the GNU autoconf utilities and the configure script. To build the package, we recommend using a separate build directory as follows: $> mkdir build
$> cd build
$> ../osr61-0.9.2.2/configure
In general, the package configures and builds without adding any special options to the configure script. For general options to the configure script, see the GNU INSTALL file in the distribution: $> less ../osr61-0.9.2.2/INSTALL For specific options to the configure script, see the INSTALL-osr61 file in the distribution, or simply execute the configure script with the --help option like so: $> ../osr61-0.9.2.2/configure --help After configuring the package, the package can be compiled simply by issuing the `make' command: $> make Some specialized makefile targets exists, see the README-make file in the distribution or simply invoke the `help' target like so: $> make help | less After successfully building the package, the package can be checked by invoking the `check' make target like so: $> make check After successfully checking the package, the package can be installed by invoking the `install' make target (as root) like so: $> sudo make install The test suites that ship with the package can be invoked after the package has been installed by invoking the `installcheck' target. This target can either be invoked as root, or as a normal user, like so: $> make installcheck (Note: you must add the --enable-autotest flag to configure, above for the test suites to be invoked with `make installcheck'.) The package can be cleanly removed by invoking the `uninstall' target (as root): $> sudo make uninstall Then the build directory and tarball can be simply removed: $> cd ..
$> rm -rf build
$> rm -rf osr61-0.9.2.2
$> rm -f osr61-0.9.2.2.tar.bz2
Detailed Installation InstructionsMore detailed installation instructions can be found in the Installation, contained in the distribution in `text', `info', `html' and `pdf' formats: $> cd ../osr61-0.9.2.2
$> less doc/manual/osr61.txt
$> lynx doc/manual/osr61.html
$> info doc/manual/osr61.info
$> xpdf doc/manual/osr61.pdf
The `text' version of the manual is always available in the MANUAL file in the release. The current manual is also always available online from The OpenSS7 Project website at: $> lynx http://www.openss7.org/osr61_manual.html 1 IntroductionThis manual documents the design, implementation, installation, operation and future development schedule of the Dialogic Open Systems Release 6.1 package. 1.1 OverviewThis manual documents the design, implementation, installation, operation and future development of the Dialogic Open Systems Release 6.1 package. 1.2 Organization of this ManualThis manual is organized (loosely) into several sections as follows:
1.3 Conventions and DefinitionsThis manual uses texinfo typographic conventions. 2 ObjectiveThe objective for creating the Dialogic Open Systems Release 6.1 package was to provide support for Linux Fast-STREAMS to the Dialogic Open Systems Release 6.1 GPL drivers. Originally, these drivers worked with LiS, but as LiS is deprecated and buggy and does not support recent Linux distributions, it became necessary to support these drivers using Linux Fast-STREAMS. The Dialogic Open Systems Release 6.1 package also demonstrates the ease with which former LiS drivers can be ported to the production Linux Fast-STREAMS. The entire port from concept to completed package was performed in under 5 days. The only component for the Dialogic Open Systems Release 6.1 release that is released by Dialogic under the GPL (see GNU General Public License) are the core drivers for the release under Linux. The original driver package can be obtained from the osr61_239_GPLdrivers.tgz tarball from the Dialogic Website. The runtime libraries that make the drivers useful are released under far more restrictive terms and are, therefore, only available directly from Dialogic. The OpenSS7 Project currently does not have any applications or STREAMS modules that
depend upon the availability of the Dialogic Open Systems Release 6.1 package, and this is one of the
reasons that this package is initially untested (the 3 Reference
This chapter provides a reference to the contents of the OSR61 package.
Please note that this texinfo documentation is not updated as regularly as the manual
pages. For a more up to date package reference, please begin with the 3.1 FilesOSR61 creates the following kernel modules files in the kernel modules directory, /lib/modules/2.4.20-28.7/:6
OSR61 installs the following kernel module files in the kernel modules directory, /lib/modules/2.4.20-28.7/osr61/:7
OSR61 installs the following header files in the system include directory, /usr/include/osr61/: OSR61 installs the following test programs in the system libexec directory, /usr/libexec/osr61/:8
OSR61 installs the following utility programs in the system binary directory, /usr/sbin/:
OSR61 installs the following init scripts in the system init directory, /etc/rc.d/init.d/ (non-Debian) or /etc/init.d/ (Debian):
OSR61 installs the following system configuration files in the configuration directory, /etc/:
OSR61 installs the following system configuration file in the system configuration directory, /etc/sysconfig/ (non-Debian) or /etc/default/ (Debian):
OSR61 installs the following info files in the system info directory, /usr/share/info/:
OSR61 installs the following mannual page macros and reference database files in the system man directory, /usr/share/man/:9
OSR61 installs the following manual pages in the system man directory, /usr/share/man/man4/:
OSR61 installs the following manual pages in the system man directory, /usr/share/man/man5/:
OSR61 installs the following manual pages in the system man directory, /usr/share/man/man8/:
3.2 DriversThe configuration of STREAMS drivers is performed when compiling the Dialogic Open Systems Release 6.1 subsystem. The OSR61 subsystem, core drivers are part of every Dialogic Open Systems Release 6.1 system. Kernel modules are installed by the Dialogic Open Systems Release 6.1 package in the /lib/modules/2.4.20-28.7/osr61/ directory, with either a `.o' or `.ko' extension.10 The following lists the core drivers, STREAMS kernel tunable parameters, and STREAMS configuration information:11
3.3 ModulesThe configuration of STREAMS modules is performed when compiling the Dialogic Open Systems Release 6.1 subsystem. The OSR61 subsystem, core modules are part of every Dialogic Open Systems Release 6.1 system. Kernel modules are installed by the Dialogic Open Systems Release 6.1 package in the /lib/modules/2.4.20-28.7/osr61/ directory, with either a `.o' or `.ko' extension.12 The following lists the core modules, STREAMS kernel tunable parameters, and STREAMS configuration information:13
3.4 LibrariesAlthough the Dialogic® Open System Release 6.1 contains a number of runtime libraries for talking to the STREAMS drivers, these libraries carry restrictive licensing terms and are not included in this package. To compile the libraries, download the runtime library releases from the Dialogic Website and compile them yourself. Existing binary runtime libraries and applications should not have to be recompiled to use the Linux Fast-STREAMS drivers. 3.5 Utilities3.5.1 Init ScriptsFollowing are System V Init Scripts that are installed by the package:
3.5.2 User UtilitiesFollowing are user utilities for manipulating Streams: The OSR61 package does not currently contain any user utilities. 3.5.3 Administrative UtilitiesFollowing are administrative utilities for manipulating and examining the OSR61 subsystem: The OSR61 package does not currently contain any administrative utilities. 3.5.4 Performance Test ProgramsFollowing are performance test programs: The OSR61 package does not currently contain any performance test programs. 3.5.5 Conformance Test ProgramsFollowing and conformance and validation testing programs:
For the proper way to execute these validation test programs in a conformance and validation test suite, see Running Test Suites. 3.6 DevelopmentThe OSR61 package contains the necessary header files, shared and static libraries, manuals and manual pages necessary for the development of kernel modules, STREAMS modules and drivers, and applications programs based on the OSR61 package. 3.6.1 Header FilesHeader files are installed, typically, in the /usr/include/osr61 subdirectory.14 To use the header files from the package, `-I/usr/include/osr61' must be included in the gcc command line as a compile option. This is true regardless of whether user space or kernel space programs are being compiled. In general, `-I' include directives on the gcc command line should be ordered in the reverse order of the dependencies between packages. So, for example, if the include files from all add-on packages are required, the order of these directives would be: `-I/usr/include/strss7 -I/usr/include/strsctp -I/usr/include/strinet -I/usr/include/strxnet -I/usr/include/strxns -I/usr/include/strcompat -I/usr/include/streams'. 3.6.1.1 User Space ProgramsTypical include files for interacting with STREAMS from user space include the stropts.h header file. Additional header files for interacting with specific drivers or modules may also be required. 3.6.1.2 Kernel Space Drivers and ModulesTypical include files for writing STREAMS modules and drivers for kernel space include the sys/cmn_err.h, sys/kmem.h, sys/dki.h, sys/stream.h, sys/ddi.h, and sys/strconf.h header files. Additional header files for interacting with specific drivers or modules may also be required. 3.6.2 LibrariesShared or static versions of the libstreams library must be linked when using the osr61-0.9.2.2 package. This library must either be specified on the gcc command line as a shared library (e.g. `-lstreams') or as a static library (e.g. `/usr/lib/libstreams.a'). If the shared library is linked, include the following options on the gcc command line: If the static library is linked, include the following options on the gcc command line: 3.6.3 Kernel ModulesDeveloping STREAMS kernel modules is similar to user space programs with regard to header files. /usr/include/osr61 should be placed as an include directory to search in the gcc command line. The rules for compiling Linux kernel modules should be followed. In particular, several important intricacies should be considered:
3.6.4 Manual PagesThe osr61-0.9.2.2 package installs the following manual pages in the /usr/share/man/ subdirectory:
4 ConformanceWhen modifying the Dialogic Open Systems Release 6.1 package, an attempt was made to maintain binary compatibility and conformance for all of the drivers. It should be noted that as the LiS package against which these drivers were formerly compiled is buggy and cannot support full 32-bit over 64-bit compatibility, the binary interface to, and experienced behaviour of, the drivers may differ. It is intended that conformance to specifications for the OSR61 interface be tested using the
5 ReleasesThis is the OpenSS7 Release of the Dialogic Open Systems Release 6.1 tools, drivers and modules used with the Linux Fast-STREAMS or Linux STREAMS16 SVR 4.2 STREAMS releases. The purpose of providing a separate release of this package was to separate the Dialogic Open Systems Release 6.1 tools, headers, drivers and modules from the Linux STREAMS17 package for use with both Linux STREAMS18 and Linux Fast-STREAMS in preparation for replacement of the former by the later. The following sections provide information on Dialogic Open Systems Release 6.1 releases as well as compatibility information of OpenSS7 release to mainstream UNIX releases of the core, modules and drivers, as well as Linux kernel compatibility. 5.1 PrerequisitesThe quickest and easiest way to ensure that all prerequisites are met is to download and install this package from within the OpenSS7 Master Package, openss7-0.9.2.F, instead of separately. Prerequisites for the Dialogic Open Systems Release 6.1 package are as follows:
|