Lines Matching refs:target
43 int IptablesBaseTest::fakeExecIptables(IptablesTarget target, ...) { in fakeExecIptables() argument
46 va_start(args, target); in fakeExecIptables()
56 if (target == V4 || target == V4V6) { in fakeExecIptables()
59 if (target == V6 || target == V4V6) { in fakeExecIptables()
66 int IptablesBaseTest::fakeExecIptablesRestore(IptablesTarget target, const std::string& commands) { in fakeExecIptablesRestore() argument
67 sRestoreCmds.push_back({ target, commands }); in fakeExecIptablesRestore()
71 int IptablesBaseTest::expectIptablesCommand(IptablesTarget target, int pos, in expectIptablesCommand() argument
80 if (target == V4 || target == V4V6) { in expectIptablesCommand()
83 if (target == V6 || target == V4V6) { in expectIptablesCommand()
87 return target == V4V6 ? 2 : 1; in expectIptablesCommand()
101 auto target = expectedCmds[i].first; in expectIptablesCommands() local
103 int numConsumed = expectIptablesCommand(target, pos, cmd); in expectIptablesCommands()