Commit f3580f3a authored by Brickner_cp's avatar Brickner_cp

--no commit message

--no commit message
parent cb0cde76
......@@ -58,7 +58,7 @@ namespace PcapDotNet.Core.Test
#endregion
[TestMethod]
[ExpectedException(typeof(InvalidOperationException))]
[ExpectedException(typeof(ArgumentException))]
public void BadFilterErrorTest()
{
using (PacketCommunicator communicator = LivePacketDeviceTests.OpenLiveDevice())
......
......@@ -85,7 +85,7 @@ void BerkeleyPacketFilter::Initialize(pcap_t* pcapDescriptor, String^ filterStri
{
if (pcap_compile(pcapDescriptor, _bpf, const_cast<char*>(unmanagedFilterString.c_str()), 1, netmaskValue) < 0)
{
gcnew ArgumentException("An error has occured when compiling the filter: " + PcapError::GetErrorMessage(pcapDescriptor));
throw gcnew ArgumentException("An error has occured when compiling the filter <" + filterString + ">: " + PcapError::GetErrorMessage(pcapDescriptor));
}
}
catch(...)
......
......@@ -4,6 +4,9 @@
namespace PcapDotNet { namespace Core
{
/// <summary>
/// A network device packet communicator.
/// </summary>
public ref class LivePacketCommunicator : PacketCommunicator
{
public:
......
......@@ -14,6 +14,9 @@
namespace PcapDotNet { namespace Core
{
/// <summary>
/// Used to receive and send packets accross the network or to read and write packets to a pcap file.
/// </summary>
public ref class PacketCommunicator abstract : System::IDisposable
{
public:
......
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