blob: 5b54985769db2ca2edccd0d8f26f3d2bf09a09cb [file] [log] [blame]
William A. Kennington III2e09d272022-10-14 17:15:00 -07001#pragma once
2#include "types.hpp"
3
William A. Kennington III2e09d272022-10-14 17:15:00 -07004#include <stdplus/zstring_view.hpp>
Patrick Williams89d734b2023-05-10 07:50:25 -05005
6#include <cstdint>
William A. Kennington III2e09d272022-10-14 17:15:00 -07007#include <string_view>
8
9namespace phosphor::network::system
10{
William A. Kennington III2e09d272022-10-14 17:15:00 -070011struct EthInfo
12{
13 bool autoneg;
14 uint16_t speed;
15};
16EthInfo getEthInfo(stdplus::zstring_view ifname);
17
William A. Kennington III2e09d272022-10-14 17:15:00 -070018void setMTU(std::string_view ifname, unsigned mtu);
19
20void setNICUp(std::string_view ifname, bool up);
21
William A. Kennington III6d217512022-11-17 16:18:01 -080022void deleteIntf(unsigned idx);
23
William A. Kennington III2e09d272022-10-14 17:15:00 -070024} // namespace phosphor::network::system