ec_rxstart doesn't eists
[unix-history] / usr / src / sys / netiso / tp_trace.h
index bd5d267..8d6f359 100644 (file)
@@ -1,3 +1,12 @@
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)tp_trace.h  7.6 (Berkeley) %G%
+ */
+
 /***********************************************************
                Copyright IBM Corporation 1987
 
 /***********************************************************
                Copyright IBM Corporation 1987
 
@@ -37,7 +46,6 @@ SOFTWARE.
 #ifndef __TP_TRACE__
 #define __TP_TRACE__
 
 #ifndef __TP_TRACE__
 #define __TP_TRACE__
 
-#ifdef TPPT
 
 #define TPPTsendack    1
 #define TPPTgotack     2
 
 #define TPPTsendack    1
 #define TPPTgotack     2
@@ -84,7 +92,7 @@ struct        tp_Trace {
                struct inpcb    tpt_Inpcb; /* protocol control block */
                struct tp_ref   tpt_Ref; /* ref part of pcb */
                struct tpdu     tpt_Tpdu; /* header*/
                struct inpcb    tpt_Inpcb; /* protocol control block */
                struct tp_ref   tpt_Ref; /* ref part of pcb */
                struct tpdu     tpt_Tpdu; /* header*/
-               struct tp_param tpt_Param; /* ?? bytes, make sure < 128??*/
+               struct tp_refinfo tpt_Param; /* ?? bytes, make sure < 128??*/
                struct tp_timeval tpt_Time;
                struct {
                        u_int tptm_2;
                struct tp_timeval tpt_Time;
                struct {
                        u_int tptm_2;
@@ -115,23 +123,12 @@ struct    tp_Trace {
 #define tpt_window tpt_stuff.tpt_Time.tptv_window
 #define tpt_size tpt_stuff.tpt_Time.tptv_size
 
 #define tpt_window tpt_stuff.tpt_Time.tptv_window
 #define tpt_size tpt_stuff.tpt_Time.tptv_size
 
-#define TPTRACEN 300
-int tp_Tracen = 0;
-struct tp_Trace tp_Trace[TPTRACEN];
-
 #endif defined(TP_TRACEFILE)||!defined(KERNEL)
 
 #endif defined(TP_TRACEFILE)||!defined(KERNEL)
 
-extern u_char  tp_traceflags[];
-
-#define IFTRACE(ascii)\
-       if(tp_traceflags[ascii]) {
-/* 
- * for some reason lint complains about tp_param being undefined no
- * matter where or how many times I define it.
- */
 
 
+#ifdef TPPT
 
 
-#define ENDTRACE  }
+#define TPTRACEN 300
 
 #define tptrace(A,B,C,D,E,F) \
        tpTrace((struct tp_pcb *)0,\
 
 #define tptrace(A,B,C,D,E,F) \
        tpTrace((struct tp_pcb *)0,\
@@ -142,19 +139,34 @@ extern u_char     tp_traceflags[];
        (u_int)(A),(u_int)(B),(u_int)(C),(u_int)(D),(u_int)(E),(u_int)(F))
 
 extern void tpTrace();
        (u_int)(A),(u_int)(B),(u_int)(C),(u_int)(D),(u_int)(E),(u_int)(F))
 
 extern void tpTrace();
+extern struct tp_Trace tp_Trace[];
+extern u_char  tp_traceflags[];
+int tp_Tracen = 0;
+
+#define IFTRACE(ascii)\
+       if(tp_traceflags[ascii]) {
+/* 
+ * for some reason lint complains about tp_param being undefined no
+ * matter where or how many times I define it.
+ */
+#define ENDTRACE  }
+
 
 #else  TPPT
 
 /***********************************************
  * NO TPPT TRACE STUFF
  **********************************************/
 
 #else  TPPT
 
 /***********************************************
  * NO TPPT TRACE STUFF
  **********************************************/
+#define TPTRACEN 1
+
+#define tptrace(A,B,C,D,E,F) 0
+#define tptraceTPCB(A,B,C,D,E,F) 0
 
 
-#ifndef STAR
-#define STAR *
-#endif STAR
-#define IFTRACE(ascii)  //*beginning of comment*/STAR
-#define ENDTRACE        STAR/*end of comment*//
+#define IFTRACE(ascii)  if (0) {
+#define ENDTRACE        }
 
 #endif TPPT
 
 
 #endif TPPT
 
+
+
 #endif __TP_TRACE__
 #endif __TP_TRACE__