--- nono/host/netdriver_bpf.cpp 2026/04/29 17:05:11 1.1.1.6 +++ nono/host/netdriver_bpf.cpp 2026/04/29 17:05:47 1.1.1.8 @@ -22,7 +22,7 @@ // コンストラクタ NetDriverBPF::NetDriverBPF(HostDevice *hostdev_, const std::string& ifname_) - : inherited(hostdev_, "BPF") + : inherited(hostdev_, "bpf") { ifname = ifname_; if (ifname.empty()) { @@ -38,7 +38,7 @@ NetDriverBPF::~NetDriverBPF() // ドライバ初期化 bool -NetDriverBPF::InitDriver() +NetDriverBPF::InitDriver(bool startup) { struct ifreq ifr; struct bpf_program prog; @@ -168,10 +168,10 @@ NetDriverBPF::Close() // モニタ (ドライバ依存情報のみ) void -NetDriverBPF::MonitorUpdateMD(TextScreen& screen) +NetDriverBPF::MonitorUpdateMD(TextScreen& screen, int y) { - screen.Print(0, 1, "Device : %s", devpath.c_str()); - screen.Print(0, 2, "Interface: %s", ifname.c_str()); + screen.Print(0, y++, "Device : %s", devpath.c_str()); + screen.Print(0, y++, "Interface: %s", ifname.c_str()); } // パケットを送信する