Commit 69fa5925 authored by Brickner_cp's avatar Brickner_cp

--no commit message

--no commit message
parent 41982961
namespace BPacket namespace Packets
{ {
public struct DataLink : IDataLink public struct DataLink : IDataLink
{ {
......
namespace BPacket namespace Packets
{ {
public enum DataLinkKind public enum DataLinkKind
{ {
......
namespace BPacket namespace Packets
{ {
public class Datagram public class Datagram
{ {
......
namespace BPacket namespace Packets
{ {
/// <summary> /// <summary>
/// +------+-----------------+------------+------------------+ /// +------+-----------------+------------+------------------+
......
namespace BPacket namespace Packets
{ {
public enum EthernetType : ushort public enum EthernetType : ushort
{ {
......
namespace BPacket namespace Packets
{ {
public interface IDataLink public interface IDataLink
{ {
......
using System; using System;
namespace BPacket namespace Packets
{ {
public struct MacAddress public struct MacAddress
{ {
......
using System; using System;
using System.Net; using System.Net;
namespace BPacket namespace Packets
{ {
public enum Endianity : byte public enum Endianity : byte
{ {
......
...@@ -3,7 +3,7 @@ using System.Collections.Generic; ...@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace BPacket namespace Packets
{ {
public class Packet public class Packet
{ {
......
using System; using System;
namespace BPacket namespace Packets
{ {
public static class PacketBuilder public static class PacketBuilder
{ {
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<ProjectGuid>{8A184AF5-E46C-482C-81A3-76D8CE290104}</ProjectGuid> <ProjectGuid>{8A184AF5-E46C-482C-81A3-76D8CE290104}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BPacket</RootNamespace> <RootNamespace>Packets</RootNamespace>
<AssemblyName>BPacket</AssemblyName> <AssemblyName>Packets</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName> <SccProjectName>SAK</SccProjectName>
......
...@@ -5,11 +5,11 @@ using System.Runtime.InteropServices; ...@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("BPacket")] [assembly: AssemblyTitle("Packets")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BPacket")] [assembly: AssemblyProduct("Packets")]
[assembly: AssemblyCopyright("Copyright © 2009")] [assembly: AssemblyCopyright("Copyright © 2009")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<Description>This is a default test run configuration for a local test run.</Description> <Description>This is a default test run configuration for a local test run.</Description>
<CodeCoverage enabled="true"> <CodeCoverage enabled="true">
<Regular> <Regular>
<CodeCoverageItem binaryFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\BPacket.dll" pdbFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\BPacket.pdb" instrumentInPlace="true" /> <CodeCoverageItem binaryFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\Packets.dll" pdbFile="C:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\Packets.pdb" instrumentInPlace="true" />
<CodeCoverageItem binaryFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.dll" pdbFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.pdb" instrumentInPlace="true" /> <CodeCoverageItem binaryFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.dll" pdbFile="c:\Documents and Settings\Boaz\My Documents\TFS\tfs06.codeplex.com\PcapDotNet\PcapDotNet\bin\Debug\PcapDotNet.Core.pdb" instrumentInPlace="true" />
</Regular> </Regular>
</CodeCoverage> </CodeCoverage>
......
...@@ -4,7 +4,7 @@ using System.Collections.ObjectModel; ...@@ -4,7 +4,7 @@ using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using PcapDotNet; using PcapDotNet;
using BPacket; using Packets;
using PcapDotNet.Core; using PcapDotNet.Core;
namespace WinPcapDotNet.Console namespace WinPcapDotNet.Console
......
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
using BPacket; using Packets;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace PcapDotNet.Core.Test namespace PcapDotNet.Core.Test
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
using namespace System; using namespace System;
using namespace System::Collections::Generic; using namespace System::Collections::Generic;
using namespace System::Collections::ObjectModel; using namespace System::Collections::ObjectModel;
using namespace BPacket; using namespace Packets;
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
ReadOnlyCollection<LivePacketDevice^>^ LivePacketDevice::AllLocalMachine::get() ReadOnlyCollection<LivePacketDevice^>^ LivePacketDevice::AllLocalMachine::get()
......
...@@ -10,7 +10,7 @@ using namespace System; ...@@ -10,7 +10,7 @@ using namespace System;
using namespace System::Runtime::InteropServices; using namespace System::Runtime::InteropServices;
using namespace System::Collections::ObjectModel; using namespace System::Collections::ObjectModel;
using namespace System::Collections::Generic; using namespace System::Collections::Generic;
using namespace BPacket; using namespace Packets;
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data); void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data);
......
...@@ -81,15 +81,15 @@ namespace PcapDotNet { namespace Core ...@@ -81,15 +81,15 @@ namespace PcapDotNet { namespace Core
void set(bool value); void set(bool value);
} }
delegate void HandlePacket(BPacket::Packet^ packet); delegate void HandlePacket(Packets::Packet^ packet);
DeviceHandlerResult GetPacket([System::Runtime::InteropServices::Out] BPacket::Packet^% packet); DeviceHandlerResult GetPacket([System::Runtime::InteropServices::Out] Packets::Packet^% packet);
DeviceHandlerResult GetSomePackets(int maxPackets, HandlePacket^ callBack, [System::Runtime::InteropServices::Out] int% numPacketsGot); DeviceHandlerResult GetSomePackets(int maxPackets, HandlePacket^ callBack, [System::Runtime::InteropServices::Out] int% numPacketsGot);
DeviceHandlerResult GetPackets(int numPackets, HandlePacket^ callBack); DeviceHandlerResult GetPackets(int numPackets, HandlePacket^ callBack);
delegate void HandleStatistics(PacketSampleStatistics^ statistics); delegate void HandleStatistics(PacketSampleStatistics^ statistics);
DeviceHandlerResult GetNextStatistics([System::Runtime::InteropServices::Out] PacketSampleStatistics^% statistics); DeviceHandlerResult GetNextStatistics([System::Runtime::InteropServices::Out] PacketSampleStatistics^% statistics);
void SendPacket(BPacket::Packet^ packet); void SendPacket(Packets::Packet^ packet);
void Transmit(PacketSendQueue^ sendQueue, bool isSync); void Transmit(PacketSendQueue^ sendQueue, bool isSync);
BerkeleyPacketFilter^ CreateFilter(System::String^ filterString); BerkeleyPacketFilter^ CreateFilter(System::String^ filterString);
...@@ -101,7 +101,7 @@ namespace PcapDotNet { namespace Core ...@@ -101,7 +101,7 @@ namespace PcapDotNet { namespace Core
~PacketCommunicator(); ~PacketCommunicator();
private: private:
static BPacket::Packet^ CreatePacket(const pcap_pkthdr& packetHeader, const unsigned char* packetData, BPacket::IDataLink^ dataLink); static Packets::Packet^ CreatePacket(const pcap_pkthdr& packetHeader, const unsigned char* packetData, Packets::IDataLink^ dataLink);
static PacketSampleStatistics^ PacketCommunicator::CreateStatistics(const pcap_pkthdr& packetHeader, const unsigned char* packetData); static PacketSampleStatistics^ PacketCommunicator::CreateStatistics(const pcap_pkthdr& packetHeader, const unsigned char* packetData);
DeviceHandlerResult RunPcapNextEx(pcap_pkthdr** packetHeader, const unsigned char** packetData); DeviceHandlerResult RunPcapNextEx(pcap_pkthdr** packetHeader, const unsigned char** packetData);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
using namespace System; using namespace System;
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
using namespace BPacket; using namespace Packets;
void PacketDumpFile::Dump(Packet^ packet) void PacketDumpFile::Dump(Packet^ packet)
{ {
......
...@@ -7,7 +7,7 @@ namespace PcapDotNet { namespace Core ...@@ -7,7 +7,7 @@ namespace PcapDotNet { namespace Core
public ref class PacketDumpFile : System::IDisposable public ref class PacketDumpFile : System::IDisposable
{ {
public: public:
void Dump(BPacket::Packet^ packet); void Dump(Packets::Packet^ packet);
void Flush(); void Flush();
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
// static // static
void PacketHeader::GetPcapHeader(pcap_pkthdr &header, BPacket::Packet^ packet) void PacketHeader::GetPcapHeader(pcap_pkthdr &header, Packets::Packet^ packet)
{ {
Timestamp::DateTimeToPcapTimestamp(packet->Timestamp, header.ts); Timestamp::DateTimeToPcapTimestamp(packet->Timestamp, header.ts);
header.len = packet->Length; header.len = packet->Length;
......
...@@ -7,6 +7,6 @@ namespace PcapDotNet { namespace Core ...@@ -7,6 +7,6 @@ namespace PcapDotNet { namespace Core
private ref class PacketHeader private ref class PacketHeader
{ {
public: public:
static void GetPcapHeader(pcap_pkthdr &header, BPacket::Packet^ packet); static void GetPcapHeader(pcap_pkthdr &header, Packets::Packet^ packet);
}; };
}} }}
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
using namespace System; using namespace System;
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
using namespace BPacket; using namespace Packets;
PacketSendQueue::PacketSendQueue(unsigned int capacity) PacketSendQueue::PacketSendQueue(unsigned int capacity)
{ {
......
...@@ -9,7 +9,7 @@ namespace PcapDotNet { namespace Core ...@@ -9,7 +9,7 @@ namespace PcapDotNet { namespace Core
public: public:
PacketSendQueue(unsigned int capacity); PacketSendQueue(unsigned int capacity);
void Enqueue(BPacket::Packet^ packet); void Enqueue(Packets::Packet^ packet);
~PacketSendQueue(); ~PacketSendQueue();
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "Pcap.h" #include "Pcap.h"
using namespace System; using namespace System;
using namespace BPacket; using namespace Packets;
using namespace PcapDotNet::Core; using namespace PcapDotNet::Core;
PcapDataLink::PcapDataLink(int value) PcapDataLink::PcapDataLink(int value)
......
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
namespace PcapDotNet { namespace Core namespace PcapDotNet { namespace Core
{ {
public value class PcapDataLink : BPacket::IDataLink public value class PcapDataLink : Packets::IDataLink
{ {
public: public:
PcapDataLink(int value); PcapDataLink(int value);
PcapDataLink(System::String^ name); PcapDataLink(System::String^ name);
virtual property BPacket::DataLinkKind Kind virtual property Packets::DataLinkKind Kind
{ {
BPacket::DataLinkKind get(); Packets::DataLinkKind get();
} }
property int Value property int 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