}
return new PcapStat(psp, true);
}
else {
pcap_stat ps = new pcap_stat();
ps.setAutoSynch(false);
int rc = NativeMappings.pcap_stats(handle, ps);
if (rc < 0) {
throw new PcapNativeException(getError(), rc);
}
return new PcapStat(ps.getPointer(), false);
}
} finally {
handleLock.readLock().unlock();
}
}