]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
Make "-x" and "-X" work with PPPoE interfaces; based on code from Darren
[tcpdump] / print-null.c
index a602bc3a511cfde4886733ed1ccc050100bb7447..30724ec68305b7b9fbb7cdc49ad7cd83fb538c72 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.40 2000-12-16 22:00:50 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-null.c,v 1.41 2001-07-05 18:54:15 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -113,6 +113,7 @@ null_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
        const struct ip *ip;
        u_int family;
 
+       ++infodelay;
        ts_print(&h->ts);
 
        memcpy((char *)&family, (char *)p, sizeof(family));
@@ -160,5 +161,8 @@ null_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
        if (xflag)
                default_print((const u_char *)ip, caplen - NULL_HDRLEN);
        putchar('\n');
+       --infodelay;
+       if (infoprint)
+               info(0);
 }