Commit e7f558c9 authored by Brickner_cp's avatar Brickner_cp

Version 1.0.0

Add an example for building an IPv6 packte in Developers Pack.
parent c42bc5c9
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -13,6 +13,7 @@ using PcapDotNet.Packets.Http;
using PcapDotNet.Packets.Icmp;
using PcapDotNet.Packets.Igmp;
using PcapDotNet.Packets.IpV4;
using PcapDotNet.Packets.IpV6;
using PcapDotNet.Packets.Transport;
namespace SendingASinglePacketWithSendPacket
......@@ -112,6 +113,7 @@ namespace SendingASinglePacketWithSendPacket
communicator.SendPacket(BuildArpPacket());
communicator.SendPacket(BuildVLanTaggedFramePacket());
communicator.SendPacket(BuildIpV4Packet());
communicator.SendPacket(BuildIpV6Packet());
communicator.SendPacket(BuildIcmpPacket());
communicator.SendPacket(BuildIgmpPacket());
communicator.SendPacket(BuildGrePacket());
......@@ -247,6 +249,40 @@ namespace SendingASinglePacketWithSendPacket
return builder.Build(DateTime.Now);
}
/// <summary>
/// This function build an IPv6 over Ethernet with payload packet.
/// </summary>
private static Packet BuildIpV6Packet()
{
EthernetLayer ethernetLayer =
new EthernetLayer
{
Source = new MacAddress("01:01:01:01:01:01"),
Destination = new MacAddress("02:02:02:02:02:02"),
EtherType = EthernetType.None,
};
IpV6Layer ipV6Layer =
new IpV6Layer
{
Source = new IpV6Address("0123:4567:89AB:CDEF:0123:4567:89AB:CDEF"),
CurrentDestination = new IpV6Address("FEDC:BA98:7654:3210:FEDC:BA98:7654:3210"),
FlowLabel = 123,
HopLimit = 100,
NextHeader = IpV4Protocol.Udp,
};
PayloadLayer payloadLayer =
new PayloadLayer
{
Data = new Datagram(Encoding.ASCII.GetBytes("hello world")),
};
PacketBuilder builder = new PacketBuilder(ethernetLayer, ipV6Layer, payloadLayer);
return builder.Build(DateTime.Now);
}
/// <summary>
/// This function build an ICMP over IPv4 over Ethernet packet.
/// </summary>
......
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -73,6 +73,7 @@
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Numerics" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
......
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -8,7 +8,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{980d69c5-143d-4841-987f-ffd333557569}</ProjectGuid>
<SHFBSchemaVersion>1.9.3.0</SHFBSchemaVersion>
<SHFBSchemaVersion>1.9.5.0</SHFBSchemaVersion>
<!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual
Studio adds them anyway -->
<AssemblyName>Documentation</AssemblyName>
......@@ -27,17 +27,21 @@
<DocumentationSource sourceFile="..\bin\Release\PcapDotNet.Packets.dll" />
<DocumentationSource sourceFile="..\bin\Release\PcapDotNet.Packets.XML" />
</DocumentationSources>
<FrameworkVersion>.NET 4.0.30319</FrameworkVersion>
<FrameworkVersion>.NET Framework 4.0</FrameworkVersion>
<Language>en-US</Language>
<Preliminary>False</Preliminary>
<CppCommentsFixup>True</CppCommentsFixup>
<HelpTitle>Pcap.Net Documented Class Library</HelpTitle>
<MissingTags>None</MissingTags>
<HelpFileVersion>0.10.0.0</HelpFileVersion>
<HelpFileVersion>1.0.0.0</HelpFileVersion>
<RootNamespaceContainer>False</RootNamespaceContainer>
<ShowFeedbackControl>False</ShowFeedbackControl>
<IndentHtml>False</IndentHtml>
<HelpFileFormat>HtmlHelp1</HelpFileFormat>
<PlugInNamespaces>ms.vsipcc+, ms.vsexpresscc+</PlugInNamespaces>
<CollectionTocStyle>Hierarchical</CollectionTocStyle>
<MSHelp2SdkLinkType>Msdn</MSHelp2SdkLinkType>
<IncludeStopWordList>True</IncludeStopWordList>
</PropertyGroup>
<!-- There are no properties for these two groups but they need to appear in
order for Visual Studio to perform the build. -->
......
......@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: CLSCompliant(false)]
\ No newline at end of file
......@@ -64,9 +64,9 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<OutputPath>..\..\bin\x64\Debug\</OutputPath>
<DefineConstants>CODE_ANALYSIS;TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
<DocumentationFile>..\..\bin\Debug\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DocumentationFile>..\..\bin\x64\Debug\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<RunCodeAnalysis>true</RunCodeAnalysis>
......@@ -81,9 +81,9 @@
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<OutputPath>..\..\bin\x64\Release\</OutputPath>
<DefineConstants>CODE_ANALYSIS;TRACE</DefineConstants>
<DocumentationFile>..\..\bin\Release\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DocumentationFile>..\..\bin\x64\Release\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
......@@ -100,9 +100,9 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<OutputPath>..\..\bin\x86\Debug\</OutputPath>
<DefineConstants>CODE_ANALYSIS;TRACE;DEBUG;CODE_ANALYSIS</DefineConstants>
<DocumentationFile>..\..\bin\Debug\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DocumentationFile>..\..\bin\x86\Debug\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<RunCodeAnalysis>true</RunCodeAnalysis>
......@@ -118,9 +118,9 @@
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<OutputPath>..\..\bin\x86\Release\</OutputPath>
<DefineConstants>CODE_ANALYSIS;TRACE</DefineConstants>
<DocumentationFile>..\..\bin\Release\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<DocumentationFile>..\..\bin\x86\Release\PcapDotNet.Core.Extensions.XML</DocumentationFile>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
......
......@@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: CLSCompliant(false)]
......@@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -14,7 +14,7 @@ using namespace System::Security::Permissions;
[assembly:AssemblyConfigurationAttribute("")];
[assembly:AssemblyCompanyAttribute("Pcap.Net")];
[assembly:AssemblyProductAttribute("PcapDotNet.Core")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2010")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2010")];
[assembly:AssemblyTrademarkAttribute("")];
[assembly:AssemblyCultureAttribute("")];
......@@ -29,8 +29,8 @@ using namespace System::Security::Permissions;
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly:AssemblyVersionAttribute("0.10.0.*")];
[assembly:AssemblyFileVersionAttribute("0.10.0.0")]
[assembly:AssemblyVersionAttribute("1.0.0.*")];
[assembly:AssemblyFileVersionAttribute("1.0.0.0")]
[assembly:ComVisible(false)];
......
......@@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
......@@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly:CLSCompliant(false)]
......@@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.10.0.*")]
[assembly: AssemblyFileVersion("0.10.0.0")]
[assembly: AssemblyVersion("1.0.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
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