Beispiel #1
0
 public RSRV(PersistedReader reader)
 {
     Priority = reader.ReadUInt16();
     Weigth   = reader.ReadUInt16();
     Port     = reader.ReadUInt16();
     Target   = reader.ReadDomainName();
 }
Beispiel #2
0
 public RNAPTR(PersistedReader reader)
 {
     Order       = reader.ReadUInt16();
     Preference  = reader.ReadUInt16();
     Flags       = reader.ReadString();
     Services    = reader.ReadString();
     RegeXp      = reader.ReadString();
     Replacement = reader.ReadDomainName();
 }
Beispiel #3
0
 public Resource(PersistedReader reader)
 {
     Name   = reader.ReadDomainName();
     Type   = (Type)reader.ReadUInt16();
     Class  = (Class)reader.ReadUInt16();
     TTL    = reader.ReadUInt32();
     Length = reader.ReadUInt16();
     RECORD = ReadRecord(reader, Type, Length);
 }
Beispiel #4
0
 public RLOC(PersistedReader reader)
 {
     Version     = reader.ReadByte();         // must be 0!
     Size        = reader.ReadByte();
     HPreference = reader.ReadByte();
     VPreference = reader.ReadByte();
     Latitude    = reader.ReadUInt16();
     Longitude   = reader.ReadUInt16();
     Altitude    = reader.ReadUInt16();
 }
Beispiel #5
0
 public RSOA(PersistedReader reader)
 {
     MName   = reader.ReadDomainName();
     RName   = reader.ReadDomainName();
     Serial  = reader.ReadUInt16();
     Refresh = reader.ReadUInt16();
     Retry   = reader.ReadUInt16();
     Expire  = reader.ReadUInt16();
     Minimum = reader.ReadUInt16();
 }
Beispiel #6
0
 public RSIG(PersistedReader reader)
 {
     TypeCovered   = reader.ReadUInt16();
     Algo          = reader.ReadByte();
     Labels        = reader.ReadByte();
     TTL           = reader.ReadUInt16();
     SigExpiration = reader.ReadUInt16();
     SigInception  = reader.ReadUInt16();
     KeyTag        = reader.ReadUInt16();
     SigName       = reader.ReadDomainName();
     Sig           = reader.ReadString();
 }
Beispiel #7
0
        public RDS(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            KeyTag     = reader.ReadUInt16();
            Algo       = reader.ReadByte();
            DigestType = reader.ReadByte();
            length    -= 4;
            Digest     = new byte[length];
            Digest     = reader.ReadBytes(Digest.Length);
        }
Beispiel #8
0
 public RAAAA(PersistedReader reader)
 {
     if (IPAddress.TryParse(string.Format("{0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}:{6:x}:{7:x}",
                                          reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(),
                                          reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16(), reader.ReadUInt16()),
                            out IPAddress address))
     {
         this.Address = address;
     }
     else
     {
         Address = IPAddress.Any;
     }
 }
Beispiel #9
0
 public RKEY(PersistedReader reader)
 {
     Flags    = reader.ReadUInt16();
     Protocol = reader.ReadByte();
     Algo     = reader.ReadByte();
     PKey     = reader.ReadString();
 }
Beispiel #10
0
        public RNULL(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            Buffer = new byte[length];
            Buffer = reader.ReadBytes(Buffer.Length);
        }
Beispiel #11
0
 public RTSIG(PersistedReader reader)
 {
     AlgoName          = reader.ReadDomainName();
     TimeSIgned        = reader.ReadUInt16() << 32 | reader.ReadUInt16();
     Fudge             = reader.ReadUInt16();
     MacSize           = reader.ReadUInt16();
     Mac               = reader.ReadBytes(MacSize);
     OriginalID        = reader.ReadUInt16();
     EResourceRecordOR = reader.ReadUInt16();
     PayloadLength     = reader.ReadUInt16();
     PayloadData       = reader.ReadBytes(PayloadLength);
 }
Beispiel #12
0
        public RWKS(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            Address = string.Format("{0}.{1}.{2}.{3}",
                                    reader.ReadByte(),
                                    reader.ReadByte(),
                                    reader.ReadByte(),
                                    reader.ReadByte());
            Protocol = (int)reader.ReadByte();
            length  -= 5;
            Bitmap   = new byte[length];
            Bitmap   = reader.ReadBytes(length);
        }
Beispiel #13
0
 public RTKEY(PersistedReader reader)
 {
     Algo              = reader.ReadDomainName();
     Inception         = reader.ReadUInt16();
     Expiration        = reader.ReadUInt16();
     Mode              = reader.ReadUInt16();
     EResourceRecordOR = reader.ReadUInt16();
     KeySize           = reader.ReadUInt16();
     KeyData           = reader.ReadBytes(KeySize);
     PayloadLength     = reader.ReadUInt16();
     PayloadData       = reader.ReadBytes(PayloadLength);
 }
Beispiel #14
0
 public RNSAP(PersistedReader reader)
 {
     Length      = reader.ReadUInt16();
     NsapAddress = reader.ReadBytes(Length);
 }
Beispiel #15
0
 public RRT(PersistedReader reader)
 {
     Preference = reader.ReadUInt16();
     InterHost  = reader.ReadDomainName();
 }
Beispiel #16
0
 public Question(PersistedReader reader)
 {
     QName  = reader.ReadDomainName();
     QType  = (Type)reader.ReadUInt16();
     QClass = (Class)reader.ReadUInt16();
 }
Beispiel #17
0
 public RUnknown(PersistedReader reader)
 {
     reader.BaseStream.Position -= 2;
     Data = reader.ReadBytes(reader.ReadUInt16());
 }
Beispiel #18
0
 public RPX(PersistedReader reader)
 {
     Preference = reader.ReadUInt16();
     Map822     = reader.ReadDomainName();
     MapX400    = reader.ReadDomainName();
 }
Beispiel #19
0
 public RAFSDB(PersistedReader reader)
 {
     SubType  = reader.ReadUInt16();
     HostName = reader.ReadDomainName();
 }
Beispiel #20
0
 public RKX(PersistedReader reader)
 {
     Preference = reader.ReadUInt16();
     Exchanger  = reader.ReadDomainName();
 }