blob: 5b54985769db2ca2edccd0d8f26f3d2bf09a09cb [file] [log] [blame]
#pragma once
#include "types.hpp"
#include <stdplus/zstring_view.hpp>
#include <cstdint>
#include <string_view>
namespace phosphor::network::system
{
struct EthInfo
{
bool autoneg;
uint16_t speed;
};
EthInfo getEthInfo(stdplus::zstring_view ifname);
void setMTU(std::string_view ifname, unsigned mtu);
void setNICUp(std::string_view ifname, bool up);
void deleteIntf(unsigned idx);
} // namespace phosphor::network::system