--- nono/host/hostnet.h 2026/04/29 17:05:11 1.1.1.1 +++ nono/host/hostnet.h 2026/04/29 17:05:34 1.1.1.5 @@ -12,7 +12,6 @@ #include "hostdevice.h" #include "macaddr.h" -#include "monitor.h" #include "netdriver.h" #include "spscqueue.h" @@ -24,14 +23,39 @@ class NetPacket : public std::array driver {}; bool rx_enable {}; - macaddr_t myaddr {}; // 自己 MAC アドレス + macaddr_t myaddr {}; // 自身の MAC アドレス bool promisc {}; // プロミスキャスモードなら true + // マルチキャストフィルタ。 + // 64ビットのうち、LSB 側を0番目、MSB 側を63番目となるようにしたもの。 + uint64 multicast_filter {}; + // キュー NetTxQueue txq {}; NetRxQueue rxq {}; @@ -132,5 +165,5 @@ class HostNetDevice : public HostDevice std::string errmsg {}; - Monitor monitor { this }; + Monitor *monitor {}; };