mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 04:48:53 +00:00
26 lines
673 B
C#
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);
|
|
}
|
|
}
|
|
}
|