Searched refs:DnsPacket (Results 1 – 3 of 3) sorted by relevance
35 private void assertHeaderParses(DnsPacket.DnsHeader header, int id, int flag, in assertHeaderParses()39 assertEquals(header.getRecordCount(DnsPacket.QDSECTION), qCount); in assertHeaderParses()40 assertEquals(header.getRecordCount(DnsPacket.ANSECTION), aCount); in assertHeaderParses()41 assertEquals(header.getRecordCount(DnsPacket.NSSECTION), nsCount); in assertHeaderParses()42 assertEquals(header.getRecordCount(DnsPacket.ARSECTION), arCount); in assertHeaderParses()45 private void assertRecordParses(DnsPacket.DnsRecord record, String dname, in assertRecordParses()54 class TestDnsPacket extends DnsPacket {105 List<DnsPacket.DnsRecord> qdRecordList = in testV4Answer()106 packet.getRecordList(DnsPacket.QDSECTION); in testV4Answer()110 List<DnsPacket.DnsRecord> anRecordList = in testV4Answer()[all …]
38 public abstract class DnsPacket { class204 private static final String TAG = DnsPacket.class.getSimpleName();209 protected DnsPacket(@NonNull byte[] data) throws ParseException { in DnsPacket() method in DnsPacket
528 private static class DnsAddressAnswer extends DnsPacket {