1 /* $NetBSD: argo_debug.h,v 1.14 2005/05/29 21:27:45 christos Exp $ */
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
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
31 * @(#)argo_debug.h 8.1 (Berkeley) 6/10/93
34 /*****************************************************************
35 Copyright IBM Corporation 1987
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
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 /***********************************************
68 **********************************************/
71 #endif /* ARGO_DEBUG */
85 extern unsigned char argo_debug
[128];
87 #endif /* ARGO_DEBUG */
89 /***********************************************
91 **********************************************/
95 #define ASSERT(phrase) \
96 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
98 #define ASSERT(phrase) /* phrase */
101 #else /* ARGO_DEBUG */
103 #define ASSERT(phrase) /* phrase */
105 #endif /* ARGO_DEBUG */
108 /***********************************************
110 **********************************************/
113 #define D_OUTPUT '\2'
117 #define D_CTLINPUT '\4'
118 /* clnp control input */
119 #define D_CTLOUTPUT '\5'
120 /* clnp control output */
121 #define D_OPTIONS '\6'
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 */
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 */
142 /* clnp fragmentation */
143 #define D_REASS '\21'
144 /* clnp reassembly */
146 /***********************************************
148 **********************************************/
149 #define D_ESISOUTPUT '\30'
150 #define D_ESISINPUT '\31'
153 /***********************************************
155 **********************************************/
156 #define D_ISISOUTPUT '\40'
157 #define D_ISISINPUT '\41'
159 /***********************************************
161 **********************************************/
164 /***********************************************
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 /***********************************************
185 **********************************************/
187 #define D_SETPARAMS '\137'
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'
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'
218 #define D_DISASTER_CHECK_W '\171'
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 **********************************************/
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_ */