*/
public void testNextEx() {
Pcap pcap = Pcap.openOffline(fname, errbuf);
try {
PcapHeader header = new PcapHeader(JMemory.Type.POINTER);
JBuffer buffer = new JBuffer(JMemory.Type.POINTER);
assertEquals(1, pcap.nextEx(header, buffer));
assertEquals(114, header.caplen());
assertEquals(114, buffer.size());
} finally {
pcap.close();
}
}