--- nono/vm/ethernet.h 2026/04/29 17:04:32 1.1.1.2 +++ nono/vm/ethernet.h 2026/04/29 17:04:41 1.1.1.4 @@ -1,17 +1,18 @@ // // nono -// Copyright (C) 2019 isaki@NetBSD.org +// Copyright (C) 2020 nono project +// Licensed under nono-license.txt // #pragma once +#include "device.h" +#include "mystring.h" +#include "qvector.h" #include #include #include #include -#include "device.h" -#include "mystring.h" -#include "qvector.h" // IODevice // | @@ -31,7 +32,7 @@ class NetDriver; // MAC アドレス格納用のクラス class macaddr_t : public std::array { - typedef std::array inherited; + using inherited = std::array; public: // この MAC アドレスが 00:00:00:00:00:00 なら true bool empty() const { @@ -43,11 +44,22 @@ class macaddr_t : public std::array& buf); + + // MAC アドレス + macaddr_t macaddr {}; }; extern std::unique_ptr gEthernet;