Commit 4d099490 authored by Brickner_cp's avatar Brickner_cp

Add Packet.FromHexadecimalString() overload that takes IDataLink instead of DataLinkKind.

parent 03748780
...@@ -15,10 +15,15 @@ namespace PcapDotNet.Packets ...@@ -15,10 +15,15 @@ namespace PcapDotNet.Packets
/// </summary> /// </summary>
public sealed class Packet : IList<byte>, IEquatable<Packet> public sealed class Packet : IList<byte>, IEquatable<Packet>
{ {
public static Packet FromHexadecimalString(string value, DateTime timestamp, DataLinkKind dataLink)
{
return FromHexadecimalString(value, timestamp, new DataLink(dataLink));
}
/// <summary> /// <summary>
/// Creates a packet from a string that represents bytes in a hexadecimal format. /// Creates a packet from a string that represents bytes in a hexadecimal format.
/// </summary> /// </summary>
public static Packet FromHexadecimalString(string value, DateTime timestamp, DataLinkKind dataLink) public static Packet FromHexadecimalString(string value, DateTime timestamp, IDataLink dataLink)
{ {
if (value == null) if (value == null)
throw new ArgumentNullException("value"); throw new ArgumentNullException("value");
......
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