Skip to content
Browse files

Merge pull request #5 from alonbl/aix

[PATCH] Fix AIX-3.5 crash with read failure during stress
  • Loading branch information...
2 parents a15a4e6 + 5374979 commit 7675f916e6a2252f88b267f9310b2bd49f80f3e1 @mcr committed Jan 23, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 pcap-bpf.c
View
4 pcap-bpf.c
@@ -1456,7 +1456,11 @@ check_setif_failure(pcap_t *p, int error)
* 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.
*/
+#ifdef _AIX
+#define DEFAULT_BUFSIZE 32768
+#else
#define DEFAULT_BUFSIZE 524288
+#endif
static int
pcap_activate_bpf(pcap_t *p)

0 comments on commit 7675f91

Please sign in to comment.
Something went wrong with that request. Please try again.