Unexpected end-of-stream exception would cause endless loop.
BoundedInputStreamBuffer had a 2gb limit on PCAP stream. Fixed by changing from 32bit to 64bit indexes.
BoundedInputStreamBuffer had an incorrect slice function. Code added but commented out as nobody uses these function.
BoundedInputStreamBuffer had various unimplemented/unused methods, changed them all to throw not-implemented-exceptions.
BoundedInputStreamBuffer had a cyclic buffer that is smaller than default snaplength in tcpdump, causing errors with packets automatically defragmented by hardware (LRO/GRO).
Allow clients of Pcap.java to decide on buffer size in BoundedInputStreamBuffer, to match what snaplength was used during capture, as new default is quite large (256kb).