diff options
Diffstat (limited to 'contrib/tcpdump/print-sl.c')
-rw-r--r-- | contrib/tcpdump/print-sl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/tcpdump/print-sl.c b/contrib/tcpdump/print-sl.c index c89a9a3..3448287 100644 --- a/contrib/tcpdump/print-sl.c +++ b/contrib/tcpdump/print-sl.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.56 2000/10/10 05:06:10 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-sl.c,v 1.57 2001/07/05 18:54:17 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -60,6 +60,7 @@ sl_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) register u_int length = h->len; register const struct ip *ip; + ++infodelay; ts_print(&h->ts); if (caplen < SLIP_HDRLEN) { @@ -98,6 +99,9 @@ sl_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) default_print((u_char *)ip, caplen - SLIP_HDRLEN); out: putchar('\n'); + --infodelay; + if (infoprint) + info(0); } @@ -108,6 +112,7 @@ sl_bsdos_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) register u_int length = h->len; register const struct ip *ip; + ++infodelay; ts_print(&h->ts); if (caplen < SLIP_HDRLEN) { @@ -137,6 +142,9 @@ sl_bsdos_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p) default_print((u_char *)ip, caplen - SLIP_HDRLEN); out: putchar('\n'); + --infodelay; + if (infoprint) + info(0); } static void |