Commit a93bcf0c authored by jan.koester's avatar jan.koester
Browse files

test

parent bcc073a7
Loading
Loading
Loading
Loading
+1 −0
Changes for CMakeLists.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ add_executable(syslite
    src/service.cpp
    src/tty.cpp
    src/network.cpp
    src/ipv6auto.cpp
    src/wireguard.cpp
    src/modules.cpp
    src/busserver.cpp
+7 −2
Changes for include/sysbus/client.h: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -141,11 +141,14 @@ struct InterfaceInfo {
    bool carrier = false;
    bool stopped = false;      // stopped on request: stays down
    std::vector<std::string> addresses;  // current, "a.b.c.d/len", IPv6 too
    // name servers in use: configured, DHCP, router advertisements, DHCPv6
    std::vector<std::string> liveDns;
    // the configuration that applies (first matching .network file), if any
    std::string config;        // file name without ".network"
    std::string configPath;
    std::string match;         // [Match] Name=
    bool dhcp = false;
    bool dhcp = false;         // DHCPv4
    bool dhcp6 = false;        // DHCPv6, when router advertisements ask for it
    std::string configAddress; // [Network] Address=
    std::string gateway;
    std::string configAddress6; // [Network] Address= (IPv6)
@@ -246,12 +249,14 @@ struct WireGuardKeys {
// address/gateway, or an empty dns list, clears it. address6/gateway6:
// IPv6, next to DHCP or an IPv4 address; ipv6AcceptRA: yes (router
// advertisements: default route, SLAAC address), no, "" (the kernel's
// default).
// default). dhcp6: DHCPv6, started when router advertisements ask for it
// (M flag: an address, O flag: name servers only).
struct InterfaceSettings {
    std::string interface;
    std::string config;
    std::optional<std::string> match;
    std::optional<bool> dhcp;
    std::optional<bool> dhcp6;
    std::optional<std::string> address;
    std::optional<std::string> gateway;
    std::optional<std::string> address6;

src/ipv6auto.cpp

0 → 100644
+496 −0

File added.

Preview size limit exceeded, changes collapsed.

src/ipv6auto.h

0 → 100644
+109 −0

File added.

Preview size limit exceeded, changes collapsed.

+50 −10

File changed.

Preview size limit exceeded, changes collapsed.

Loading