2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
6 * Author: Hartmut Brandt <harti@freebsd.org>
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * $FreeBSD: src/sys/netgraph/atm/ng_uni.h,v 1.2 2005/01/07 01:45:40 imp Exp $
30 * $DragonFly: src/sys/netgraph7/atm/ng_uni.h,v 1.2 2008/06/26 23:05:37 dillon Exp $
32 * Netgraph module for UNI 4.0
34 #ifndef _NETGRAPH_ATM_NG_UNI_H_
35 #define _NETGRAPH_ATM_NG_UNI_H_
37 #define NG_UNI_NODE_TYPE "uni"
38 #define NGM_UNI_COOKIE 981112392
41 NGM_UNI_GETDEBUG
, /* get debug flags */
42 NGM_UNI_SETDEBUG
, /* set debug flags */
43 NGM_UNI_GET_CONFIG
, /* get configuration */
44 NGM_UNI_SET_CONFIG
, /* set configuration */
45 NGM_UNI_ENABLE
, /* enable processing */
46 NGM_UNI_DISABLE
, /* free resources and disable */
47 NGM_UNI_GETSTATE
, /* retrieve coord state */
50 struct ngm_uni_debug
{
51 uint32_t level
[UNI_MAXFACILITY
];
53 #define NGM_UNI_DEBUGLEVEL_INFO { \
54 &ng_parse_uint32_type, \
57 #define NGM_UNI_DEBUG_INFO \
59 { "level", &ng_uni_debuglevel_type }, \
63 #define NGM_UNI_CONFIG_INFO \
65 { "proto", &ng_parse_uint32_type }, \
66 { "popt", &ng_parse_uint32_type }, \
67 { "option", &ng_parse_uint32_type }, \
68 { "timer301", &ng_parse_uint32_type }, \
69 { "timer303", &ng_parse_uint32_type }, \
70 { "init303", &ng_parse_uint32_type }, \
71 { "timer308", &ng_parse_uint32_type }, \
72 { "init308", &ng_parse_uint32_type }, \
73 { "timer309", &ng_parse_uint32_type }, \
74 { "timer310", &ng_parse_uint32_type }, \
75 { "timer313", &ng_parse_uint32_type }, \
76 { "timer316", &ng_parse_uint32_type }, \
77 { "init316", &ng_parse_uint32_type }, \
78 { "timer317", &ng_parse_uint32_type }, \
79 { "timer322", &ng_parse_uint32_type }, \
80 { "init322", &ng_parse_uint32_type }, \
81 { "timer397", &ng_parse_uint32_type }, \
82 { "timer398", &ng_parse_uint32_type }, \
83 { "timer399", &ng_parse_uint32_type }, \
87 struct ngm_uni_config_mask
{
92 #define NGM_UNI_CONFIG_MASK_INFO \
94 { "mask", &ng_parse_hint32_type }, \
95 { "popt_mask", &ng_parse_hint32_type }, \
96 { "option_mask", &ng_parse_hint32_type }, \
100 struct ngm_uni_set_config
{
101 struct uni_config config
;
102 struct ngm_uni_config_mask mask
;
104 #define NGM_UNI_SET_CONFIG_INFO \
106 { "config", &ng_uni_config_type }, \
107 { "mask", &ng_uni_config_mask_type }, \