William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | #include "types.hpp" |
| 3 | |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 4 | #include <stdplus/zstring_view.hpp> |
Patrick Williams | 89d734b | 2023-05-10 07:50:25 -0500 | [diff] [blame] | 5 | |
| 6 | #include <cstdint> |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 7 | #include <string_view> |
| 8 | |
| 9 | namespace phosphor::network::system |
| 10 | { |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 11 | struct EthInfo |
| 12 | { |
| 13 | bool autoneg; |
| 14 | uint16_t speed; |
| 15 | }; |
| 16 | EthInfo getEthInfo(stdplus::zstring_view ifname); |
| 17 | |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 18 | void setMTU(std::string_view ifname, unsigned mtu); |
| 19 | |
| 20 | void setNICUp(std::string_view ifname, bool up); |
| 21 | |
William A. Kennington III | 6d21751 | 2022-11-17 16:18:01 -0800 | [diff] [blame] | 22 | void deleteIntf(unsigned idx); |
| 23 | |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 24 | } // namespace phosphor::network::system |