Commit 7ec2cf6d authored by Brickner_cp's avatar Brickner_cp

DNS

parent c56980ec
......@@ -246,6 +246,14 @@ namespace PcapDotNet.Packets.TestUtils
case DnsType.Opt:
return new DnsResourceDataOptions(random.NextDnsOptions());
case DnsType.Apl:
return
new DnsResourceDataAddressPrefixList(
((Func<DnsAddressPrefix>)
(() =>
new DnsAddressPrefix(random.NextEnum<AddressFamily>(), random.NextByte(), random.NextBool(),
random.NextDataSegment(random.Next(0, 128))))).GenerateArray(random.Next(10)));
default:
return new DnsResourceDataAnything(random.NextDataSegment(random.Next(100)));
}
......
......@@ -292,12 +292,14 @@
/// <summary>
/// RFC 2671.
/// OPT.
/// Payload type: DnsResourceDataOptions.
/// </summary>
Opt = 41,
/// <summary>
/// RFC 3123.
/// APL.
/// Address Prefix List.
/// Payload type: DnsResourceDataAddressPrefixList.
/// </summary>
Apl = 42,
......
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