]> The Tcpdump Group git mirrors - libpcap/commitdiff
Note why AIX needs a smaller default buffer size.
authorGuy Harris <[email protected]>
Thu, 5 Apr 2012 23:16:01 +0000 (19:16 -0400)
committerGuy Harris <[email protected]>
Fri, 8 Jun 2012 18:04:51 +0000 (11:04 -0700)
pcap-bpf.c

index e18fdfb374e8cf3c3d366dd2f4925215d835107c..944445f54c57a136344d67b3f4ece6165fadb7b3 100644 (file)
@@ -1455,6 +1455,10 @@ check_setif_failure(pcap_t *p, int error)
  * Default capture buffer size.
  * 32K isn't very much for modern machines with fast networks; we
  * pick .5M, as that's the maximum on at least some systems with BPF.
  * Default capture buffer size.
  * 32K isn't very much for modern machines with fast networks; we
  * pick .5M, as that's the maximum on at least some systems with BPF.
+ *
+ * However, on AIX 3.5, the larger buffer sized caused unrecoverable
+ * read failures under stress, so we leave it as 32K; yet another
+ * place where AIX's BPF is broken.
  */
 #ifdef _AIX
 #define DEFAULT_BUFSIZE        32768
  */
 #ifdef _AIX
 #define DEFAULT_BUFSIZE        32768