]> The Tcpdump Group git mirrors - libpcap/commitdiff
Expand a comment (extra information taken from tcpdump's equivalent comment).
authorGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:41:39 +0000 (13:41 -0700)
committerGuy Harris <[email protected]>
Wed, 25 Jun 2014 20:41:39 +0000 (13:41 -0700)
pcap-int.h

index 61f38bfa3f7bd4294f56fc6e0e6d7add86f765aa..5a20444617a9d8d061ddf9d1ff7ae06815145b26 100644 (file)
@@ -97,7 +97,9 @@ extern CRITICAL_SECTION g_PcapCompileCriticalSection;
  * and
  *
  *    2) small enough not to cause attempts to allocate huge amounts of
- *       memory.
+ *       memory; some applications might use the snapshot length in a
+ *       savefile header to control the size of the buffer they allocate,
+ *       so a size of, say, 2^31-1 might not work well.
  *
  * We don't enforce this in pcap_set_snaplen(), but we use it internally.
  */