void rrFromWire(DNSInput in) throws IOException { u16Field = in.readU16(); nameField = new Name(in); }
void rrFromWire(DNSInput in) throws IOException { next = new Name(in); types = new TypeBitmap(in); }
void rrFromWire(DNSInput in) throws IOException { next = new Name(in); bitmap = new BitSet(); int bitmapLength = in.remaining(); for (int i = 0; i < bitmapLength; i++) { int t = in.readU8(); for (int j = 0; j < 8; j++) if ((t & (1 << (7 - j))) != 0) bitmap.set(i * 8 + j); } }
void rrFromWire(DNSInput in) throws IOException { next = new Name(in); bitmap = new BitSet(); int bitmapLength = in.remaining(); for (int i = 0; i < bitmapLength; i++) { int t = in.readU8(); for (int j = 0; j < 8; j++) if ((t & (1 << (7 - j))) != 0) bitmap.set(i * 8 + j); } }
@Test public void testDnsQuery() throws Exception { Message message = Message.newQuery(new ARecord(new Name("notblocked.example.com."), 0x01, 3600,
void rrFromWire(DNSInput in) throws IOException { priority = in.readU16(); weight = in.readU16(); port = in.readU16(); target = new Name(in); }
void rrFromWire(DNSInput in) throws IOException { covered = in.readU16(); alg = in.readU8(); labels = in.readU8(); origttl = in.readU32(); expire = new Date(1000 * in.readU32()); timeSigned = new Date(1000 * in.readU32()); footprint = in.readU16(); signer = new Name(in); signature = in.readByteArray(); }
@Test public void testBlockedDnsQuery() throws Exception { Message message = Message.newQuery(new ARecord(new Name("blocked.example.com."), 0x01, 3600,
void rrFromWire(DNSInput in) throws IOException { covered = in.readU16(); alg = in.readU8(); labels = in.readU8(); origttl = in.readU32(); expire = new Date(1000 * in.readU32()); timeSigned = new Date(1000 * in.readU32()); footprint = in.readU16(); signer = new Name(in); signature = in.readByteArray(); }
void rrFromWire(DNSInput in) throws IOException { order = in.readU16(); preference = in.readU16(); flags = in.readCountedString(); service = in.readCountedString(); regexp = in.readCountedString(); replacement = new Name(in); }
void rrFromWire(DNSInput in) throws IOException { order = in.readU16(); preference = in.readU16(); flags = in.readCountedString(); service = in.readCountedString(); regexp = in.readCountedString(); replacement = new Name(in); }
@Test public void testBlockedInet6DnsQuery() throws Exception { Message message = Message.newQuery(new ARecord(new Name("blocked.example.com."), 0x01, 3600,