Commit a31b8194 authored by Brickner_cp's avatar Brickner_cp

DNS

parent c52ffbb8
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary>
/// A resource data that can hold any data.
/// </summary>
[DnsTypeRegistration(Type = DnsType.Null)] [DnsTypeRegistration(Type = DnsType.Null)]
[DnsTypeRegistration(Type = DnsType.EId)] [DnsTypeRegistration(Type = DnsType.EId)]
[DnsTypeRegistration(Type = DnsType.NimLoc)] [DnsTypeRegistration(Type = DnsType.NimLoc)]
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// Contains a single DNS domain name.
/// <pre> /// <pre>
/// +------+ /// +------+
/// | NAME | /// | NAME |
......
...@@ -6,6 +6,9 @@ using PcapDotNet.Base; ...@@ -6,6 +6,9 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary>
/// A base class for resource records that contain DNS domain names.
/// </summary>
public abstract class DnsResourceDataDomainNames : DnsResourceData, IEquatable<DnsResourceDataDomainNames> public abstract class DnsResourceDataDomainNames : DnsResourceData, IEquatable<DnsResourceDataDomainNames>
{ {
public bool Equals(DnsResourceDataDomainNames other) public bool Equals(DnsResourceDataDomainNames other)
......
...@@ -4,6 +4,7 @@ using System.Text; ...@@ -4,6 +4,7 @@ using System.Text;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1712.
/// <pre> /// <pre>
/// +-----------+ /// +-----------+
/// | LONGITUDE | /// | LONGITUDE |
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +-----+ /// +-----+
/// | CPU | /// | CPU |
......
...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV4; ...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV4;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +-----+------+ /// +-----+------+
/// | bit | 0-31 | /// | bit | 0-31 |
......
...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV6; ...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV6;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 3596.
/// <pre> /// <pre>
/// +-----+-------+ /// +-----+-------+
/// | bit | 0-127 | /// | bit | 0-127 |
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1183.
/// <pre> /// <pre>
/// +---------------+ /// +---------------+
/// | ISDN-address | /// | ISDN-address |
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1876.
/// <pre> /// <pre>
/// +-----+---------+------+-----------+----------+ /// +-----+---------+------+-----------+----------+
/// | bit | 0-7 | 8-15 | 16-23 | 24-31 | /// | bit | 0-7 | 8-15 | 16-23 | 24-31 |
......
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +-----+------------+ /// +-----+------------+
/// | bit | 0-15 | /// | bit | 0-15 |
......
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +---------+ /// +---------+
/// | RMAILBX | /// | RMAILBX |
......
...@@ -6,6 +6,7 @@ using PcapDotNet.Base; ...@@ -6,6 +6,7 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// Reid.
/// <pre> /// <pre>
/// +---------------------+ /// +---------------------+
/// | One ore more strings| /// | One ore more strings|
......
...@@ -6,6 +6,7 @@ using PcapDotNet.Base; ...@@ -6,6 +6,7 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFCs 2915, 3403.
/// <pre> /// <pre>
/// +-----+-------+------------+ /// +-----+-------+------------+
/// | bit | 0-15 | 16-31 | /// | bit | 0-15 | 16-31 |
......
...@@ -4,6 +4,7 @@ using PcapDotNet.Base; ...@@ -4,6 +4,7 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1706.
/// <pre> /// <pre>
/// +-----+-----+----------------------+----------+-----------+ /// +-----+-----+----------------------+----------+-----------+
/// | bit | 0-7 | 8-7+X | 8+X-55+X | 56+X-63+X | /// | bit | 0-7 | 8-7+X | 8+X-55+X | 56+X-63+X |
......
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1183.
/// <pre> /// <pre>
/// +------------+ /// +------------+
/// | mbox-dname | /// | mbox-dname |
......
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1183.
/// <pre> /// <pre>
/// +-----+-------------------+ /// +-----+-------------------+
/// | bit | 0-15 | /// | bit | 0-15 |
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 2782.
/// <pre> /// <pre>
/// +-----+----------+ /// +-----+----------+
/// | bit | 0-15 | /// | bit | 0-15 |
......
...@@ -4,6 +4,7 @@ using PcapDotNet.Base; ...@@ -4,6 +4,7 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +-------+---------+ /// +-------+---------+
/// | bit | 0-31 | /// | bit | 0-31 |
......
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary>
/// A DNS string.
/// Any segment of bytes up to 255 characters is valid.
/// The format is one byte for the length of the string and then the specified number of bytes.
/// </summary>
[DnsTypeRegistration(Type = DnsType.X25)] [DnsTypeRegistration(Type = DnsType.X25)]
public sealed class DnsResourceDataString : DnsResourceDataSimple, IEquatable<DnsResourceDataString> public sealed class DnsResourceDataString : DnsResourceDataSimple, IEquatable<DnsResourceDataString>
{ {
......
...@@ -6,6 +6,11 @@ using PcapDotNet.Base; ...@@ -6,6 +6,11 @@ using PcapDotNet.Base;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary>
/// Base class for any resource data that contains DNS strings.
/// Each DNS string is a segment of up to 255 bytes.
/// The format of each DNS string is one byte for the length of the string and then the specified number of bytes.
/// </summary>
public abstract class DnsResourceDataStrings : DnsResourceDataSimple, IEquatable<DnsResourceDataStrings> public abstract class DnsResourceDataStrings : DnsResourceDataSimple, IEquatable<DnsResourceDataStrings>
{ {
public bool Equals(DnsResourceDataStrings other) public bool Equals(DnsResourceDataStrings other)
......
...@@ -4,11 +4,9 @@ using System.Collections.ObjectModel; ...@@ -4,11 +4,9 @@ using System.Collections.ObjectModel;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// <pre> /// A resource data that contains 0 or more DNS strings.
/// +---------+ /// Each DNS string is a segment of up to 255 bytes.
/// | Strings | /// The format of each DNS string is one byte for the length of the string and then the specified number of bytes.
/// +---------+
/// </pre>
/// </summary> /// </summary>
[DnsTypeRegistration(Type = DnsType.Txt)] [DnsTypeRegistration(Type = DnsType.Txt)]
[DnsTypeRegistration(Type = DnsType.Spf)] [DnsTypeRegistration(Type = DnsType.Spf)]
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// A base class for any resource data that contains a 16 bit unsigned integer followed by a domain name.
/// <pre> /// <pre>
/// +-----+--------+ /// +-----+--------+
/// | bit | 0-15 | /// | bit | 0-15 |
......
...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV4; ...@@ -4,6 +4,7 @@ using PcapDotNet.Packets.IpV4;
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 1035.
/// <pre> /// <pre>
/// +-----+----------+---------+ /// +-----+----------+---------+
/// | bit | 0-7 | 8-31 | /// | bit | 0-7 | 8-31 |
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace PcapDotNet.Packets.Dns namespace PcapDotNet.Packets.Dns
{ {
/// <summary> /// <summary>
/// RFC 2163.
/// <pre> /// <pre>
/// +-----+------------+ /// +-----+------------+
/// | bit | 0-15 | /// | bit | 0-15 |
......
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