Cosmos/source/Boot/KudzuTest/RTL8139.cs
kudzu_cp ac98bdd983
2008-03-24 16:23:43 +00:00

23 lines
646 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace KudzuTest {
public class RTL8139 {
public Frame mFrame;
public void Test() {
mFrame = new Frame();
mFrame.Init1();
mFrame.SetEthSrcMAC(0x52, 0x54, 0x00, 0x12, 0x34, 0x57);
mFrame.SetIPSrcAddr(10, 0, 2, 15);
//mFrame.SetIPDestAddr(255, 255, 255, 255);
mFrame.UpdateIPChecksum();
mFrame.UpdateUDPChecksum();
// Ethernet frame CRC - Done by card?
mFrame = new Frame();
mFrame.Init2();
}
}
}