From: Francois-Xavier Le Bail Date: Thu, 25 Jan 2018 13:34:56 +0000 (+0100) Subject: Add a comment about packet and capture lengths X-Git-Tag: tcpdump-4.99-bp~1356 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/bdeb75099d0cbe0f10021f62346e4a97809121ae Add a comment about packet and capture lengths --- diff --git a/print.c b/print.c index 70a0043c..e4f1a465 100644 --- a/print.c +++ b/print.c @@ -343,6 +343,13 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, return; } + /* + * At this point: + * capture length != 0, + * packet length != 0, + * packet length >= capture length. + */ + ts_print(ndo, &h->ts); /*