OpenSS7
SS7 for the
Common Man
© Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved.
Last modified: Wed, 18 Jun 2008 16:45:31 GMT
Home TopIndex FirstPrev Next LastMore Download Info FAQ Mail  Home -> Documentation -> Man Pages -> Manual Page
Quick Links

Download

SCTP

SIGTRAN

SS7

Hardware

STREAMS

Asterisk

Related

Package

Manual

FAQ

Man Pages

Applications

SS7 Stack

ISDN Stack

SIGTRAN Stack

VoIP Stack

MG Stack

SS7/ISDN Devices

IP Transport

Embedded Systems

OS

Documentation

FAQ

SIGTRAN

Design

Conformance

Performance

References

Man Pages

Manuals

Papers

Home

Overview

Status

Documentation

Resources

About

News

Description: Manual Page

Keywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpci


IP

Section: The OpenSS7 Project Devices (4)
Updated: Thu, 14 Dec 2017 14:23:01 GMT
Index Return to Main Contents

NAME

np_ip - STREAMS Internet Protocol (IP) Driver

SYNOPSIS

#include <sys/socket.h>
#include <netinet/ip.h>
#include <sys/npi.h>
#include <sys/npi_ip.h>

int ip_stream = open(ip_device, oflag);
int ip_xtistr = t_open(ip_device, oflag);
int ip_socket = socket(PF_INET, socket_type, IPPROTO_IP);

DESCRIPTION


The NPI-IP driver provide an interface between STREAMS drivers and the Linux IP subsystem. It presents an npi(7) Netwwork Provider Interface [1] to STREAMS drivers and provides access to the native Linux IP subsystem.

NPI-IP is implemented as a STREAMS(4) pseudo-device driver and provides the following devices:

/dev/np_ip
This devices provides acess to the NPI-IP protocol service interface using the N-primitives of the Network Provider Interface[1], npi(7), used for the Internet Protocol as described in npi_ip(7). The npi(7) interface provided on a stream opening this device is suitable for use with the sockets(3) library and provides the NPI-IP interface using sockets as described in npi_ip(7). This stream provides both connectionless and connection-oriented NPI services.
/dev/rawip
This device provides access to the NPI-IP protocol service interface using the T-primitives of the Transport Provider Interface[2], tpi(7), used for the Internet Protocol as described in tpi_ip(7). The tpi(7) interface provided on a stream opening this device is suitable for use with the xnet(3) or xti(3) library and proivdes the NPI-IP interface using XTI as described in xti_ip(3).

NPI-IP provides one socket type for use by the sockets(3) library socket(7) calls. NPI-IP provides sockets in the protocol family PF_INET using the protocol number IPPROTO_IP. The socket_type argument can be one of the following:

SOCK_RAW
A standard SOCK_RAW socket that provides direct access to IP packets. This socket uses the underlying /dev/rawip transport service provider.

USAGE

The following entries in /etc/protosw provides the information necessary for socksys(4) to use these devices:

PF_INET     SOCK_RAW      IPPROTO_IP    /dev/rawip   tpi   clts
PF_INET     SOCK_RAW      IPPROTO_IP    /dev/np_ip   npi   clts

For additional information, see socksys(4) and protosw(5).

IOCTLS

All interfaces support a set of management IO controls using ioctl(2) and streamio(7) I_STR system calls on the ip_stream, ip_xtistr or ip_socket. These management controls are described in ip_ioctl(4).

NOTICES

NPI-IP has several implementations. This manpage is for the STREAMS(4) implementation. There is also an INET(4) implementation which provides tpi(7) access to the Linux NET4 version of NPI-IP. For more information, see ip(7).

Note that using sockets(3) over STREAMS for the NPI-IP driver might be rather inefficient: unless you need to push modules, use a direct Linux native socket instead.

IMPLEMENTATION

The current NPI-IP pseudo-device driver hook directly into the Linux kernel IP subsystem. Previous approaches used a STREAMS over Sockets method that was inefficient and inflexible.

FILES

<sys/socket.h>, <netinet/ip.h>, <sys/npi.h>, <sys/npi_ip.h>, <sys/tpi.h>, <sys/tpi_ip.h>, <sys/xti.h>, <sys/xti_ip.h>.

DEVICES

/dev/ip, /dev/rawip.

SEE ALSO

ioctl(2), npi(7), npi_ip(7), protosw(5), ip(7), ip(8), ip_ioctl(4), socket(7), sockets(3), socksys(4), streamio(7), STREAMS(4), tpi(7), tpi_ip(7), xnet(3), xti(3), xti_ip(3).

BUGS

NPI-IP has no known bugs.

COMPATIBILITY

The /dev/rawip device providing a Transport Provider Interface[2] is roughly compatible with the raw ip TPI streams provided by Solaris®[3] and other UNIX® implementations.

CONFORMANCE

The TPI and NPI interfaces to IP services are implementation dependent and are not subject to standardization.

HISTORY

STREAMS access to IP services was originally performed using an STREAMS over Socket approach using the INET(4) pseudo-device driver from the strinet package. A more flexible direct implementation was performed using a separate driver that hooks directly into the Linux IP subsystem.

REFERENCES

[1]
NPI, Open Group CAE Specification: Network Provider Interface (NPI) Specification, Revision 2.0.0, Draft 2, August 17, 1992, (Parsippany, New Jersey), UNIXInternational,Inc., UNIX International Press. <http://www.openss7.org/docs/npi.pdf>
[2]
TPI Revision 2.0.0, Open Group CAE Specification: Transport Provider Interface (TPI) Specification, Revision 2.0.0, Draft 2, 1999, (Berkshire, UK), OpenGroup, Open Group Publication. <http://www.opengroup.org/onlinepubs/>
[3]
Solaris® 8, Solaris 8 Docmentation, 2001, (Santa Clara, California), Sun Microsystems, Inc., Sun. <http://docs.sun.com/>

TRADEMARKS

OpenSS7tm
is a trademark of OpenSS7 Corporation.
Linux®
is a registered trademark of Linus Torvalds.
UNIX®
is a registered trademark of The Open Group.
Solaris®
is a registered trademark of Sun Microsystems.

Other trademarks are the property of their respective owners.

IDENTIFICATION

The OpenSS7 Project: Package OpenSS7 version 0.9.2 released Thu, 14 Dec 2017 14:23:01 GMT.

Copyright©1997-2008OpenSS7 Corp.
All Rights Reserved.
(See roff source for permission notice.)



Index

NAME
SYNOPSIS
DESCRIPTION
USAGE
IOCTLS
NOTICES
IMPLEMENTATION
FILES
DEVICES
SEE ALSO
BUGS
COMPATIBILITY
CONFORMANCE
HISTORY
REFERENCES
TRADEMARKS
IDENTIFICATION

This document was created by man2html, using the manual pages.
Time: 14:23:01 GMT, December 14, 2017
OpenSS7
SS7 for the
Common Man
Home TopIndex FirstPrev Next LastMore Download Info FAQ Mail  Home -> Documentation -> Man Pages -> Manual Page
Last modified: Wed, 18 Jun 2008 16:45:31 GMT
© Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved.