2 .\" Copyright (c) 2001-2004
3 .\" Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 .\" All rights reserved.
7 .\" All rights reserved.
9 .\" Author: Harti Brandt <harti@freebsd.org>
11 .\" Redistribution and use in source and binary forms, with or without
12 .\" modification, are permitted provided that the following conditions
14 .\" 1. Redistributions of source code must retain the above copyright
15 .\" notice, this list of conditions and the following disclaimer.
16 .\" 2. Redistributions in binary form must reproduce the above copyright
17 .\" notice, this list of conditions and the following disclaimer in the
18 .\" documentation and/or other materials provided with the distribution.
20 .\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nd "ATM Call Control netgraph node type"
42 .In netnatm/msg/unistruct.h
43 .In netnatm/sig/unidef.h
44 .In netnatm/api/unisap.h
45 .In netnatm/api/atmapi.h
46 .In netnatm/api/ccatm.h
49 .In netgraph/ng_ccatm.h
53 node implements the API specified by the ATM Forum for access to ATM services
54 (see ATM-Forum document
56 This document specifies the semantics
57 of the API, not the exact language binding.
58 For this reason, it is expected that
59 this implementation is neither compile-time nor binary compatible with
60 other implementations of this API.
61 It should, however, be fairly straightforward
62 to convert between different API implementations.
64 This node is usually stacked on top of one or more UNI nodes (see
66 Each of these hooks appears as a
68 to the user of the node.
69 It also has one hook connected to the ILMI daemon for management purposes.
71 The node is removed when it receives a
73 messages or when all hooks are disconnected.
75 The node understands a number of hooks with predefined names and an
76 unlimited number of hooks for user connections.
77 The predefined names are:
78 .Bl -tag -width ".Va orphans"
82 node on top of a UNI stack.
83 The node expects the interface on these hooks
84 to conform to the upper interface specified in
86 These hooks are forced into queuing mode, so that there are no circular
87 calls from call control to UNI and UNI back to call control.
90 in the hook name is the decimal port number and should not be zero.
91 The port number is a 32-bit unsigned integer.
93 This hook should be connected to the ILMI daemon.
94 No data is ever sent on this hook and all received data is discarded.
95 The hook is used to send control messages along.
99 command a textual description of the current state of the node is sent
101 This text is sent as one large message consisting of more
106 All other hook names are taken to be user hooks and correspond to an
107 ATM endpoint as specified in the ATM Forum document.
108 The interface on these hooks is defined in
113 u_int32_t op; /* request code */
114 u_char data[]; /* optional data */
118 This structure is followed directly by the data for the operation.
119 The opcode is one of the following:
123 ATMOP_ABORT_CONNECTION,
124 ATMOP_ACCEPT_INCOMING_CALL,
126 ATMOP_ADD_PARTY_REJECT,
127 ATMOP_ADD_PARTY_SUCCESS,
128 ATMOP_ARRIVAL_OF_INCOMING_CALL,
130 ATMOP_CONNECT_OUTGOING_CALL,
132 ATMOP_GET_LOCAL_PORT_INFO,
133 ATMOP_P2MP_CALL_ACTIVE,
134 ATMOP_P2P_CALL_ACTIVE,
135 ATMOP_PREPARE_INCOMING_CALL,
136 ATMOP_PREPARE_OUTGOING_CALL,
137 ATMOP_QUERY_CONNECTION_ATTRIBUTES,
138 ATMOP_REJECT_INCOMING_CALL,
139 ATMOP_SET_CONNECTION_ATTRIBUTES,
140 ATMOP_WAIT_ON_INCOMING_CALL,
141 ATMOP_SET_CONNECTION_ATTRIBUTES_X,
142 ATMOP_QUERY_CONNECTION_ATTRIBUTES_X,
147 These codes correspond directly to the operations specified in the ATM
148 Forum document with the following exceptions:
149 .Bl -tag -width indent
160 uint32_t data; /* type of attached data */
166 is zero, the node has accepted the user request.
167 If something goes wrong,
169 contains an error code.
170 For requests that return data,
172 contains a code describing the type of data and the data itself
173 starts immediately after the structure.
174 .It Dv ATMOP_QUERY_CONNECTION_ATTRIBUTES_X
176 .Dv ATMOP_QUERY_CONNECTION_ATTRIBUTES
177 except that it allows to query several attributes
179 .It Dv ATMOP_SET_CONNECTION_ATTRIBUTES_X
181 .Dv ATMOP_SET_CONNECTION_ATTRIBUTES
182 except that it allows to set several attributes
184 The list of attributes is followed directly by the attributes in the same
185 order as they appear in the list.
188 If a user hook is disconnected, an active connection on that hook is released.
189 Incoming connections waiting to be accepted are reoffered to other
190 listening hooks or rejected.
192 Besides the generic messages the node understands the following special
194 .Bl -tag -width indent
195 .It Dv NGM_CCATM_DUMP
196 This causes the internal state of the node to be dumped in ASCII to the
199 .It Dv NGM_CCATM_STOP
200 This message causes all connections on that port to be aborted (not released!\&)
201 and all ATM endpoints which are bound to that port to be closed.
202 It stops processing of all messages from the UNI stack on that port UNI stack.
205 struct ngm_ccatm_port {
210 .It Dv NGM_CCATM_START
211 Start processing on the port.
215 .It Dv NGM_CCATM_CLEAR
218 structure and clears all prefixes and addresses on that port.
219 If the port number is zero, all ports are cleared.
220 .It Dv NGM_CCATM_GET_ADDRESSES
221 Get the list of all registered addresses on the given port.
224 structure and the result is a
225 .Vt ngm_ccatm_get_addresses
228 struct ngm_ccatm_get_addresses {
230 struct ngm_ccatm_address_req addr[0];
232 struct ngm_ccatm_address_req {
234 struct uni_addr addr;
240 field is zero in the request, all addresses on all ports
242 If it is not zero, only the addresses on that port are reported.
243 The number of addresses is returned in the
246 .It Dv NGM_CCATM_ADDRESS_REGISTERED
247 This message is used by ILMI to inform the
249 node that a previous address registration request was successful.
250 This causes the node to activate that address.
251 The argument to the message is a
252 .Vt ngm_ccatm_address_req
254 .It Dv NGM_CCATM_ADDRESS_UNREGISTERED
255 This message is used by ILMI to inform the
257 node that an address has been unregistered.
258 The node clears that address from its tables.
260 .Vt ngm_ccatm_address_req
262 .It Dv NGM_CCATM_SET_PORT_PARAM
263 This request sets the parameters on the given port.
266 struct ngm_ccatm_atm_port {
267 uint32_t port; /* port for which to set parameters */
268 uint32_t pcr; /* port peak cell rate */
269 uint32_t max_vpi_bits;
270 uint32_t max_vci_bits;
271 uint32_t max_svpc_vpi;
272 uint32_t max_svcc_vpi;
273 uint32_t min_svcc_vci;
279 This should be used only by ILMI and when that port is stopped and the
280 address and prefix tables of that port are empty.
284 .It Dv NGM_CCATM_GET_PORT_PARAM
285 Retrieve the parameters of the given port.
289 .Vt ngm_ccatm_atm_port .
290 .It Dv NGM_CCATM_GET_PORTLIST
291 Get a list of all available ports on that node.
292 This is returned as a
294 struct ngm_ccatm_portlist {
299 .It Dv NGM_CCATM_GETSTATE
300 Return the state of a port.
302 .Vt "struct ngm_ccatm_port"
303 and the return values as a
305 .It Dv NGM_CCATM_SETLOG
306 This requests sets a new logging level and returns the previous one.
307 The argument is either a
309 in which case it specifies the new logging level, or may be empty
310 in which case just the old level is returned as a
312 .It Dv NGM_CCATM_RESET
314 This is allowed only if the number of user hooks and connected UNI stacks is
316 .It Dv NGM_CCATM_GET_EXSTAT
317 Return extended status information from the node.
324 .An Harti Brandt Aq harti@FreeBSD.org