Commit a31b8194 authored by Brickner_cp's avatar Brickner_cp

DNS

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