diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-10-15 13:22:01 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-10-15 13:22:01 -0700 |
commit | e3ca98c216ce63462666ba37654637a2b729cfb1 (patch) | |
tree | 1c40d3b761ca870f5e9f43c86d12ab7353f1f4ea /sf-pcap.c | |
parent | 4bea271bf6f659da154059559143706cd7c65a95 (diff) |
Add in a comment to clarify that we're not over the snapshot length.
Diffstat (limited to 'sf-pcap.c')
-rw-r--r-- | sf-pcap.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -646,6 +646,9 @@ pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) */ hdr->caplen = p->snapshot; } else { + /* + * The packet is within the snapshot length for this file. + */ if (hdr->caplen > p->bufsize) { /* * Grow the buffer to the next power of 2, or |