No empty .Rs/.Re
[netbsd-mini2440.git] / sys / netiso / argo_debug.h
blob573ceba06e2497545bb796c7b5d9e352b36f7f82
1 /* $NetBSD: argo_debug.h,v 1.14 2005/05/29 21:27:45 christos Exp $ */
3 /*-
4 * Copyright (c) 1991, 1993
5 * The Regents of the University of California. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
31 * @(#)argo_debug.h 8.1 (Berkeley) 6/10/93
34 /*****************************************************************
35 Copyright IBM Corporation 1987
37 All Rights Reserved
39 Permission to use, copy, modify, and distribute this software and its
40 documentation for any purpose and without fee is hereby granted,
41 provided that the above copyright notice appear in all copies and that
42 both that copyright notice and this permission notice appear in
43 supporting documentation, and that the name of IBM not be
44 used in advertising or publicity pertaining to distribution of the
45 software without specific, written prior permission.
47 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
48 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
49 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
50 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
51 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
52 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
53 SOFTWARE.
55 ******************************************************************/
58 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
61 #ifndef _NETISO_ARGO_DEBUG_H_
62 #define _NETISO_ARGO_DEBUG_H_
63 void Dump_buf (const void *, size_t);
64 #define dump_buf(a, b) Dump_buf((a), (b))
66 /***********************************************
67 * DEBUG ON:
68 **********************************************/
69 #ifndef ARGO_DEBUG
70 #define ARGO_DEBUG
71 #endif /* ARGO_DEBUG */
74 #ifdef ARGO_DEBUG
76 #ifndef TPPT
77 #define TPPT
78 #endif
80 #ifndef TP_PERF_MEAS
81 #define TP_PERF_MEAS
82 #endif
85 extern unsigned char argo_debug[128];
87 #endif /* ARGO_DEBUG */
89 /***********************************************
90 * ASSERT
91 **********************************************/
92 #ifdef ARGO_DEBUG
94 #ifndef lint
95 #define ASSERT(phrase) \
96 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
97 #else /* lint */
98 #define ASSERT(phrase) /* phrase */
99 #endif /* lint */
101 #else /* ARGO_DEBUG */
103 #define ASSERT(phrase) /* phrase */
105 #endif /* ARGO_DEBUG */
108 /***********************************************
109 * CLNP DEBUG OPTIONS
110 **********************************************/
111 #define D_INPUT '\1'
112 /* clnp input */
113 #define D_OUTPUT '\2'
114 /* clnp output */
115 #define D_ROUTE '\3'
116 /* clnp routing */
117 #define D_CTLINPUT '\4'
118 /* clnp control input */
119 #define D_CTLOUTPUT '\5'
120 /* clnp control output */
121 #define D_OPTIONS '\6'
122 /* clnp options */
123 #define D_IOCTL '\7'
124 /* iso ioctls */
125 #define D_ETHER '\10'
126 /* clnp over ethernet */
127 #define D_TOKEN '\11'
128 /* clnp over token ring */
129 #define D_ADCOM '\12'
130 /* clnp over the adcom */
131 #define D_ISO '\13'
132 /* iso address family */
133 #define D_FORWARD '\14'
134 /* clnp forwarding */
135 #define D_DUMPOUT '\15'
136 /* dump clnp outgoing packets */
137 #define D_DUMPIN '\16'
138 /* dump clnp input packets */
139 #define D_DISCARD '\17'
140 /* debug clnp packet discard/er function */
141 #define D_FRAG '\20'
142 /* clnp fragmentation */
143 #define D_REASS '\21'
144 /* clnp reassembly */
146 /***********************************************
147 * ESIS DEBUG OPTIONS
148 **********************************************/
149 #define D_ESISOUTPUT '\30'
150 #define D_ESISINPUT '\31'
151 #define D_SNPA '\32'
153 /***********************************************
154 * ISIS DEBUG OPTIONS
155 **********************************************/
156 #define D_ISISOUTPUT '\40'
157 #define D_ISISINPUT '\41'
159 /***********************************************
160 * EON DEBUG OPTION
161 **********************************************/
162 #define D_EON '\57'
164 /***********************************************
165 * CONS DEBUG OPTIONS
166 **********************************************/
168 #define D_ECNWORK '\60'
169 #define D_ECNOUT '\61'
170 #define D_ECNFIN '\62'
171 #define D_ECNDWN '\63'
172 #define D_ECNUTIL '\64'
174 #define D_INCOMING '\70'
175 #define D_CDATA '\71'
176 #define D_CFIND '\72'
177 #define D_CDUMP_REQ '\73'
178 #define D_CADDR '\74'
179 #define D_CCONS '\75'
180 #define D_CCONN '\76'
183 /***********************************************
184 * TP DEBUG OPTIONS
185 **********************************************/
187 #define D_SETPARAMS '\137'
188 #define D_RTT '\140'
190 #define D_ACKRECV '\141'
191 #define D_ACKSEND '\142'
192 #define D_CONN '\143'
193 #define D_CREDIT '\144'
194 #define D_DATA '\145'
195 #define D_DRIVER '\146'
197 #define D_EMIT '\147'
198 #define D_ERROR_EMIT '\150'
199 #define D_TPINPUT '\151'
200 #define D_INDICATION '\152'
201 #define D_CHKSUM '\153'
203 #define D_RENEG '\154'
204 #define D_PERF_MEAS '\155'
205 #define D_MBUF_MEAS '\156'
206 #define D_RTC '\157'
207 #define D_SB '\160'
209 #define D_DISASTER_CHECK '\161'
210 #define D_REQUEST '\162'
211 #define D_STASH '\163'
212 #define D_NEWSOCK '\164'
213 #define D_TIMER '\165'
215 #define D_TPIOCTL '\166'
216 #define D_SIZE_CHECK '\167'
217 #define D_2ER '\170'
218 #define D_DISASTER_CHECK_W '\171'
220 #define D_XPD '\172'
221 #define D_SYSCALL '\173'
222 #define D_DROP '\174'
223 #define D_ZDREF '\175'
224 #define D_TPISO '\176'
225 #define D_QUENCH '\177'
227 /***********************************************
228 * New mbuf types for debugging w/ netstat -m
229 * This messes up 4.4 malloc for now. need bigger
230 * mbtypes array for now.
231 **********************************************/
232 #ifdef notdef
234 #define TPMT_DATA 0x21
235 #define TPMT_TPHDR 0x22
236 #define TPMT_IPHDR 0x32
237 #define TPMT_SONAME 0x28
238 #define TPMT_EOT 0x40
239 #define TPMT_XPD 0x44
241 #else /* ARGO_DEBUG */
243 #define TPMT_DATA MT_DATA
244 #define TPMT_RCVRTC MT_DATA
245 #define TPMT_SNDRTC MT_DATA
246 #define TPMT_IPHDR MT_HEADER
247 #define TPMT_TPHDR MT_HEADER
248 #define TPMT_SONAME MT_SONAME
249 /* MT_EOT and MT_XPD are defined in tp_param.h */
250 #define TPMT_XPD MT_OOBDATA
252 #endif /* ARGO_DEBUG */
254 #endif /* !_NETISO_ARGO_DEBUG_H_ */