Add a comment about packet and capture lengths

This commit is contained in:
Francois-Xavier Le Bail 2018-01-25 14:34:56 +01:00
parent a8c1b2a339
commit bdeb75099d

View File

@ -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);
/*