Commit 7ec2cf6d authored by Brickner_cp's avatar Brickner_cp

DNS

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