]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-arcnet.c
Some platforms, e.g. some versions of AIX, appear not to define "struct
[tcpdump] / print-arcnet.c
index 1e6b2308821460784d6859136ce2bb0e285477c5..bdfe46c7f661787abc88b09fbbdcd7deaee9ff47 100644 (file)
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-arcnet.c,v 1.1 2001-04-17 08:39:19 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-arcnet.c,v 1.4 2001-07-05 18:54:14 guy Exp $ (LBL)";
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
 #endif
 
 #include <sys/param.h>
@@ -133,10 +137,11 @@ arcnet_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
        u_int length = h->len;
        struct arc_header *ap;
 
-       int phds, flag = 0, archdrlen;
+       int phds, flag = 0, archdrlen = 0;
        u_int seqid = 0;
        u_char arc_type;
 
+       ++infodelay;
        ts_print(&h->ts);
 
        if (caplen < ARC_HDRLEN) {
@@ -212,6 +217,9 @@ arcnet_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
 
  out:
        putchar('\n');
+       --infodelay;
+       if (infoprint)
+               info(0);
 }
 
 /*