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