Beispiel #1
0
  void rrFromWire(DNSInput in) throws IOException {
    hashAlg = in.readU8();
    flags = in.readU8();
    iterations = in.readU16();

    int salt_length = in.readU8();
    if (salt_length > 0) salt = in.readByteArray(salt_length);
    else salt = null;

    int next_length = in.readU8();
    next = in.readByteArray(next_length);
    types = new TypeBitmap(in);
  }
Beispiel #2
0
 void rrFromWire(DNSInput in) throws IOException {
   if (in.remaining() > 0) options = new ArrayList();
   while (in.remaining() > 0) {
     int code = in.readU16();
     int len = in.readU16();
     byte[] data = in.readByteArray(len);
     options.add(new Option(code, data));
   }
 }
Beispiel #3
0
 @Override
 void rrFromWire(DNSInput in) throws IOException {
   address = in.readByteArray();
 }
Beispiel #4
0
 void rrFromWire(DNSInput in) throws IOException {
   certType = in.readU16();
   keyTag = in.readU16();
   alg = in.readU8();
   cert = in.readByteArray();
 }
Beispiel #5
0
 void rrFromWire(DNSInput in) throws IOException {
   addr = fromArray(in.readByteArray(4));
 }
 void rrFromWire(DNSInput in) throws IOException {
   data = in.readByteArray();
 }
Beispiel #7
0
 void rrFromWire(DNSInput in) throws IOException {
   address = InetAddress.getByAddress(name.toString(), in.readByteArray(16));
 }