Commit 132aea8e authored by jan.koester's avatar jan.koester
Browse files

test

parent 91f4623d
Loading
Loading
Loading
Loading
+2 −0
Changes for src/netdev.cpp: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
#include <iostream>
#include <cstring>
#include <cstdio>
#include <csignal>
#include <dirent.h>
#include <unistd.h>

static void usage() {
+0 −6
Changes for src/network.cpp: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -754,12 +754,6 @@ void NetworkManager::writeResolvConf(const std::vector<std::string> &servers) {
        f << "nameserver " << s << "\n";
}

// Standalone parse function
bool parseNetworkFile(const std::string &path, NetworkConfig &cfg) {
    NetworkManager mgr;
    return mgr.parseNetworkFile(path, cfg);
}

// ─── Netlink device monitor (RTM_NEWLINK) ───────────────────────────────────

int NetworkManager::startDeviceMonitor() {
+0 −3
Changes for src/network.h: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -101,7 +101,4 @@ namespace syslite {
        int _monitorFd = -1;
    };

    // Parse a .network file (standalone, for testing)
    bool parseNetworkFile(const std::string &path, NetworkConfig &cfg);

}