Beispiel #1
0
 void rrToWire(DNSOutput out, Compression c, boolean canonical) {
   host.toWire(out, c, canonical);
   admin.toWire(out, c, canonical);
   out.writeU32(serial);
   out.writeU32(refresh);
   out.writeU32(retry);
   out.writeU32(expire);
   out.writeU32(minimum);
 }
Beispiel #2
0
 void rrToWire(DNSOutput out, Compression c, boolean canonical) {
   out.writeU16(order);
   out.writeU16(preference);
   out.writeCountedString(flags);
   out.writeCountedString(service);
   out.writeCountedString(regexp);
   replacement.toWire(out, null, canonical);
 }
Beispiel #3
0
  void rrToWire(DataByteOutputStream out, Compression c, boolean canonical) {
    if (signature == null) return;

    out.writeShort(covered);
    out.writeByte(alg);
    out.writeByte(labels);
    out.writeInt(origttl);
    out.writeInt((int) (expire.getTime() / 1000));
    out.writeInt((int) (timeSigned.getTime() / 1000));
    out.writeShort(footprint);
    signer.toWire(out, null, canonical);
    out.writeArray(signature);
  }
 void toWire(DNSOutput out, int section, Compression c) {
   name.toWire(out, c);
   out.writeU16(type);
   out.writeU16(dclass);
   if (section == Section.QUESTION) return;
   out.writeU32(ttl);
   int lengthPosition = out.current();
   out.writeU16(0); /* until we know better */
   rrToWire(out, c, false);
   int rrlength = out.current() - lengthPosition - 2;
   out.save();
   out.jump(lengthPosition);
   out.writeU16(rrlength);
   out.restore();
 }
 void rrToWire(DNSOutput out, Compression c, boolean canonical) {
   out.writeU16(u16Field);
   nameField.toWire(out, null, canonical);
 }
Beispiel #6
0
  void rrToWire(DataByteOutputStream dbs, Compression c) throws IOException {
    if (target == null) return;

    dbs.writeShort(priority);
    target.toWire(dbs, null);
  }
Beispiel #7
0
  void rrToWire(DataByteOutputStream dbs, Compression c) throws IOException {
    if (target == null) return;

    target.toWire(dbs, c);
  }