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