network: Handle carrier information

IFLA_CARRIER allows to know when a cable is plugged to the Ethernet
card or when the WiFi is connected. If there's no carrier, the
interface will be considered disconnected.
This commit is contained in:
Anthony PERARD
2021-05-15 16:38:00 +01:00
parent 0bb436f949
commit c1427ff807
2 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class Network : public ALabel {
std::string state_;
std::string essid_;
bool carrier_;
std::string ifname_;
std::string ipaddr_;
std::string netmask_;