Merge pull request #1230 from ciarand/if-changes-isolate

Switch network module to read /proc/net/dev
This commit is contained in:
Alex
2021-11-22 08:00:54 +01:00
committed by GitHub
2 changed files with 77 additions and 90 deletions

View File

@ -43,6 +43,7 @@ class Network : public ALabel {
const std::string getNetworkState() const;
void clearIface();
bool wildcardMatch(const std::string& pattern, const std::string& text) const;
std::optional<std::pair<unsigned long long, unsigned long long>> readBandwidthUsage();
int ifid_;
sa_family_t family_;