Commit a8a38234 authored by Brickner_cp's avatar Brickner_cp

DNS

parent 29d60582
...@@ -153,6 +153,13 @@ namespace PcapDotNet.Packets.TestUtils ...@@ -153,6 +153,13 @@ namespace PcapDotNet.Packets.TestUtils
case DnsType.Aaaa: case DnsType.Aaaa:
return new DnsResourceDataIpV6(random.NextIpV6Address()); return new DnsResourceDataIpV6(random.NextIpV6Address());
case DnsType.Loc:
return new DnsResourceDataLocationInformation(random.NextByte(),
(ulong)(random.Next(10) * Math.Pow(10, random.Next(10))),
(ulong)(random.Next(10) * Math.Pow(10, random.Next(10))),
(ulong)(random.Next(10) * Math.Pow(10, random.Next(10))),
random.NextUInt(), random.NextUInt(), random.NextUInt());
default: default:
return new DnsResourceDataAnything(random.NextDataSegment(random.Next(100))); return new DnsResourceDataAnything(random.NextDataSegment(random.Next(100)));
} }
......
...@@ -208,6 +208,7 @@ ...@@ -208,6 +208,7 @@
/// <summary> /// <summary>
/// RFC 1876. /// RFC 1876.
/// Location Information. /// Location Information.
/// Payload type: DnsResourceDataLocationInformation.
/// </summary> /// </summary>
Loc = 29, Loc = 29,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment