]> The Tcpdump Group git mirrors - libpcap/commit
[PATCH] Fix AIX-3.5 crash with read failure during stress
authorAlon Bar-Lev <[email protected]>
Wed, 4 Jan 2012 14:50:36 +0000 (16:50 +0200)
committerAlon Bar-Lev <[email protected]>
Wed, 4 Jan 2012 14:50:36 +0000 (16:50 +0200)
commit5374979607737bd0c3fdb409a172a41bf9a8c74f
treed338bb80cf79f07965c403bed5529301bcd76b2c
parenta15a4e651ceb7b90fdfc2fa90db34197da706097
[PATCH] Fix AIX-3.5 crash with read failure during stress

Until libpcap.1.1.0 maximum buffer length for reads on bpf files was 32768.
(It set using  ioctl(fd, BIOCSBLEN, size) call).

In libpcap.1.1.0 this value was increased:
---
/*
 * 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.
 */
---

It does not look like a bug  - the idea is just to try this size and decrease
the value if it is too big.

However this change caused unrecoverable read failure in stress.

Probably AIX specific issue.
Probably a different (larger) value can be set.
pcap-bpf.c