mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-06 08:12:14 +00:00
This commit is contained in:
parent
91b4e8407e
commit
678018eee8
4 changed files with 3 additions and 8 deletions
|
|
@ -111,11 +111,6 @@
|
||||||
<Name>Cosmos.Kernel</Name>
|
<Name>Cosmos.Kernel</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Network\TCPIPModel\NetworkLayer\ICMPv4\" />
|
|
||||||
<Folder Include="Network\TCPIPModel\NetworkLayer\IPv4\" />
|
|
||||||
<Folder Include="Network\TCPIPModel\PhysicalLayer\Ethernet2\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
<Compile Include="Deboot.cs" />
|
<Compile Include="Deboot.cs" />
|
||||||
<Compile Include="Global.cs" />
|
<Compile Include="Global.cs" />
|
||||||
<Compile Include="Network\EthernetPacket.cs" />
|
<Compile Include="Network\EthernetPacket.cs" />
|
||||||
<Compile Include="Network\IP4Packet.cs" />
|
<Compile Include="Network\IPPacket.cs" />
|
||||||
<Compile Include="Network\Packet.cs" />
|
<Compile Include="Network\Packet.cs" />
|
||||||
<Compile Include="Network\UDPPacket.cs" />
|
<Compile Include="Network\UDPPacket.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace Cosmos.Sys.Network {
|
namespace Cosmos.Sys.Network {
|
||||||
// http://en.wikipedia.org/wiki/IPv4
|
// http://en.wikipedia.org/wiki/IPv4
|
||||||
public abstract class IP4Packet : Packet {
|
public abstract class IPPacket : Packet {
|
||||||
protected byte mHeaderSize = 20;
|
protected byte mHeaderSize = 20;
|
||||||
protected int mHeaderBegin;
|
protected int mHeaderBegin;
|
||||||
|
|
||||||
|
|
@ -5,7 +5,7 @@ using System.Text;
|
||||||
|
|
||||||
namespace Cosmos.Sys.Network {
|
namespace Cosmos.Sys.Network {
|
||||||
// http://en.wikipedia.org/wiki/User_Datagram_Protocol
|
// http://en.wikipedia.org/wiki/User_Datagram_Protocol
|
||||||
public class UDPPacket : IP4Packet {
|
public class UDPPacket : IPPacket {
|
||||||
protected new int mHeaderBegin;
|
protected new int mHeaderBegin;
|
||||||
|
|
||||||
public UDPPacket(uint aSrcIP, UInt16 aSrcPort, uint aDestIP, UInt16 aDestPort, byte[] aData) {
|
public UDPPacket(uint aSrcIP, UInt16 aSrcPort, uint aDestIP, UInt16 aDestPort, byte[] aData) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue