2003-10-27 11:43:20 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2001-2003
|
|
|
|
.\" Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2004-07-09 07:26:15 +00:00
|
|
|
.\" Author: Hartmut Brandt <harti@FreeBSD.org>
|
2003-10-27 11:43:20 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.\" ng_sscfu(4) man page
|
|
|
|
.\"
|
|
|
|
.Dd October 24, 2003
|
2003-12-28 22:34:47 +00:00
|
|
|
.Dt NG_SSCFU 4
|
2004-07-06 07:02:31 +00:00
|
|
|
.Os
|
2003-10-27 11:43:20 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ng_sscfu
|
|
|
|
.Nd netgraph SSCF at the UNI node type
|
|
|
|
.Sh SYNOPSIS
|
2004-07-09 07:26:15 +00:00
|
|
|
.In netnatm/saal/sscopdef.h
|
|
|
|
.In netnatm/saal/sscfudef.h
|
|
|
|
.In netgraph/atm/ng_sscfu.h
|
2004-07-06 20:43:24 +00:00
|
|
|
.Sh DESCRIPTION
|
2003-10-27 11:43:20 +00:00
|
|
|
The
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm sscfu
|
|
|
|
netgraph node type implements ITU-T recommendation Q.2130.
|
2003-10-27 11:43:20 +00:00
|
|
|
This recommendation specifies the Service Specific Coordination
|
|
|
|
Function at the UNI.
|
|
|
|
This is a thin sub-layer between the SSCOP (see
|
|
|
|
.Xr ng_sscop 4 )
|
|
|
|
and the UNI signalling.
|
|
|
|
This node does not really implement a protocol but
|
|
|
|
provides a mapping between the signals at the upper layer of the SSCOP and
|
2004-07-09 07:26:15 +00:00
|
|
|
the signals the UNI expects at its lower layer.
|
2003-10-27 11:43:20 +00:00
|
|
|
It also provides default values for the parameters of the SSCOP.
|
|
|
|
.Pp
|
|
|
|
After creation of the node, the SSCF instance must be created by sending
|
2004-07-09 07:26:15 +00:00
|
|
|
an
|
|
|
|
.Dq enable
|
|
|
|
message to the node.
|
2003-10-27 11:43:20 +00:00
|
|
|
If the node is enabled, default SSCOP parameters
|
2004-07-09 07:26:15 +00:00
|
|
|
can be retrieved and set in the corresponding SSCOP instance.
|
2003-10-27 11:43:20 +00:00
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The node is shut down either by a
|
2003-10-27 11:43:20 +00:00
|
|
|
.Dv NGM_SHUTDOWN
|
2004-07-09 07:26:15 +00:00
|
|
|
message, or when all hooks are disconnected.
|
2003-10-27 11:43:20 +00:00
|
|
|
.Sh HOOKS
|
|
|
|
Each
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm sscfu
|
2003-10-27 11:43:20 +00:00
|
|
|
node has two hooks with fixed names:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Bl -tag -width ".Va upper"
|
|
|
|
.It Va lower
|
2003-10-27 11:43:20 +00:00
|
|
|
This hook is the interface to the SSCOP.
|
|
|
|
The interface expected here is exactly
|
|
|
|
that which is exported by the
|
|
|
|
.Xr ng_sscop 4
|
|
|
|
node type.
|
2004-07-09 07:26:15 +00:00
|
|
|
.It Va upper
|
2004-07-03 18:29:24 +00:00
|
|
|
This is the interface to the UNI.
|
|
|
|
It uses the following message format:
|
2003-10-27 11:43:20 +00:00
|
|
|
.Bd -literal
|
|
|
|
struct sscfu_arg {
|
|
|
|
uint32_t sig;
|
|
|
|
u_char data[];
|
|
|
|
};
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va sig
|
|
|
|
field
|
2003-10-27 11:43:20 +00:00
|
|
|
is one of the following signals:
|
|
|
|
.Bd -literal
|
|
|
|
enum saal_sig {
|
|
|
|
SAAL_ESTABLISH_request, /* U -> SAAL: (UU) */
|
|
|
|
SAAL_ESTABLISH_indication, /* SAAL -> U: (UU) */
|
|
|
|
SAAL_ESTABLISH_confirm, /* SAAL -> U: (UU) */
|
|
|
|
SAAL_RELEASE_request, /* U -> SAAL: (UU) */
|
|
|
|
SAAL_RELEASE_confirm, /* SAAL -> U: */
|
|
|
|
SAAL_RELEASE_indication, /* SAAL -> U: (UU) */
|
|
|
|
SAAL_DATA_request, /* U -> SAAL: (DATA) */
|
|
|
|
SAAL_DATA_indication, /* SAAL -> U: (DATA) */
|
|
|
|
SAAL_UDATA_request, /* U -> SAAL: (UDATA) */
|
|
|
|
SAAL_UDATA_indication, /* SAAL -> U: (UDATA) */
|
|
|
|
};
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The arrows in the comment show the direction of the signal, whether it
|
2003-10-27 11:43:20 +00:00
|
|
|
is a signal that comes out of the node
|
2004-07-09 07:26:15 +00:00
|
|
|
.Pq Ql -> ,
|
2003-10-27 11:43:20 +00:00
|
|
|
or is sent by the node user to the node
|
2004-07-09 07:26:15 +00:00
|
|
|
.Pq Ql <- .
|
|
|
|
The type of the data expected for the signal is specified in parentheses.
|
2003-10-27 11:43:20 +00:00
|
|
|
This data starts at the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va data
|
2003-10-27 11:43:20 +00:00
|
|
|
field of the message structure.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
If the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va lower
|
2004-07-03 18:29:24 +00:00
|
|
|
hook is disconnected and the node is enabled, the protocol state is
|
2003-10-27 11:43:20 +00:00
|
|
|
reset.
|
|
|
|
.Sh CONTROL MESSAGES
|
|
|
|
The
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm sscfu
|
2003-10-27 11:43:20 +00:00
|
|
|
node understands the generic messages plus the following:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Bl -tag -width indent
|
2004-07-03 18:29:24 +00:00
|
|
|
.It Dv NGM_SSCFU_GETDEFPARAM
|
2003-10-27 11:43:20 +00:00
|
|
|
This message returns a
|
2004-07-09 07:26:15 +00:00
|
|
|
.Vt sscop_param
|
2003-10-27 11:43:20 +00:00
|
|
|
structure, which contains the default parameters for the SSCOP at the
|
|
|
|
UNI.
|
|
|
|
This structure should be used for a
|
|
|
|
.Dv NGM_SSCOP_SETPARAM
|
|
|
|
message to the SSCOP node below the SSCF.
|
2004-07-03 18:29:24 +00:00
|
|
|
.It Dv NGM_SSCFU_ENABLE
|
2003-10-27 11:43:20 +00:00
|
|
|
This message creates the actual SSCF instance and initializes it.
|
2004-07-09 07:26:15 +00:00
|
|
|
Until this is done, parameters may neither be retrieved nor set,
|
|
|
|
and all messages
|
2003-10-27 11:43:20 +00:00
|
|
|
received on any hook are discarded.
|
2004-07-03 18:29:24 +00:00
|
|
|
.It Dv NGM_SSCFU_DISABLE
|
2003-10-27 11:43:20 +00:00
|
|
|
Destroy the SSCF instance.
|
2004-07-09 07:26:15 +00:00
|
|
|
After this, all messages on any hooks are discarded.
|
2003-10-27 11:43:20 +00:00
|
|
|
.It Dv NGM_SSCFU_GETDEBUG
|
2004-07-09 07:26:15 +00:00
|
|
|
Retrieve the debugging flags in a
|
2003-10-27 11:43:20 +00:00
|
|
|
.Vt uint32_t .
|
|
|
|
.It Dv NGM_SSCFU_SETDEBUG
|
|
|
|
Set debugging flags.
|
2004-07-09 07:26:15 +00:00
|
|
|
The argument must be a
|
2003-10-27 11:43:20 +00:00
|
|
|
.Vt uint32_t .
|
|
|
|
.It Dv NGM_SSCFU_GETSTATE
|
2004-07-09 07:26:15 +00:00
|
|
|
Retrieve the current state of the SSCFU instance in a
|
2003-10-27 11:43:20 +00:00
|
|
|
.Vt uint32_t .
|
|
|
|
If the node has not been enabled, 0 is returned.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr netgraph 4 ,
|
|
|
|
.Xr ng_atm 4 ,
|
|
|
|
.Xr ng_sscop 4 ,
|
|
|
|
.Xr ngctl 8
|
|
|
|
.Sh AUTHORS
|
2004-07-09 07:26:15 +00:00
|
|
|
.An Harti Brandt Aq harti@FreeBSD.org
|