Home | History | Annotate | Download | only in server

Lines Matching defs:target

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