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 <cstdint> |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 5 | #include <stdplus/zstring_view.hpp> |
| 6 | #include <string_view> |
| 7 | |
| 8 | namespace phosphor::network::system |
| 9 | { |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 10 | struct EthInfo |
| 11 | { |
| 12 | bool autoneg; |
| 13 | uint16_t speed; |
| 14 | }; |
| 15 | EthInfo getEthInfo(stdplus::zstring_view ifname); |
| 16 | |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 17 | void setMTU(std::string_view ifname, unsigned mtu); |
| 18 | |
| 19 | void setNICUp(std::string_view ifname, bool up); |
| 20 | |
William A. Kennington III | 6d21751 | 2022-11-17 16:18:01 -0800 | [diff] [blame] | 21 | void deleteIntf(unsigned idx); |
| 22 | |
William A. Kennington III | 2e09d27 | 2022-10-14 17:15:00 -0700 | [diff] [blame] | 23 | } // namespace phosphor::network::system |