--- nono/vm/ethernet.h 2026/04/29 17:05:29 1.1.1.12 +++ nono/vm/ethernet.h 2026/04/29 17:05:38 1.1.1.13 @@ -37,7 +37,11 @@ class EthernetDevice : public IODevice // 設定から MAC アドレスを取得するヘルパー関数。 // (MAC アドレスを保持するデバイスが呼ぶ) - static bool GetConfigMacAddr(uint n, macaddr_t *dst, bool accept_rom); + static bool GetConfigMacAddr(uint n, MacAddr *dst, bool accept_rom); + + // CRC32 を計算する。 + static uint32 CRC32(const uint8 *buf, size_t buflen); + static uint32 CRC32(const MacAddr& mac); protected: // ホストスレッドからの受信通知