Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d0f327b authored by Ken Chen's avatar Ken Chen Committed by Gerrit Code Review
Browse files

Merge "Set IPv6 route for mdns tests"

parents 2bee9337 c685d5db
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -206,6 +206,12 @@ void SetMdnsRoute() {
            "proto",         "static", "scope", "host",  "src",         "127.0.0.1",
    };
    EXPECT_EQ(0, ForkAndRun(args));

    const std::vector<std::string> args_v6 = {
            "system/bin/ip", "-6", "route", "add",    "local", "ff02::fb",
            "dev",           "lo", "proto", "static", "src",   "::1",
    };
    EXPECT_EQ(0, ForkAndRun(args_v6));
}

void RemoveMdnsRoute() {
@@ -214,4 +220,10 @@ void RemoveMdnsRoute() {
            "proto",         "static", "scope", "host",  "src",         "127.0.0.1",
    };
    EXPECT_EQ(0, ForkAndRun(args));

    const std::vector<std::string> args_v6 = {
            "system/bin/ip", "-6", "route", "del",    "local", "ff02::fb",
            "dev",           "lo", "proto", "static", "src",   "::1",
    };
    EXPECT_EQ(0, ForkAndRun(args_v6));
}
 No newline at end of file