BSD 4_4 release
[unix-history] / usr / src / sys / netiso / argo_debug.h
index 95b7bca..653982f 100644 (file)
@@ -1,5 +1,40 @@
-/***********************************************************
-               Copyright IBM Corporation 1987
+/*-
+ * 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
 
 
                       All Rights Reserved
 
@@ -28,9 +63,11 @@ SOFTWARE.
  * $Header: argo_debug.h,v 4.6 88/07/19 15:53:40 hagens Exp $
  * $Source: /usr/argo/sys/netiso/RCS/argo_debug.h,v $
  */
  * $Header: argo_debug.h,v 4.6 88/07/19 15:53:40 hagens Exp $
  * $Source: /usr/argo/sys/netiso/RCS/argo_debug.h,v $
  */
+
 #ifndef __ARGO_DEBUG__
 #define __ARGO_DEBUG__
 
 #ifndef __ARGO_DEBUG__
 #define __ARGO_DEBUG__
 
+#define dump_buf(a, b) Dump_buf((caddr_t)(a), (int)(b))
 
 /***********************************************
  * Lint stuff
 
 /***********************************************
  * Lint stuff
@@ -40,28 +77,34 @@ SOFTWARE.
  * lint can't handle the flaky vacuous definitions 
  * of IFDEBUG, ENDDEBUG, etc.
  */
  * lint can't handle the flaky vacuous definitions 
  * of IFDEBUG, ENDDEBUG, etc.
  */
-#ifndef TPPT
-#define TPPT
-#endif TPPT
-
-#ifndef ARGO_DEBUG
-#define ARGO_DEBUG
-#endif ARGO_DEBUG
-
-#endif defined(lint)
+#endif /* defined(lint) */
 
 /***********************************************
  * DEBUG ON:
  **********************************************/
 
 /***********************************************
  * DEBUG ON:
  **********************************************/
+#ifndef ARGO_DEBUG
+#define ARGO_DEBUG
+#endif /* ARGO_DEBUG */
+
 
 #ifdef ARGO_DEBUG
 
 #ifdef ARGO_DEBUG
+/*
+    #ifndef TPPT
+    #define TPPT
+    #endif TPPT
+
+    #ifndef TP_PERF_MEAS
+    #define TP_PERF_MEAS
+    #endif TP_PERF_MEAS
+*/
+
 unsigned char  argo_debug[128];
 
 #define IFDEBUG(ascii) \
        if(argo_debug[ascii]) { 
 #define ENDDEBUG  ; }
 
 unsigned char  argo_debug[128];
 
 #define IFDEBUG(ascii) \
        if(argo_debug[ascii]) { 
 #define ENDDEBUG  ; }
 
-#else  ARGO_DEBUG
+#else  /* ARGO_DEBUG */
 
 /***********************************************
  * DEBUG OFF:
 
 /***********************************************
  * DEBUG OFF:
@@ -69,11 +112,11 @@ unsigned char      argo_debug[128];
 
 #ifndef STAR
 #define STAR *
 
 #ifndef STAR
 #define STAR *
-#endif STAR
+#endif /* STAR */
 #define IFDEBUG(ascii)  //*beginning of comment*/STAR
 #define ENDDEBUG        STAR/*end of comment*//
 
 #define IFDEBUG(ascii)  //*beginning of comment*/STAR
 #define ENDDEBUG        STAR/*end of comment*//
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 /***********************************************
  * ASSERT 
 
 /***********************************************
  * ASSERT 
@@ -83,15 +126,15 @@ unsigned char      argo_debug[128];
 #ifndef lint
 #define ASSERT(phrase) \
 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
 #ifndef lint
 #define ASSERT(phrase) \
 if( !(phrase) ) printf("ASSERTION NOT VALID at line %d file %s\n",__LINE__,__FILE__)
-#else lint
+#else /* lint */
 #define ASSERT(phrase) /* phrase */
 #define ASSERT(phrase) /* phrase */
-#endif lint
+#endif /* lint */
 
 
-#else ARGO_DEBUG
+#else /* ARGO_DEBUG */
 
 #define ASSERT(phrase) /* phrase */
 
 
 #define ASSERT(phrase) /* phrase */
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 
 /***********************************************
 
 
 /***********************************************
@@ -141,6 +184,12 @@ char *clnp_iso_addrp();
 #define        D_ESISINPUT             '\31'
 #define D_SNPA                 '\32'
 
 #define        D_ESISINPUT             '\31'
 #define D_SNPA                 '\32'
 
+/***********************************************
+ * ISIS DEBUG OPTIONS
+ **********************************************/
+#define D_ISISOUTPUT   '\40'
+#define D_ISISINPUT            '\41'
+
 /***********************************************
  * EON DEBUG OPTION
  **********************************************/
 /***********************************************
  * EON DEBUG OPTION
  **********************************************/
@@ -213,8 +262,10 @@ void dump_mbuf();
 
 /***********************************************
  * New mbuf types for debugging w/ netstat -m
 
 /***********************************************
  * New mbuf types for debugging w/ netstat -m
+ * This messes up 4.4 malloc for now. need bigger
+ * mbtypes array for now.
  **********************************************/
  **********************************************/
-#ifdef ARGO_DEBUG
+#ifdef notdef
 
 #define        TPMT_DATA       0x21
 #define        TPMT_RCVRTC     0x42
 
 #define        TPMT_DATA       0x21
 #define        TPMT_RCVRTC     0x42
@@ -227,7 +278,7 @@ void dump_mbuf();
 #define        TPMT_PCB        0x23
 #define        TPMT_PERF       0x45
 
 #define        TPMT_PCB        0x23
 #define        TPMT_PERF       0x45
 
-#else ARGO_DEBUG
+#else /* ARGO_DEBUG */
 
 #define        TPMT_DATA       MT_DATA
 #define        TPMT_RCVRTC     MT_DATA
 
 #define        TPMT_DATA       MT_DATA
 #define        TPMT_RCVRTC     MT_DATA
@@ -236,11 +287,10 @@ void dump_mbuf();
 #define        TPMT_TPHDR      MT_HEADER
 #define        TPMT_SONAME     MT_SONAME
 /* MT_EOT and MT_XPD are defined in tp_param.h */
 #define        TPMT_TPHDR      MT_HEADER
 #define        TPMT_SONAME     MT_SONAME
 /* MT_EOT and MT_XPD are defined in tp_param.h */
-#define        TPMT_EOT        MT_EOT
-#define        TPMT_XPD        MT_XPD
+#define        TPMT_XPD        MT_OOBDATA
 #define        TPMT_PCB        MT_PCB
 #define        TPMT_PERF       MT_PCB
 
 #define        TPMT_PCB        MT_PCB
 #define        TPMT_PERF       MT_PCB
 
-#endif ARGO_DEBUG
+#endif /* ARGO_DEBUG */
 
 
-#endif __ARGO_DEBUG__
+#endif /* __ARGO_DEBUG__ */