Commit 24414bbe authored by Brickner_cp's avatar Brickner_cp

Smaller indentation for SendingASinglePacketWithSendPacket example.

parent f951ad00
...@@ -128,14 +128,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -128,14 +128,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildEthernetPacket() private static Packet BuildEthernetPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.IpV4, EtherType = EthernetType.IpV4,
}; };
PayloadLayer payloadLayer = new PayloadLayer PayloadLayer payloadLayer =
new PayloadLayer
{ {
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")), Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
}; };
...@@ -150,14 +152,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -150,14 +152,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildArpPacket() private static Packet BuildArpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
ArpLayer arpLayer = new ArpLayer ArpLayer arpLayer =
new ArpLayer
{ {
ProtocolType = EthernetType.IpV4, ProtocolType = EthernetType.IpV4,
Operation = ArpOperation.Request, Operation = ArpOperation.Request,
...@@ -177,14 +181,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -177,14 +181,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildVLanTaggedFramePacket() private static Packet BuildVLanTaggedFramePacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
VLanTaggedFrameLayer vLanTaggedFrameLayer = new VLanTaggedFrameLayer VLanTaggedFrameLayer vLanTaggedFrameLayer =
new VLanTaggedFrameLayer
{ {
PriorityCodePoint = ClassOfService.Background, PriorityCodePoint = ClassOfService.Background,
CanonicalFormatIndicator = false, CanonicalFormatIndicator = false,
...@@ -192,7 +198,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -192,7 +198,8 @@ namespace SendingASinglePacketWithSendPacket
EtherType = EthernetType.IpV4, EtherType = EthernetType.IpV4,
}; };
PayloadLayer payloadLayer = new PayloadLayer PayloadLayer payloadLayer =
new PayloadLayer
{ {
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")), Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
}; };
...@@ -207,14 +214,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -207,14 +214,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildIpV4Packet() private static Packet BuildIpV4Packet()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, EtherType = EthernetType.None,
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -227,7 +236,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -227,7 +236,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
PayloadLayer payloadLayer = new PayloadLayer PayloadLayer payloadLayer =
new PayloadLayer
{ {
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")), Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
}; };
...@@ -242,14 +252,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -242,14 +252,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildIcmpPacket() private static Packet BuildIcmpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -262,7 +274,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -262,7 +274,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
IcmpEchoLayer icmpLayer = new IcmpEchoLayer IcmpEchoLayer icmpLayer =
new IcmpEchoLayer
{ {
Checksum = null, // Will be filled automatically. Checksum = null, // Will be filled automatically.
Identifier = 456, Identifier = 456,
...@@ -279,14 +292,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -279,14 +292,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildIgmpPacket() private static Packet BuildIgmpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -299,7 +314,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -299,7 +314,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
IgmpQueryVersion1Layer igmpLayer = new IgmpQueryVersion1Layer IgmpQueryVersion1Layer igmpLayer =
new IgmpQueryVersion1Layer
{ {
GroupAddress = new IpV4Address("1.2.3.4"), GroupAddress = new IpV4Address("1.2.3.4"),
}; };
...@@ -314,14 +330,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -314,14 +330,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildGrePacket() private static Packet BuildGrePacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -334,7 +352,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -334,7 +352,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
GreLayer greLayer = new GreLayer GreLayer greLayer =
new GreLayer
{ {
Version = GreVersion.Gre, Version = GreVersion.Gre,
ProtocolType = EthernetType.None, // Will be filled automatically. ProtocolType = EthernetType.None, // Will be filled automatically.
...@@ -350,7 +369,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -350,7 +369,8 @@ namespace SendingASinglePacketWithSendPacket
StrictSourceRoute = false, StrictSourceRoute = false,
}; };
IpV4Layer innerIpV4Layer = new IpV4Layer IpV4Layer innerIpV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("100.200.201.202"), Source = new IpV4Address("100.200.201.202"),
CurrentDestination = new IpV4Address("123.254.132.40"), CurrentDestination = new IpV4Address("123.254.132.40"),
...@@ -373,14 +393,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -373,14 +393,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildUdpPacket() private static Packet BuildUdpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -393,7 +415,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -393,7 +415,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
UdpLayer udpLayer = new UdpLayer UdpLayer udpLayer =
new UdpLayer
{ {
SourcePort = 4050, SourcePort = 4050,
DestinationPort = 25, DestinationPort = 25,
...@@ -401,7 +424,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -401,7 +424,8 @@ namespace SendingASinglePacketWithSendPacket
CalculateChecksumValue = true, CalculateChecksumValue = true,
}; };
PayloadLayer payloadLayer = new PayloadLayer PayloadLayer payloadLayer =
new PayloadLayer
{ {
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")), Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
}; };
...@@ -416,14 +440,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -416,14 +440,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildTcpPacket() private static Packet BuildTcpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -436,7 +462,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -436,7 +462,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
TcpLayer tcpLayer = new TcpLayer() TcpLayer tcpLayer =
new TcpLayer
{ {
SourcePort = 4050, SourcePort = 4050,
DestinationPort = 25, DestinationPort = 25,
...@@ -449,7 +476,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -449,7 +476,8 @@ namespace SendingASinglePacketWithSendPacket
Options = TcpOptions.None, Options = TcpOptions.None,
}; };
PayloadLayer payloadLayer = new PayloadLayer PayloadLayer payloadLayer =
new PayloadLayer
{ {
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")), Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
}; };
...@@ -464,14 +492,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -464,14 +492,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildDnsPacket() private static Packet BuildDnsPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -484,7 +514,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -484,7 +514,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
UdpLayer udpLayer = new UdpLayer UdpLayer udpLayer =
new UdpLayer
{ {
SourcePort = 4050, SourcePort = 4050,
DestinationPort = 53, DestinationPort = 53,
...@@ -492,7 +523,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -492,7 +523,8 @@ namespace SendingASinglePacketWithSendPacket
CalculateChecksumValue = true, CalculateChecksumValue = true,
}; };
DnsLayer dnsLayer = new DnsLayer DnsLayer dnsLayer =
new DnsLayer
{ {
Id = 100, Id = 100,
IsResponse = false, IsResponse = false,
...@@ -505,7 +537,12 @@ namespace SendingASinglePacketWithSendPacket ...@@ -505,7 +537,12 @@ namespace SendingASinglePacketWithSendPacket
IsAuthenticData = false, IsAuthenticData = false,
IsCheckingDisabled = false, IsCheckingDisabled = false,
ResponseCode = DnsResponseCode.NoError, ResponseCode = DnsResponseCode.NoError,
Queries = new[] {new DnsQueryResourceRecord(new DnsDomainName("pcapdot.net"), DnsType.A, DnsClass.Internet),}, Queries = new[]
{
new DnsQueryResourceRecord(new DnsDomainName("pcapdot.net"),
DnsType.A,
DnsClass.Internet),
},
Answers = null, Answers = null,
Authorities = null, Authorities = null,
Additionals = null, Additionals = null,
...@@ -522,14 +559,16 @@ namespace SendingASinglePacketWithSendPacket ...@@ -522,14 +559,16 @@ namespace SendingASinglePacketWithSendPacket
/// </summary> /// </summary>
private static Packet BuildHttpPacket() private static Packet BuildHttpPacket()
{ {
EthernetLayer ethernetLayer = new EthernetLayer EthernetLayer ethernetLayer =
new EthernetLayer
{ {
Source = new MacAddress("01:01:01:01:01:01"), Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"), Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None, // Will be filled automatically. EtherType = EthernetType.None, // Will be filled automatically.
}; };
IpV4Layer ipV4Layer = new IpV4Layer IpV4Layer ipV4Layer =
new IpV4Layer
{ {
Source = new IpV4Address("1.2.3.4"), Source = new IpV4Address("1.2.3.4"),
CurrentDestination = new IpV4Address("11.22.33.44"), CurrentDestination = new IpV4Address("11.22.33.44"),
...@@ -542,7 +581,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -542,7 +581,8 @@ namespace SendingASinglePacketWithSendPacket
TypeOfService = 0, TypeOfService = 0,
}; };
TcpLayer tcpLayer = new TcpLayer TcpLayer tcpLayer =
new TcpLayer
{ {
SourcePort = 4050, SourcePort = 4050,
DestinationPort = 80, DestinationPort = 80,
...@@ -555,7 +595,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -555,7 +595,8 @@ namespace SendingASinglePacketWithSendPacket
Options = TcpOptions.None, Options = TcpOptions.None,
}; };
HttpRequestLayer httpLayer = new HttpRequestLayer HttpRequestLayer httpLayer =
new HttpRequestLayer
{ {
Version = HttpVersion.Version11, Version = HttpVersion.Version11,
Header = new HttpHeader(new HttpContentLengthField(11)), Header = new HttpHeader(new HttpContentLengthField(11)),
...@@ -613,7 +654,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -613,7 +654,8 @@ namespace SendingASinglePacketWithSendPacket
Fragmentation = IpV4Fragmentation.None, Fragmentation = IpV4Fragmentation.None,
HeaderChecksum = null, // Will be filled automatically. HeaderChecksum = null, // Will be filled automatically.
Identification = 456, Identification = 456,
Options = new IpV4Options(new IpV4OptionStrictSourceRouting(new[] Options = new IpV4Options(new IpV4OptionStrictSourceRouting(
new[]
{ {
new IpV4Address("100.200.100.200"), new IpV4Address("100.200.100.200"),
new IpV4Address("150.250.150.250") new IpV4Address("150.250.150.250")
...@@ -636,12 +678,14 @@ namespace SendingASinglePacketWithSendPacket ...@@ -636,12 +678,14 @@ namespace SendingASinglePacketWithSendPacket
RoutingOffset = null, RoutingOffset = null,
Routing = new[] Routing = new[]
{ {
new GreSourceRouteEntryIp(new[] new GreSourceRouteEntryIp(
new[]
{ {
new IpV4Address("10.20.30.40"), new IpV4Address("10.20.30.40"),
new IpV4Address("40.30.20.10") new IpV4Address("40.30.20.10")
}.AsReadOnly(), 1), }.AsReadOnly(), 1),
new GreSourceRouteEntryIp(new[] new GreSourceRouteEntryIp(
new[]
{ {
new IpV4Address("11.22.33.44"), new IpV4Address("11.22.33.44"),
new IpV4Address("44.33.22.11") new IpV4Address("44.33.22.11")
...@@ -656,7 +700,8 @@ namespace SendingASinglePacketWithSendPacket ...@@ -656,7 +700,8 @@ namespace SendingASinglePacketWithSendPacket
Fragmentation = IpV4Fragmentation.None, Fragmentation = IpV4Fragmentation.None,
HeaderChecksum = null, // Will be filled automatically. HeaderChecksum = null, // Will be filled automatically.
Identification = 123, Identification = 123,
Options = new IpV4Options(new IpV4OptionTimestampOnly(0, 1, Options = new IpV4Options(
new IpV4OptionTimestampOnly(0, 1,
new IpV4TimeOfDay(new TimeSpan(1, 2, 3)), new IpV4TimeOfDay(new TimeSpan(1, 2, 3)),
new IpV4TimeOfDay(new TimeSpan(15, 55, 59))), new IpV4TimeOfDay(new TimeSpan(15, 55, 59))),
new IpV4OptionQuickStart(IpV4OptionQuickStartFunction.RateRequest, 10, 200, 300)), new IpV4OptionQuickStart(IpV4OptionQuickStartFunction.RateRequest, 10, 200, 300)),
...@@ -684,24 +729,56 @@ namespace SendingASinglePacketWithSendPacket ...@@ -684,24 +729,56 @@ namespace SendingASinglePacketWithSendPacket
IsAuthenticData = true, IsAuthenticData = true,
IsCheckingDisabled = false, IsCheckingDisabled = false,
ResponseCode = DnsResponseCode.NoError, ResponseCode = DnsResponseCode.NoError,
Queries = new[] {new DnsQueryResourceRecord(new DnsDomainName("pcapdot.net"), DnsType.Any, DnsClass.Internet),}, Queries =
Answers = new[] new[]
{ {
new DnsDataResourceRecord(new DnsDomainName("pcapdot.net"), DnsType.A, DnsClass.Internet, 50000, new DnsQueryResourceRecord(
new DnsDomainName("pcapdot.net"),
DnsType.Any,
DnsClass.Internet),
},
Answers =
new[]
{
new DnsDataResourceRecord(
new DnsDomainName("pcapdot.net"),
DnsType.A,
DnsClass.Internet
, 50000,
new DnsResourceDataIpV4(new IpV4Address("10.20.30.44"))), new DnsResourceDataIpV4(new IpV4Address("10.20.30.44"))),
new DnsDataResourceRecord(new DnsDomainName("pcapdot.net"), DnsType.Txt, DnsClass.Internet, 50000, new DnsDataResourceRecord(
new DnsDomainName("pcapdot.net"),
DnsType.Txt,
DnsClass.Internet,
50000,
new DnsResourceDataText(new[] {new DataSegment(Encoding.ASCII.GetBytes("Pcap.Net"))}.AsReadOnly())) new DnsResourceDataText(new[] {new DataSegment(Encoding.ASCII.GetBytes("Pcap.Net"))}.AsReadOnly()))
}, },
Authorities = new[] Authorities =
{ new[]
new DnsDataResourceRecord(new DnsDomainName("pcapdot.net"), DnsType.MailExchange, DnsClass.Internet, 100, {
new DnsDataResourceRecord(
new DnsDomainName("pcapdot.net"),
DnsType.MailExchange,
DnsClass.Internet,
100,
new DnsResourceDataMailExchange(100, new DnsDomainName("pcapdot.net"))) new DnsResourceDataMailExchange(100, new DnsDomainName("pcapdot.net")))
}, },
Additionals = new[] Additionals =
{ new[]
new DnsOptResourceRecord(new DnsDomainName("pcapdot.net"), 50000, 0, DnsOptVersion.Version0, DnsOptFlags.DnsSecOk, {
new DnsResourceDataOptions(new DnsOptions(new DnsOptionUpdateLease(100), new DnsOptResourceRecord(
new DnsOptionLongLivedQuery(1, DnsLongLivedQueryOpCode.Refresh, DnsLongLivedQueryErrorCode.NoError, 10, 20)))) new DnsDomainName("pcapdot.net"),
50000,
0,
DnsOptVersion.Version0,
DnsOptFlags.DnsSecOk,
new DnsResourceDataOptions(
new DnsOptions(
new DnsOptionUpdateLease(100),
new DnsOptionLongLivedQuery(1,
DnsLongLivedQueryOpCode.Refresh,
DnsLongLivedQueryErrorCode.NoError,
10, 20))))
}, },
DomainNameCompressionMode = DnsDomainNameCompressionMode.All, DomainNameCompressionMode = DnsDomainNameCompressionMode.All,
}); });
......
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