#pragma once #include #include #include #include #include #include namespace phosphor { namespace network { using IntfName = std::string; struct AddrInfo { uint8_t addrType; std::string ipaddress; uint16_t prefix; }; using Addr_t = ifaddrs*; struct AddrDeleter { void operator()(Addr_t ptr) const { freeifaddrs(ptr); } }; using AddrPtr = std::unique_ptr; using AddrList = std::list; using IntfAddrMap = std::map; }//namespace network }//namespace phosphor