blob: 9027cb3cdd0b077d9221d0ee40a47573c7001903 [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 <cstdint>
William A. Kennington III2e09d272022-10-14 17:15:00 -07005#include <stdplus/zstring_view.hpp>
6#include <string_view>
7
8namespace phosphor::network::system
9{
William A. Kennington III2e09d272022-10-14 17:15:00 -070010struct EthInfo
11{
12 bool autoneg;
13 uint16_t speed;
14};
15EthInfo getEthInfo(stdplus::zstring_view ifname);
16
William A. Kennington III2e09d272022-10-14 17:15:00 -070017void setMTU(std::string_view ifname, unsigned mtu);
18
19void setNICUp(std::string_view ifname, bool up);
20
William A. Kennington III6d217512022-11-17 16:18:01 -080021void deleteIntf(unsigned idx);
22
William A. Kennington III2e09d272022-10-14 17:15:00 -070023} // namespace phosphor::network::system