예제 #1
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);
 }
예제 #2
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);
 }
예제 #3
0
        public RNULL(PersistedReader reader)
        {
            reader.BaseStream.Position -= 2;
            ushort length = reader.ReadUInt16();

            Buffer = new byte[length];
            Buffer = reader.ReadBytes(Buffer.Length);
        }
예제 #4
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);
        }
예제 #5
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);
        }
예제 #6
0
파일: RA.cs 프로젝트: IkerRuizArnauda/IkDNS
 public RA(PersistedReader reader)
 {
     Address = new IPAddress(reader.ReadBytes(4));
 }
예제 #7
0
 public RNSAP(PersistedReader reader)
 {
     Length      = reader.ReadUInt16();
     NsapAddress = reader.ReadBytes(Length);
 }
예제 #8
0
 public RUnknown(PersistedReader reader)
 {
     reader.BaseStream.Position -= 2;
     Data = reader.ReadBytes(reader.ReadUInt16());
 }