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