X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/aa22569a90e6228e33590a16be7e545a46928fd7..0c20532a3e147d6d932b818f83cf0a1ca165c0db:/print-null.c diff --git a/print-null.c b/print-null.c index a602bc3a..30724ec6 100644 --- a/print-null.c +++ b/print-null.c @@ -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); }