This commit is contained in:
kudzu_cp 2008-07-06 22:13:28 +00:00
parent 91b4e8407e
commit 678018eee8
4 changed files with 3 additions and 8 deletions

View file

@ -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.

View file

@ -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" />

View file

@ -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;

View file

@ -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) {