mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
23 lines
646 B
C#
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();
|
|
}
|
|
}
|
|
}
|