예제 #1
0
 public RecordNAPTR(RecordReader rr)
 {
     ORDER = rr.ReadUInt16();
     PREFERENCE = rr.ReadUInt16();
     FLAGS = rr.ReadString();
     SERVICES = rr.ReadString();
     REGEXP = rr.ReadString();
     REPLACEMENT = rr.ReadDomainName();
 }
예제 #2
0
 public RecordDS(RecordReader rr)
 {
     ushort length = rr.ReadUInt16(-2);
     KEYTAG = rr.ReadUInt16();
     ALGORITHM = rr.ReadByte();
     DIGESTTYPE = rr.ReadByte();
     length -= 4;
     DIGEST = new byte[length];
     DIGEST = rr.ReadBytes(length);
 }
예제 #3
0
 public RecordTKEY(RecordReader rr)
 {
     ALGORITHM = rr.ReadDomainName();
     INCEPTION = rr.ReadUInt32();
     EXPIRATION = rr.ReadUInt32();
     MODE = rr.ReadUInt16();
     ERROR = rr.ReadUInt16();
     KEYSIZE = rr.ReadUInt16();
     KEYDATA = rr.ReadBytes(KEYSIZE);
     OTHERSIZE = rr.ReadUInt16();
     OTHERDATA = rr.ReadBytes(OTHERSIZE);
 }
예제 #4
0
 public RecordTSIG(RecordReader rr)
 {
     ALGORITHMNAME = rr.ReadDomainName();
     TIMESIGNED = rr.ReadUInt32() << 32 | rr.ReadUInt32();
     FUDGE = rr.ReadUInt16();
     MACSIZE = rr.ReadUInt16();
     MAC = rr.ReadBytes(MACSIZE);
     ORIGINALID = rr.ReadUInt16();
     ERROR = rr.ReadUInt16();
     OTHERLEN = rr.ReadUInt16();
     OTHERDATA = rr.ReadBytes(OTHERLEN);
 }
예제 #5
0
 public RecordSIG(RecordReader rr)
 {
     TYPECOVERED = rr.ReadUInt16();
     ALGORITHM = rr.ReadByte();
     LABELS = rr.ReadByte();
     ORIGINALTTL = rr.ReadUInt32();
     SIGNATUREEXPIRATION = rr.ReadUInt32();
     SIGNATUREINCEPTION = rr.ReadUInt32();
     KEYTAG = rr.ReadUInt16();
     SIGNERSNAME = rr.ReadDomainName();
     SIGNATURE = rr.ReadString();
 }
예제 #6
0
 public RecordKEY(RecordReader rr)
 {
     FLAGS = rr.ReadUInt16();
     PROTOCOL = rr.ReadByte();
     ALGORITHM = rr.ReadByte();
     PUBLICKEY = rr.ReadString();
 }
예제 #7
0
 public RecordNULL(RecordReader rr)
 {
     rr.Position -= 2;
     // re-read length
     ushort RDLENGTH = rr.ReadUInt16();
     ANYTHING = new byte[RDLENGTH];
     ANYTHING = rr.ReadBytes(RDLENGTH);
 }
예제 #8
0
 public RecordNXT(RecordReader rr)
 {
     ushort length = rr.ReadUInt16(-2);
     NEXTDOMAINNAME = rr.ReadDomainName();
     length -= (ushort)rr.Position;
     BITMAP = new byte[length];
     BITMAP = rr.ReadBytes(length);
 }
예제 #9
0
 public RecordAAAA(RecordReader rr)
 {
     System.Net.IPAddress.TryParse(
         string.Format(CultureInfo.InvariantCulture, "{0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}:{6:x}:{7:x}",
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16(),
         rr.ReadUInt16()), out this.m_address);
 }
예제 #10
0
 public RecordWKS(RecordReader rr)
 {
     ushort length = rr.ReadUInt16(-2);
     ADDRESS = string.Format(CultureInfo.InvariantCulture, "{0}.{1}.{2}.{3}",
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte(),
         rr.ReadByte());
     PROTOCOL = (int)rr.ReadByte();
     length -= 5;
     BITMAP = new byte[length];
     BITMAP = rr.ReadBytes(length);
 }
예제 #11
0
 public RecordRT(RecordReader rr)
 {
     PREFERENCE = rr.ReadUInt16();
     INTERMEDIATEHOST = rr.ReadDomainName();
 }
예제 #12
0
파일: RR.cs 프로젝트: hikaruyh88/EmailCheck
 public RR(RecordReader rr)
 {
     TimeLived = 0;
     NAME = rr.ReadDomainName();
     Type = (Type)rr.ReadUInt16();
     Class = (Class)rr.ReadUInt16();
     TTL = rr.ReadUInt32();
     RDLENGTH = rr.ReadUInt16();
     RECORD = rr.ReadRecord(Type);
     RECORD.RR = this;
 }
예제 #13
0
 public RecordSRV(RecordReader rr)
 {
     PRIORITY = rr.ReadUInt16();
     WEIGHT = rr.ReadUInt16();
     PORT = rr.ReadUInt16();
     TARGET = rr.ReadDomainName();
 }
예제 #14
0
 public RecordMX(RecordReader rr)
 {
     PREFERENCE = rr.ReadUInt16();
     EXCHANGE = rr.ReadDomainName();
 }
예제 #15
0
 public Header(RecordReader rr)
 {
     ID = rr.ReadUInt16();
     Flags = rr.ReadUInt16();
     QDCOUNT = rr.ReadUInt16();
     ANCOUNT = rr.ReadUInt16();
     NSCOUNT = rr.ReadUInt16();
     ARCOUNT = rr.ReadUInt16();
 }
예제 #16
0
 /// <summary>
 /// .ctor using record (from response)
 /// </summary>
 /// <param name="rr"></param>
 public Question(RecordReader rr)
 {
     QName = rr.ReadDomainName();
     QType = (QType)rr.ReadUInt16();
     QClass = (QClass)rr.ReadUInt16();
 }
예제 #17
0
 public RecordAFSDB(RecordReader rr)
 {
     SUBTYPE = rr.ReadUInt16();
     //HOSTNAME = rr.ReadString();
     HOSTNAME = rr.ReadDomainName();
 }
예제 #18
0
 public RecordPX(RecordReader rr)
 {
     PREFERENCE = rr.ReadUInt16();
     MAP822 = rr.ReadDomainName();
     MAPX400 = rr.ReadDomainName();
 }
예제 #19
0
 public RecordNSEC3PARAM(RecordReader rr)
 {
     // re-read length
     ushort RDLENGTH = rr.ReadUInt16(-2);
     RDATA = rr.ReadBytes(RDLENGTH);
 }
예제 #20
0
 public RecordNSAP(RecordReader rr)
 {
     LENGTH = rr.ReadUInt16();
     NSAPADDRESS = rr.ReadBytes(LENGTH);
 }