2003-06-25 13:21:55 +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-06-25 13:21:55 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.\" ng_atm(4) man page
|
|
|
|
.\"
|
2012-11-02 13:54:06 +00:00
|
|
|
.Dd November 2, 2012
|
2003-12-28 22:34:47 +00:00
|
|
|
.Dt NG_ATM 4
|
2004-07-06 07:02:31 +00:00
|
|
|
.Os
|
2003-06-25 13:21:55 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ng_atm
|
|
|
|
.Nd netgraph ATM node type
|
|
|
|
.Sh SYNOPSIS
|
2005-02-05 11:31:31 +00:00
|
|
|
.In sys/types.h
|
2004-07-09 07:26:15 +00:00
|
|
|
.In net/if_atm.h
|
2005-02-05 11:31:31 +00:00
|
|
|
.In netgraph.h
|
|
|
|
.In netgraph/atm/ng_atm.h
|
2004-07-06 20:43:24 +00:00
|
|
|
.Sh DESCRIPTION
|
2003-06-25 13:21:55 +00:00
|
|
|
The
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm atm
|
2003-06-25 13:21:55 +00:00
|
|
|
netgraph node type allows
|
|
|
|
.Xr natm 4
|
2004-07-03 18:29:24 +00:00
|
|
|
ATM drivers to be connected to the
|
2003-06-25 13:21:55 +00:00
|
|
|
.Xr netgraph 4
|
|
|
|
networking subsystem.
|
|
|
|
When the
|
|
|
|
.Nm
|
2004-07-09 07:26:15 +00:00
|
|
|
module is loaded a node is automatically created for each
|
2003-06-25 13:21:55 +00:00
|
|
|
.Xr natm 4
|
2004-07-03 18:29:24 +00:00
|
|
|
ATM interface.
|
|
|
|
The nodes are named with the same name as the
|
|
|
|
interface.
|
2004-07-09 07:26:15 +00:00
|
|
|
Nodes are also created if a driver for an ATM
|
2003-06-25 13:21:55 +00:00
|
|
|
card is loaded after
|
|
|
|
.Nm
|
|
|
|
was loaded.
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Nm atm
|
2004-07-03 18:29:24 +00:00
|
|
|
nodes are persistent.
|
|
|
|
They are removed when the interface is removed.
|
2004-07-09 07:26:15 +00:00
|
|
|
.Dv NGM_SHUTDOWN
|
|
|
|
messages are ignored by the node.
|
2003-06-25 13:21:55 +00:00
|
|
|
.Sh HOOKS
|
|
|
|
Four special hooks with fixed names and an unlimited number of hooks with user
|
2004-07-03 18:29:24 +00:00
|
|
|
defined names are supported.
|
|
|
|
Three of the fixed hooks are attached to
|
2003-06-25 13:21:55 +00:00
|
|
|
strategic points in the information flow in the
|
|
|
|
.Xr natm 4
|
2004-07-03 18:29:24 +00:00
|
|
|
system and support only reading.
|
|
|
|
The fourth fixed hook behaves like the other
|
2003-06-25 13:21:55 +00:00
|
|
|
user hooks, but a number of management messages are sent along the hook.
|
|
|
|
The other hooks can be attached to VCIs dynamically by means of
|
|
|
|
control messages to the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm atm
|
2003-06-25 13:21:55 +00:00
|
|
|
node and can be written and read.
|
|
|
|
.Pp
|
|
|
|
The four fixed hooks are:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Bl -tag -width ".Va orphans"
|
|
|
|
.It Va input
|
2003-06-25 13:21:55 +00:00
|
|
|
This is a connection to the raw input stream from the network.
|
|
|
|
If this hook is connected, all incoming packets are delivered out to
|
2004-07-03 18:29:24 +00:00
|
|
|
this hook.
|
2004-07-09 07:26:15 +00:00
|
|
|
Note that this redirects ALL input.
|
2004-07-03 18:29:24 +00:00
|
|
|
Neither
|
2003-06-25 13:21:55 +00:00
|
|
|
.Xr natm 4
|
|
|
|
nor the user hooks will see any input if
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va input
|
2003-06-25 13:21:55 +00:00
|
|
|
is connected.
|
|
|
|
An
|
2004-07-09 07:26:15 +00:00
|
|
|
.Vt atm_pseudohdr
|
2003-06-25 13:21:55 +00:00
|
|
|
(see
|
|
|
|
.Xr natm 4 )
|
|
|
|
is prepended to the actual data.
|
2004-07-09 07:26:15 +00:00
|
|
|
.It Va output
|
2003-06-25 13:21:55 +00:00
|
|
|
This is a connection to the raw output stream to the network device.
|
|
|
|
If this hook is connected, all outgoing packets are handed over to
|
2004-06-21 17:42:49 +00:00
|
|
|
the netgraph system and delivered to the hook instead of being delivered
|
2003-06-25 13:21:55 +00:00
|
|
|
to the ATM driver.
|
|
|
|
An
|
2004-07-09 07:26:15 +00:00
|
|
|
.Vt atm_pseudohdr
|
2003-06-25 13:21:55 +00:00
|
|
|
(see
|
|
|
|
.Xr natm 4 )
|
|
|
|
is prepended to the actual data.
|
2004-07-09 07:26:15 +00:00
|
|
|
.It Va orphans
|
2004-07-03 18:29:24 +00:00
|
|
|
This hook receives all packets that are unrecognized, i.e., do not belong to
|
2003-06-25 13:21:55 +00:00
|
|
|
either a
|
|
|
|
.Xr natm 4
|
|
|
|
socket, a
|
|
|
|
.Nm
|
|
|
|
VCI or
|
|
|
|
.Xr natm 4
|
|
|
|
IP.
|
|
|
|
Because ATM is connection oriented and packets are received on a given VCI only
|
2004-07-03 18:29:24 +00:00
|
|
|
when someone initiates this VCI, packets should never be orphaned.
|
|
|
|
There is
|
2003-06-25 13:21:55 +00:00
|
|
|
however one exception: if you use
|
|
|
|
.Xr natm 4
|
2004-07-09 07:26:15 +00:00
|
|
|
IP with LLC/SNAP encapsulation packets with do not have the IP protocol
|
2003-06-25 13:21:55 +00:00
|
|
|
indicated in the packet header are delivered out of this hook.
|
|
|
|
An
|
2004-07-09 07:26:15 +00:00
|
|
|
.Vt atm_pseudohdr
|
2003-06-25 13:21:55 +00:00
|
|
|
(see
|
|
|
|
.Xr natm 4 )
|
|
|
|
is prepended to the actual data send out to the hook.
|
2004-07-09 07:26:15 +00:00
|
|
|
.It Va manage
|
|
|
|
This hook behaves exactly like a normal user hook (see below) except that
|
2003-06-25 13:21:55 +00:00
|
|
|
the node at the other hand will receive management messages.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Hooks for dynamically initiated VCIs can have whatever name is allowed by
|
2004-07-03 18:29:24 +00:00
|
|
|
.Xr netgraph 4
|
2003-06-25 13:21:55 +00:00
|
|
|
as long as the name does not collide with one of the three predefined names.
|
|
|
|
.Pp
|
2010-08-15 21:34:50 +00:00
|
|
|
To initiate packet sending and receiving on a dynamic hook, one has to issue
|
2003-06-25 13:21:55 +00:00
|
|
|
a
|
|
|
|
.Dv NGM_ATM_CPCS_INIT
|
2004-07-03 18:29:24 +00:00
|
|
|
control message.
|
|
|
|
To terminate sending and receiving one must send a
|
2003-06-25 13:21:55 +00:00
|
|
|
.Dv NGM_ATM_CPCS_TERM
|
|
|
|
message (see
|
2004-07-03 18:29:24 +00:00
|
|
|
.Sx CONTROL MESSAGES ) .
|
2004-07-09 07:26:15 +00:00
|
|
|
The data sent and received on these hooks has no additional
|
2003-06-25 13:21:55 +00:00
|
|
|
headers.
|
|
|
|
.Sh CONTROL MESSAGES
|
|
|
|
This node type supports the generic messages plus the following:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Bl -tag -width 4n
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_GET_IFNAME Pq Ic getifname
|
2004-07-09 07:26:15 +00:00
|
|
|
Return the name of the interface as a
|
|
|
|
.Dv NUL Ns
|
|
|
|
-terminated string.
|
2003-06-25 13:21:55 +00:00
|
|
|
This is normally the same name as that of the node.
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_GET_CONFIG Pq Ic getconfig
|
2003-06-25 13:21:55 +00:00
|
|
|
Returns a structure defining the configuration of the interface:
|
|
|
|
.Bd -literal
|
2012-11-02 13:54:06 +00:00
|
|
|
struct ngm_atm_config {
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t pcr; /* peak cell rate */
|
2012-11-02 13:54:06 +00:00
|
|
|
uint32_t vpi_bits; /* number of active VPI bits */
|
|
|
|
uint32_t vci_bits; /* number of active VCI bits */
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t max_vpcs; /* maximum number of VPCs */
|
|
|
|
uint32_t max_vccs; /* maximum number of VCCs */
|
|
|
|
};
|
|
|
|
.Ed
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_GET_VCCS Pq Ic getvccs
|
2004-07-03 18:29:24 +00:00
|
|
|
Returns the table of open VCCs from the driver.
|
|
|
|
This table consists of
|
2004-07-09 07:26:15 +00:00
|
|
|
a header and a variable sized array of entries, one for each open VCC:
|
2003-06-25 13:21:55 +00:00
|
|
|
.Bd -literal
|
|
|
|
struct atmio_vcctable {
|
|
|
|
uint32_t count; /* number of vccs */
|
|
|
|
struct atmio_vcc vccs[0]; /* array of VCCs */
|
|
|
|
};
|
|
|
|
struct atmio_vcc {
|
|
|
|
uint16_t flags; /* flags */
|
|
|
|
uint16_t vpi; /* VPI */
|
|
|
|
uint16_t vci; /* VCI */
|
|
|
|
uint16_t rmtu; /* Receive maximum CPCS size */
|
|
|
|
uint16_t tmtu; /* Transmit maximum CPCS size */
|
|
|
|
uint8_t aal; /* aal type */
|
|
|
|
uint8_t traffic; /* traffic type */
|
|
|
|
struct atmio_tparam tparam; /* traffic parameters */
|
|
|
|
};
|
|
|
|
struct atmio_tparam {
|
|
|
|
uint32_t pcr; /* 24bit: Peak Cell Rate */
|
|
|
|
uint32_t scr; /* 24bit: VBR Sustainable Cell Rate */
|
|
|
|
uint32_t mbs; /* 24bit: VBR Maximum burst size */
|
2012-11-02 13:54:06 +00:00
|
|
|
uint32_t mcr; /* 24bit: ABR/VBR/UBR+MCR MCR */
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t icr; /* 24bit: ABR ICR */
|
|
|
|
uint32_t tbe; /* 24bit: ABR TBE (1...2^24-1) */
|
|
|
|
uint8_t nrm; /* 3bit: ABR Nrm */
|
|
|
|
uint8_t trm; /* 3bit: ABR Trm */
|
|
|
|
uint16_t adtf; /* 10bit: ABR ADTF */
|
|
|
|
uint8_t rif; /* 4bit: ABR RIF */
|
|
|
|
uint8_t rdf; /* 4bit: ABR RDF */
|
|
|
|
uint8_t cdf; /* 3bit: ABR CDF */
|
|
|
|
};
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
Note that this is the driver's table, so all VCCs opened via
|
2003-06-25 13:21:55 +00:00
|
|
|
.Xr natm 4
|
2004-07-03 18:29:24 +00:00
|
|
|
sockets and IP are also shown.
|
|
|
|
They can, however, be distinguished by
|
|
|
|
their flags.
|
|
|
|
The
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va flags
|
2003-06-25 13:21:55 +00:00
|
|
|
field contains the following flags:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width ".Dv ATM_PH_LLCSNAP" -offset indent -compact
|
|
|
|
.It Dv ATM_PH_AAL5
|
|
|
|
use AAL5 instead of AAL0
|
|
|
|
.It Dv ATM_PH_LLCSNAP
|
|
|
|
if AAL5 use LLC SNAP encapsulation
|
|
|
|
.It Dv ATM_FLAG_NG
|
|
|
|
this is a netgraph VCC
|
|
|
|
.It Dv ATM_FLAG_HARP
|
|
|
|
this is a HARP VCC
|
|
|
|
.It Dv ATM_FLAG_NORX
|
|
|
|
transmit only VCC
|
|
|
|
.It Dv ATM_FLAG_NOTX
|
|
|
|
receive only VCC
|
|
|
|
.It Dv ATMIO_FLAG_PVC
|
|
|
|
treat channel as a PVC
|
2003-06-25 13:21:55 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
If the
|
|
|
|
.Dv ATM_FLAG_NG
|
|
|
|
flag is set, then
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va traffic
|
2003-06-25 13:21:55 +00:00
|
|
|
and
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va tparam
|
2003-06-25 13:21:55 +00:00
|
|
|
contain meaningful information.
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va aal
|
|
|
|
field
|
2003-06-25 13:21:55 +00:00
|
|
|
contains one of the following values:
|
2004-07-09 07:26:15 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width ".Dv ATM_PH_LLCSNAP" -offset indent -compact
|
|
|
|
.It Dv ATMIO_AAL_0
|
|
|
|
AAL 0 (raw cells)
|
|
|
|
.It Dv ATMIO_AAL_34
|
|
|
|
AAL 3 or AAL 4
|
|
|
|
.It Dv ATMIO_AAL_5
|
|
|
|
AAL 5
|
|
|
|
.It Dv ATMIO_AAL_RAW
|
|
|
|
device specific raw cells
|
2003-06-25 13:21:55 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va traffic
|
|
|
|
field
|
2003-06-25 13:21:55 +00:00
|
|
|
can have one of the following values (not all drivers support
|
|
|
|
all traffic types however):
|
2004-07-09 07:26:15 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width ".Dv ATM_PH_LLCSNAP" -offset indent -compact
|
2003-06-25 13:21:55 +00:00
|
|
|
.It Dv ATMIO_TRAFFIC_UBR
|
|
|
|
.It Dv ATMIO_TRAFFIC_CBR
|
|
|
|
.It Dv ATMIO_TRAFFIC_ABR
|
|
|
|
.It Dv ATMIO_TRAFFIC_VBR
|
|
|
|
.El
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_CPCS_INIT Pq Ic cpcsinit
|
2004-07-03 18:29:24 +00:00
|
|
|
Initialize a VCC for sending and receiving.
|
|
|
|
The argument is a structure:
|
2003-06-25 13:21:55 +00:00
|
|
|
.Bd -literal
|
2012-11-02 13:54:06 +00:00
|
|
|
struct ngm_atm_cpcs_init {
|
2003-11-15 15:26:35 +00:00
|
|
|
char name[NG_HOOKSIZ];
|
2012-11-02 13:54:06 +00:00
|
|
|
uint32_t flags; /* flags. (if_atm.h) */
|
2003-06-25 13:21:55 +00:00
|
|
|
uint16_t vci; /* VCI to open */
|
|
|
|
uint16_t vpi; /* VPI to open */
|
|
|
|
uint16_t rmtu; /* receive maximum PDU */
|
|
|
|
uint16_t tmtu; /* transmit maximum PDU */
|
2012-11-02 13:54:06 +00:00
|
|
|
uint8_t aal; /* AAL type (if_atm.h) */
|
|
|
|
uint8_t traffic; /* traffic type (if_atm.h) */
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t pcr; /* Peak cell rate */
|
2012-11-02 13:54:06 +00:00
|
|
|
uint32_t scr; /* VBR: Sustainable cell rate */
|
|
|
|
uint32_t mbs; /* VBR: Maximum burst rate */
|
|
|
|
uint32_t mcr; /* UBR+: Minimum cell rate */
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t icr; /* ABR: Initial cell rate */
|
|
|
|
uint32_t tbe; /* ABR: Transmit buffer exposure */
|
|
|
|
uint8_t nrm; /* ABR: Nrm */
|
|
|
|
uint8_t trm; /* ABR: Trm */
|
|
|
|
uint16_t adtf; /* ABR: ADTF */
|
|
|
|
uint8_t rif; /* ABR: RIF */
|
|
|
|
uint8_t rdf; /* ABR: RDF */
|
|
|
|
uint8_t cdf; /* ABR: CDF */
|
|
|
|
};
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va name
|
|
|
|
field
|
2003-06-25 13:21:55 +00:00
|
|
|
is the name of the hook for which sending and receiving should be enabled.
|
|
|
|
This hook must already be connected.
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va vpi
|
2003-06-25 13:21:55 +00:00
|
|
|
and
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va vci
|
|
|
|
fields
|
2004-07-03 18:29:24 +00:00
|
|
|
are the respective VPI and VCI values to use for the ATM cells.
|
|
|
|
They must be
|
|
|
|
within the range, given by the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va maxvpi
|
2003-06-25 13:21:55 +00:00
|
|
|
and
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va maxvci
|
2003-06-25 13:21:55 +00:00
|
|
|
fields of the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Vt ng_atm_config
|
2003-06-25 13:21:55 +00:00
|
|
|
structure.
|
2004-07-09 07:26:15 +00:00
|
|
|
The
|
|
|
|
.Va flags
|
|
|
|
field
|
2003-06-25 13:21:55 +00:00
|
|
|
contains the flags (see above) and the other fields describe the
|
|
|
|
type of traffic.
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_CPCS_TERM Pq Ic cpcsterm
|
2004-07-03 18:29:24 +00:00
|
|
|
Stop sending and receiving on the indicated hook.
|
|
|
|
The argument is a
|
2003-06-25 13:21:55 +00:00
|
|
|
.Bd -literal
|
2012-11-02 13:54:06 +00:00
|
|
|
struct ngm_atm_cpcs_term {
|
2003-11-15 15:26:35 +00:00
|
|
|
char name[NG_HOOKSIZ];
|
2003-06-25 13:21:55 +00:00
|
|
|
};
|
|
|
|
.Ed
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_GET_STATS Pq Ic getstats
|
2016-06-08 08:50:35 +00:00
|
|
|
This command returns a message, containing node statistics.
|
|
|
|
The structure of the message is:
|
2012-11-02 13:54:06 +00:00
|
|
|
.Bd -literal
|
|
|
|
struct ngm_atm_stats {
|
|
|
|
uint64_t in_packets;
|
|
|
|
uint64_t in_errors;
|
|
|
|
uint64_t out_packets;
|
|
|
|
uint64_t out_errors;
|
|
|
|
};
|
|
|
|
.Ed
|
2003-09-11 13:45:29 +00:00
|
|
|
.El
|
2003-06-25 13:21:55 +00:00
|
|
|
.Sh MANAGEMENT MESSAGES
|
|
|
|
If the
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va manage
|
|
|
|
hook is connected, certain messages are sent along the hook.
|
2004-07-03 18:29:24 +00:00
|
|
|
They are
|
2003-06-25 13:21:55 +00:00
|
|
|
received by the peer node with a cookie of
|
|
|
|
.Dv NG_ATM_COOKIE .
|
2004-07-09 07:26:15 +00:00
|
|
|
.Bl -tag -width 4n
|
2012-11-02 13:54:06 +00:00
|
|
|
.It Dv NGM_ATM_VCC_CHANGE Pq Ic vcc_change
|
2004-07-03 18:29:24 +00:00
|
|
|
A permanent VCC has been added, deleted or changed.
|
|
|
|
This is used by
|
2004-07-09 07:26:15 +00:00
|
|
|
.Xr ilmid 8
|
2004-07-03 18:29:24 +00:00
|
|
|
to generate the appropriate ILMI traps.
|
|
|
|
The structure of the message is:
|
2003-06-25 13:21:55 +00:00
|
|
|
.Bd -literal
|
2012-11-02 13:54:06 +00:00
|
|
|
struct ngm_atm_vcc_change {
|
2003-06-25 13:21:55 +00:00
|
|
|
uint32_t node;
|
|
|
|
uint16_t vci;
|
|
|
|
uint8_t vpi;
|
|
|
|
uint8_t state;
|
|
|
|
};
|
|
|
|
.Ed
|
|
|
|
Where
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va state
|
|
|
|
is 0 if the PVC was deleted, and 1 if it was added or modified.
|
2003-06-25 13:21:55 +00:00
|
|
|
.El
|
|
|
|
.Sh FLOW CONTROL
|
2004-07-09 07:26:15 +00:00
|
|
|
If the hardware driver supports it, the node can emit flow control messages
|
2004-07-03 18:29:24 +00:00
|
|
|
along a user hook.
|
|
|
|
The format of these messages is described in
|
2004-07-09 07:26:15 +00:00
|
|
|
.In netgraph/ng_message.h .
|
2003-06-25 13:21:55 +00:00
|
|
|
The
|
2004-07-09 07:26:15 +00:00
|
|
|
.Nm atm
|
2003-06-25 13:21:55 +00:00
|
|
|
node may generate
|
2004-07-09 07:26:15 +00:00
|
|
|
.Dv NGM_HIGH_WATER_PASSED
|
|
|
|
and
|
|
|
|
.Dv NGM_LOW_WATER_PASSED
|
2004-07-03 18:29:24 +00:00
|
|
|
messages.
|
|
|
|
The first one indicates that the hardware driver has stopped output
|
2003-06-25 13:21:55 +00:00
|
|
|
on the channel and drops new packets, the second one reports that
|
2004-07-03 18:29:24 +00:00
|
|
|
output was reenabled.
|
2004-07-09 07:26:15 +00:00
|
|
|
Currently, the structures are not filled with
|
2003-06-25 13:21:55 +00:00
|
|
|
information.
|
|
|
|
.Sh SHUTDOWN
|
|
|
|
The nodes are persistent as long as the corresponding interface exists.
|
|
|
|
Upon receipt of a
|
|
|
|
.Dv NGM_SHUTDOWN
|
2004-07-09 07:26:15 +00:00
|
|
|
messages, all hooks are disconnected and the node is reinitialized.
|
2004-07-03 18:29:24 +00:00
|
|
|
All
|
2004-07-09 07:26:15 +00:00
|
|
|
VCCs opened via
|
|
|
|
.Xr netgraph 4
|
|
|
|
are closed.
|
|
|
|
When the ATM interface is unloaded,
|
2003-06-25 13:21:55 +00:00
|
|
|
the node disappears.
|
|
|
|
If the node is compiled with
|
|
|
|
.Dv NGATM_DEBUG
|
|
|
|
there is a sysctl
|
2004-07-09 07:26:15 +00:00
|
|
|
.Va net.graph.atm.allow_shutdown
|
|
|
|
which, when set to a non-zero value, allows the nodes to shut down.
|
|
|
|
Note that this is intended for development only and may lead to kernel
|
2003-06-25 13:21:55 +00:00
|
|
|
panics if set.
|
|
|
|
.Sh SEE ALSO
|
2004-07-04 20:55:50 +00:00
|
|
|
.Xr natm 4 ,
|
2003-06-25 13:21:55 +00:00
|
|
|
.Xr netgraph 4 ,
|
|
|
|
.Xr ng_ether 4 ,
|
|
|
|
.Xr ngctl 8
|
|
|
|
.Sh AUTHORS
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Harti Brandt Aq Mt harti@FreeBSD.org
|