--- nono/host/netdriver_bpf.h 2026/04/29 17:04:30 1.1.1.2 +++ nono/host/netdriver_bpf.h 2026/04/29 17:04:34 1.1.1.3 @@ -1,6 +1,7 @@ // // nono -// Copyright (C) 2019 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once @@ -9,19 +10,20 @@ class NetDriverBPF : public NetDriver { - typedef NetDriver inherited; + using inherited = NetDriver; public: // コンストラクタ - NetDriverBPF(EthernetDevice *p, std::mutex *m, std::condition_variable *c); + NetDriverBPF(EthernetDevice *parent_, std::mutex *mtx_, + std::condition_variable *cv_); // デストラクタ - virtual ~NetDriverBPF(); + ~NetDriverBPF() override; - virtual bool Init(); - virtual bool SendPacket(const std::vector& data); - virtual void ThreadRun(); + bool Init() override; + bool SendPacket(const std::vector& data) override; + void ThreadRun() override; private: - virtual void Close(); + void Close(); std::string FindInterface();