--- nono/host/netdriver_tap.h 2026/04/29 17:04:48 1.1.1.3 +++ nono/host/netdriver_tap.h 2026/04/29 17:04:54 1.1.1.4 @@ -13,15 +13,17 @@ class NetDriverTap : public NetDriver using inherited = NetDriver; public: // コンストラクタ - NetDriverTap(EthernetDevice *parent_, - std::mutex *mtx_, std::condition_variable *cv_, + NetDriverTap(EthernetDevice *parent_, int loglevel_, const std::string& devpath_); // デストラクタ ~NetDriverTap() override; - bool Init() override; + bool InitDriver() override; bool SendPacket(const std::vector& data) override; - void ThreadRun() override; + + protected: + ssize_t RecvPacket() override; + void MonitorUpdateMD(TextScreen&) override; private: #if defined(__linux__) @@ -34,8 +36,6 @@ class NetDriverTap : public NetDriver void CloseFd(); void Close(); - // Open*() のエラーメッセージ。 - // Open*() は複数呼ぶ場合もあったりするのでエラーは基本的にログレベル1 - // で表示しておき、最後に一つだけそれっぽいのを warn() で出力する。 - std::string errmsg {}; + // デバイスファイルパス + std::string devpath {}; };