public RecordSRV(RecordReader rr) { PRIORITY = rr.ReadUInt16(); WEIGHT = rr.ReadUInt16(); PORT = rr.ReadUInt16(); TARGET = rr.ReadDomainName(); }
public RecordTXT(RecordReader rr) { //TXT = new List<string>(); //while(rr.Position < rr.Length) //TXT.Add(rr.ReadString()); TXT = rr.ReadString(); }
public RecordKEY(RecordReader rr) { FLAGS = rr.ReadUInt16(); PROTOCOL = rr.ReadByte(); ALGORITHM = rr.ReadByte(); PUBLICKEY = rr.ReadString(); }
public RecordNULL(RecordReader rr) { rr.Position -= 2; // re-read length ushort RDLENGTH = rr.ReadUInt16(); ANYTHING = new byte[RDLENGTH]; ANYTHING = rr.ReadBytes(RDLENGTH); }
public RecordNXT(RecordReader rr) { ushort length = rr.ReadUInt16(-2); NEXTDOMAINNAME = rr.ReadDomainName(); length -= (ushort)rr.Position; BITMAP = new byte[length]; BITMAP = rr.ReadBytes(length); }
public RecordNAPTR(RecordReader rr) { ORDER = rr.ReadUInt16(); PREFERENCE = rr.ReadUInt16(); FLAGS = rr.ReadString(); SERVICES = rr.ReadString(); REGEXP = rr.ReadString(); REPLACEMENT = rr.ReadDomainName(); }
public RecordA(RecordReader rr) { Address = new System.Net.IPAddress(rr.ReadBytes(4)); //System.Net.IPAddress.TryParse(string.Format("{0}.{1}.{2}.{3}", // rr.ReadByte(), // rr.ReadByte(), // rr.ReadByte(), // rr.ReadByte()), out this.Address); }
public RecordSOA(RecordReader rr) { MNAME = rr.ReadDomainName(); RNAME = rr.ReadDomainName(); SERIAL = rr.ReadUInt32(); REFRESH = rr.ReadUInt32(); RETRY = rr.ReadUInt32(); EXPIRE = rr.ReadUInt32(); MINIMUM = rr.ReadUInt32(); }
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); }
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); }
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(); }
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); }
public RecordWKS(RecordReader rr) { ushort length = rr.ReadUInt16(-2); ADDRESS = string.Format("{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); }
public RecordAAAA(RecordReader rr) { System.Net.IPAddress.TryParse( string.Format("{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.Address); }
public Response(IPEndPoint iPEndPoint, byte[] data) { Error = ""; Server = iPEndPoint; TimeStamp = DateTime.Now; MessageSize = data.Length; RecordReader rr = new RecordReader(data); Questions = new List<Question>(); Answers = new List<AnswerRR>(); Authorities = new List<AuthorityRR>(); Additionals = new List<AdditionalRR>(); header = new Header(rr); //if (header.RCODE != RCode.NoError) // Error = header.RCODE.ToString(); for (int intI = 0; intI < header.QDCOUNT; intI++) { Questions.Add(new Question(rr)); } for (int intI = 0; intI < header.ANCOUNT; intI++) { Answers.Add(new AnswerRR(rr)); } for (int intI = 0; intI < header.NSCOUNT; intI++) { Authorities.Add(new AuthorityRR(rr)); } for (int intI = 0; intI < header.ARCOUNT; intI++) { Additionals.Add(new AdditionalRR(rr)); } }
public RecordRP(RecordReader rr) { //MBOXDNAME = rr.ReadString(); MBOXDNAME = rr.ReadDomainName(); TXTDNAME = rr.ReadDomainName(); }
public Question(RecordReader rr) { QName = rr.ReadDomainName(); QType = (QType)rr.ReadUInt16(); QClass = (QClass)rr.ReadUInt16(); }
public AdditionalRR(RecordReader br) : base(br) { }
public RecordISDN(RecordReader rr) { ISDNADDRESS = rr.ReadString(); SA = rr.ReadString(); }
public RecordX25(RecordReader rr) { PSDNADDRESS = rr.ReadString(); }
public RecordHINFO(RecordReader rr) { CPU = rr.ReadString(); OS = rr.ReadString(); }
public RecordKX(RecordReader rr) { PREFERENCE = rr.ReadUInt16(); EXCHANGER = rr.ReadDomainName(); }
public RecordMF(RecordReader rr) { MADNAME = rr.ReadDomainName(); }
public RecordDNAME(RecordReader rr) { TARGET = rr.ReadDomainName(); }
public RecordPX(RecordReader rr) { PREFERENCE = rr.ReadUInt16(); MAP822 = rr.ReadDomainName(); MAPX400 = rr.ReadDomainName(); }
public RecordRT(RecordReader rr) { PREFERENCE = rr.ReadUInt16(); INTERMEDIATEHOST = rr.ReadDomainName(); }
public RecordMINFO(RecordReader rr) { RMAILBX = rr.ReadDomainName(); EMAILBX = rr.ReadDomainName(); }
public RecordNS(RecordReader rr) { NSDNAME = rr.ReadDomainName(); }
public RecordSSHFP(RecordReader rr) { // re-read length ushort RDLENGTH = rr.ReadUInt16(-2); RDATA = rr.ReadBytes(RDLENGTH); }
public RecordNSAP(RecordReader rr) { LENGTH = rr.ReadUInt16(); NSAPADDRESS = rr.ReadBytes(LENGTH); }