1 #pragma once
2 #include "types.hpp"
3 
4 #include <cstdint>
5 #include <stdplus/zstring_view.hpp>
6 #include <string_view>
7 
8 namespace phosphor::network::system
9 {
10 struct EthInfo
11 {
12     bool autoneg;
13     uint16_t speed;
14 };
15 EthInfo getEthInfo(stdplus::zstring_view ifname);
16 
17 void setMTU(std::string_view ifname, unsigned mtu);
18 
19 void setNICUp(std::string_view ifname, bool up);
20 
21 } // namespace phosphor::network::system
22