}
if (!open) {
throw new NotOpenException();
}
bpf_program prog;
if (!handleLock.readLock().tryLock()) {
throw new NotOpenException();
}
try {
if (!open) {
throw new NotOpenException();
}
prog = new bpf_program();
int rc = NativeMappings.pcap_compile(
handle, prog, bpfExpression, mode.getValue(),
ByteArrays.getInt(ByteArrays.toByteArray(netmask), 0)
);
if (rc < 0) {