Syndicate the Cosmos Blog Feed.

Checksum Problem [Done]

Use KudzuTest with the following Init:

        public static void Init() {
            Cosmos.Kernel.Boot.Default();
            //System.Diagnostics.Debugger.Break();
            Console.Clear();
            Console.WriteLine("Boot complete");

            //DoLoop();
            //Tests.DoAll();
            RTL8139.Test();

            Console.WriteLine("All tasks complete, halting.");
            while (true) { }
        }

The idea is to run RTL8139.Test(). If you look in Main, you will see this is code that runs on Windows and also in Cosmos:

        [STAThread]
        static void Main(string[] args) {
            RTL8139.Test();
            BuildUI.Run();
        }

But on Cosmos it yields different values. This trips on Cosmos, but not on Windows. In Init1:

            if (UpdateIPChecksum() != 0x0923) {
                throw new Exception("IP Checksum error");
            }
            if (UpdateUDPChecksum() != 0x0630) {
                throw new Exception("UDP Checksum error");
            }