|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /*- ! 26: * Copyright (c) 1991, 1993 ! 27: * The Regents of the University of California. All rights reserved. ! 28: * ! 29: * Redistribution and use in source and binary forms, with or without ! 30: * modification, are permitted provided that the following conditions ! 31: * are met: ! 32: * 1. Redistributions of source code must retain the above copyright ! 33: * notice, this list of conditions and the following disclaimer. ! 34: * 2. Redistributions in binary form must reproduce the above copyright ! 35: * notice, this list of conditions and the following disclaimer in the ! 36: * documentation and/or other materials provided with the distribution. ! 37: * 3. All advertising materials mentioning features or use of this software ! 38: * must display the following acknowledgement: ! 39: * This product includes software developed by the University of ! 40: * California, Berkeley and its contributors. ! 41: * 4. Neither the name of the University nor the names of its contributors ! 42: * may be used to endorse or promote products derived from this software ! 43: * without specific prior written permission. ! 44: * ! 45: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ! 46: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ! 47: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ! 48: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ! 49: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ! 50: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ! 51: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ! 52: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ! 53: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ! 54: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! 55: * SUCH DAMAGE. ! 56: * ! 57: * @(#)argo_debug.h 8.1 (Berkeley) 6/10/93 ! 58: */ ! 59: ! 60: /***************************************************************** ! 61: Copyright IBM Corporation 1987 ! 62: ! 63: All Rights Reserved ! 64: ! 65: Permission to use, copy, modify, and distribute this software and its ! 66: documentation for any purpose and without fee is hereby granted, ! 67: provided that the above copyright notice appear in all copies and that ! 68: both that copyright notice and this permission notice appear in ! 69: supporting documentation, and that the name of IBM not be ! 70: used in advertising or publicity pertaining to distribution of the ! 71: software without specific, written prior permission. ! 72: ! 73: IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 74: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 75: IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 76: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 77: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 78: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 79: SOFTWARE. ! 80: ! 81: ******************************************************************/ ! 82: ! 83: /* ! 84: * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison ! 85: */ ! 86: ! 87: #ifndef __ARGO_DEBUG__ ! 88: #define __ARGO_DEBUG__ ! 89: ! 90: #define dump_buf(a, b) Dump_buf((caddr_t)(a), (int)(b)) ! 91: ! 92: /*********************************************** ! 93: * Lint stuff ! 94: **********************************************/ ! 95: #if defined(lint) ! 96: /* ! 97: * lint can't handle the flaky vacuous definitions ! 98: * of IFDEBUG, ENDDEBUG, etc. ! 99: */ ! 100: #endif /* defined(lint) */ ! 101: ! 102: /*********************************************** ! 103: * DEBUG ON: ! 104: **********************************************/ ! 105: #ifndef ARGO_DEBUG ! 106: #define ARGO_DEBUG ! 107: #endif /* ARGO_DEBUG */ ! 108: ! 109: ! 110: #ifdef ARGO_DEBUG ! 111: #if 0 ! 112: #ifndef TPPT ! 113: #define TPPT ! 114: #endif /* TPPT */ ! 115: ! 116: #ifndef TP_PERF_MEAS ! 117: #define TP_PERF_MEAS ! 118: #endif /* TP_PERF_MEAS */ ! 119: #endif /* 0 */ ! 120: ! 121: unsigned char argo_debug[128]; ! 122: ! 123: #define IFDEBUG(ascii) \ ! 124: if(argo_debug[ascii]) { ! 125: #define ENDDEBUG ; } ! 126: ! 127: #else /* ARGO_DEBUG */ ! 128: ! 129: /*********************************************** ! 130: * DEBUG OFF: ! 131: **********************************************/ ! 132: ! 133: #ifndef STAR ! 134: #define STAR * ! 135: #endif /* STAR */ ! 136: #define IFDEBUG(ascii) //*beginning of comment*/STAR ! 137: #define ENDDEBUG STAR/*end of comment*// ! 138: ! 139: #endif /* ARGO_DEBUG */ ! 140: ! 141: /*********************************************** ! 142: * ASSERT ! 143: **********************************************/ ! 144: #ifdef ARGO_DEBUG ! 145: ! 146: #ifndef lint ! 147: #define ASSERT(phrase) \ ! 148: if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__) ! 149: #else /* lint */ ! 150: #define ASSERT(phrase) /* phrase */ ! 151: #endif /* lint */ ! 152: ! 153: #else /* ARGO_DEBUG */ ! 154: ! 155: #define ASSERT(phrase) /* phrase */ ! 156: ! 157: #endif /* ARGO_DEBUG */ ! 158: ! 159: ! 160: /*********************************************** ! 161: * CLNP DEBUG OPTIONS ! 162: **********************************************/ ! 163: #define D_INPUT '\1' ! 164: /* clnp input */ ! 165: #define D_OUTPUT '\2' ! 166: /* clnp output */ ! 167: #define D_ROUTE '\3' ! 168: /* clnp routing */ ! 169: #define D_CTLINPUT '\4' ! 170: /* clnp control input */ ! 171: #define D_CTLOUTPUT '\5' ! 172: /* clnp control output */ ! 173: #define D_OPTIONS '\6' ! 174: /* clnp options */ ! 175: #define D_IOCTL '\7' ! 176: /* iso ioctls */ ! 177: #define D_ETHER '\10' ! 178: /* clnp over ethernet */ ! 179: #define D_TOKEN '\11' ! 180: /* clnp over token ring */ ! 181: #define D_ADCOM '\12' ! 182: /* clnp over the adcom */ ! 183: #define D_ISO '\13' ! 184: /* iso address family */ ! 185: #define D_FORWARD '\14' ! 186: /* clnp forwarding */ ! 187: #define D_DUMPOUT '\15' ! 188: /* dump clnp outgoing packets */ ! 189: #define D_DUMPIN '\16' ! 190: /* dump clnp input packets */ ! 191: #define D_DISCARD '\17' ! 192: /* debug clnp packet discard/er function */ ! 193: #define D_FRAG '\20' ! 194: /* clnp fragmentation */ ! 195: #define D_REASS '\21' ! 196: /* clnp reassembly */ ! 197: ! 198: char *clnp_iso_addrp(); ! 199: ! 200: /*********************************************** ! 201: * ESIS DEBUG OPTIONS ! 202: **********************************************/ ! 203: #define D_ESISOUTPUT '\30' ! 204: #define D_ESISINPUT '\31' ! 205: #define D_SNPA '\32' ! 206: ! 207: /*********************************************** ! 208: * ISIS DEBUG OPTIONS ! 209: **********************************************/ ! 210: #define D_ISISOUTPUT '\40' ! 211: #define D_ISISINPUT '\41' ! 212: ! 213: /*********************************************** ! 214: * EON DEBUG OPTION ! 215: **********************************************/ ! 216: #define D_EON '\57' ! 217: ! 218: /*********************************************** ! 219: * CONS DEBUG OPTIONS ! 220: **********************************************/ ! 221: ! 222: #define D_ECNWORK '\60' ! 223: #define D_ECNOUT '\61' ! 224: #define D_ECNFIN '\62' ! 225: #define D_ECNDWN '\63' ! 226: #define D_ECNUTIL '\64' ! 227: ! 228: #define D_INCOMING '\70' ! 229: #define D_CDATA '\71' ! 230: #define D_CFIND '\72' ! 231: #define D_CDUMP_REQ '\73' ! 232: #define D_CADDR '\74' ! 233: #define D_CCONS '\75' ! 234: #define D_CCONN '\76' ! 235: ! 236: ! 237: /*********************************************** ! 238: * TP DEBUG OPTIONS ! 239: **********************************************/ ! 240: ! 241: #define D_SETPARAMS '\137' ! 242: #define D_RTT '\140' ! 243: ! 244: #define D_ACKRECV '\141' ! 245: #define D_ACKSEND '\142' ! 246: #define D_CONN '\143' ! 247: #define D_CREDIT '\144' ! 248: #define D_DATA '\145' ! 249: #define D_DRIVER '\146' ! 250: ! 251: #define D_EMIT '\147' ! 252: #define D_ERROR_EMIT '\150' ! 253: #define D_TPINPUT '\151' ! 254: #define D_INDICATION '\152' ! 255: #define D_CHKSUM '\153' ! 256: ! 257: #define D_RENEG '\154' ! 258: #define D_PERF_MEAS '\155' ! 259: #define D_MBUF_MEAS '\156' ! 260: #define D_RTC '\157' ! 261: #define D_SB '\160' ! 262: ! 263: #define D_DISASTER_CHECK '\161' ! 264: #define D_REQUEST '\162' ! 265: #define D_STASH '\163' ! 266: #define D_NEWSOCK '\164' ! 267: #define D_TIMER '\165' ! 268: ! 269: #define D_TPIOCTL '\166' ! 270: #define D_SIZE_CHECK '\167' ! 271: #define D_2ER '\170' ! 272: #define D_DISASTER_CHECK_W '\171' ! 273: ! 274: #define D_XPD '\172' ! 275: #define D_SYSCALL '\173' ! 276: #define D_DROP '\174' ! 277: #define D_ZDREF '\175' ! 278: #define D_TPISO '\176' ! 279: #define D_QUENCH '\177' ! 280: ! 281: void dump_mbuf(); ! 282: ! 283: /*********************************************** ! 284: * New mbuf types for debugging w/ netstat -m ! 285: * This messes up 4.4 malloc for now. need bigger ! 286: * mbtypes array for now. ! 287: **********************************************/ ! 288: #ifdef notdef ! 289: ! 290: #define TPMT_DATA 0x21 ! 291: #define TPMT_RCVRTC 0x42 ! 292: #define TPMT_SNDRTC 0x41 ! 293: #define TPMT_TPHDR 0x22 ! 294: #define TPMT_IPHDR 0x32 ! 295: #define TPMT_SONAME 0x28 ! 296: #define TPMT_EOT 0x40 ! 297: #define TPMT_XPD 0x44 ! 298: #define TPMT_PCB 0x23 ! 299: #define TPMT_PERF 0x45 ! 300: ! 301: #else /* ARGO_DEBUG */ ! 302: ! 303: #define TPMT_DATA MT_DATA ! 304: #define TPMT_RCVRTC MT_DATA ! 305: #define TPMT_SNDRTC MT_DATA ! 306: #define TPMT_IPHDR MT_HEADER ! 307: #define TPMT_TPHDR MT_HEADER ! 308: #define TPMT_SONAME MT_SONAME ! 309: /* MT_EOT and MT_XPD are defined in tp_param.h */ ! 310: #define TPMT_XPD MT_OOBDATA ! 311: #define TPMT_PCB MT_PCB ! 312: #define TPMT_PERF MT_PCB ! 313: ! 314: #endif /* ARGO_DEBUG */ ! 315: ! 316: #endif /* __ARGO_DEBUG__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.