]> 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 e56918cb0121f2d52be5f29a79c54d9bd6b5436a..bdfe46c7f661787abc88b09fbbdcd7deaee9ff47 100644 (file)
@@ -22,7 +22,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-arcnet.c,v 1.2 2001-04-24 02:26:14 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
@@ -137,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) {
@@ -216,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);
 }
 
 /*