clean up awk syntax
[unix-history] / usr / src / sys / netns / spp_debug.c
index 836cedd..9f2e190 100644 (file)
@@ -1,4 +1,10 @@
-/*      spp_debug.c     6.1     85/05/30     */
+/*
+ * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)spp_debug.c 7.1 (Berkeley) %G%
+ */
 
 #include "param.h"
 #include "systm.h"
 
 #include "param.h"
 #include "systm.h"
 #include "spp_debug.h"
 
 int    sppconsdebug = 0;
 #include "spp_debug.h"
 
 int    sppconsdebug = 0;
-extern char *prurequests[];
-extern char *tanames[];
-extern char *tcpstates[];
-extern char *tcptimers[];
 /*
  * spp debug routines
  */
 /*
  * spp debug routines
  */
@@ -38,10 +40,15 @@ spp_trace(act, ostate, sp, si, req)
        struct spidp *si;
        int req;
 {
        struct spidp *si;
        int req;
 {
+#ifdef INET
        u_short seq, ack, len, alo;
        unsigned long iptime();
        int flags;
        struct spp_debug *sd = &spp_debug[spp_debx++];
        u_short seq, ack, len, alo;
        unsigned long iptime();
        int flags;
        struct spp_debug *sd = &spp_debug[spp_debx++];
+       extern char *prurequests[];
+       extern char *sanames[];
+       extern char *tcpstates[];
+       extern char *tcptimers[];
 
        if (spp_debx == SPP_NDEBUG)
                spp_debx = 0;
 
        if (spp_debx == SPP_NDEBUG)
                spp_debx = 0;
@@ -66,7 +73,7 @@ spp_trace(act, ostate, sp, si, req)
                printf("%x %s:", sp, tcpstates[ostate]);
        else
                printf("???????? ");
                printf("%x %s:", sp, tcpstates[ostate]);
        else
                printf("???????? ");
-       printf("%s ", tanames[act]);
+       printf("%s ", sanames[act]);
        switch (act) {
 
        case SA_RESPOND:
        switch (act) {
 
        case SA_RESPOND:
@@ -95,6 +102,8 @@ spp_trace(act, ostate, sp, si, req)
 #ifndef lint
 #define pf(f) { if (flags&SP_/**/f) { printf("%s%s", cp, "f"); cp = ","; } }
                        pf(SP); pf(SA); pf(OB); pf(EM);
 #ifndef lint
 #define pf(f) { if (flags&SP_/**/f) { printf("%s%s", cp, "f"); cp = ","; } }
                        pf(SP); pf(SA); pf(OB); pf(EM);
+#else
+                       cp = cp;
 #endif
                        printf(">");
                }
 #endif
                        printf(">");
                }
@@ -127,4 +136,5 @@ spp_trace(act, ostate, sp, si, req)
 #define p3(f)  { printf("%s = %x, ", "f", sp->s_/**/f); }
        printf("\t"); p3(rack);p3(ralo);p3(snt);p3(flags); printf("\n");
 #endif
 #define p3(f)  { printf("%s = %x, ", "f", sp->s_/**/f); }
        printf("\t"); p3(rack);p3(ralo);p3(snt);p3(flags); printf("\n");
 #endif
+#endif
 }
 }