Cosmos/source/FrodeTest/Test/RTL8139Test.cs
2008-08-02 09:52:30 +00:00

26 lines
673 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Cosmos.Hardware.Network.Devices.RTL8139;
using Cosmos.Sys.Network;
namespace FrodeTest.Test
{
public class RTL8139Test
{
public static void RunTest()
{
// Testing RTL8139 PCI networkcard
//Load card
var xNic = RTL8139.FindAll()[0];
xNic.Enable();
xNic.InitializeDriver();
byte[] xNetworkData = { (byte)'a' };
//var xPingOut = new ICMPPacket(1, 2, ICMPPacket.ICMPType.EchoRequest, xPingData, 0);
xNic.TransmitBytes(xNetworkData);
}
}
}