mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 22:12:25 +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>
|
||||
</ProjectReference>
|
||||
</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" />
|
||||
<!-- 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.
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
<Compile Include="Deboot.cs" />
|
||||
<Compile Include="Global.cs" />
|
||||
<Compile Include="Network\EthernetPacket.cs" />
|
||||
<Compile Include="Network\IP4Packet.cs" />
|
||||
<Compile Include="Network\IPPacket.cs" />
|
||||
<Compile Include="Network\Packet.cs" />
|
||||
<Compile Include="Network\UDPPacket.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using System.Text;
|
|||
|
||||
namespace Cosmos.Sys.Network {
|
||||
// http://en.wikipedia.org/wiki/IPv4
|
||||
public abstract class IP4Packet : Packet {
|
||||
public abstract class IPPacket : Packet {
|
||||
protected byte mHeaderSize = 20;
|
||||
protected int mHeaderBegin;
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ using System.Text;
|
|||
|
||||
namespace Cosmos.Sys.Network {
|
||||
// http://en.wikipedia.org/wiki/User_Datagram_Protocol
|
||||
public class UDPPacket : IP4Packet {
|
||||
public class UDPPacket : IPPacket {
|
||||
protected new int mHeaderBegin;
|
||||
|
||||
public UDPPacket(uint aSrcIP, UInt16 aSrcPort, uint aDestIP, UInt16 aDestPort, byte[] aData) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue