Lines Matching defs:mode
36 "[!] --mode mode match mode (transport/tunnel)\n"
56 {.name = "mode", .id = O_MODE, .type = XTTYPE_STRING,
87 xtables_error(PARAMETER_PROBLEM, "policy match: invalid mode \"%s\"", s);
154 if (e->match.mode)
156 "policy match: double --mode option");
157 e->match.mode = 1;
158 e->invert.mode = cb->invert;
159 e->mode = parse_mode(cb->arg);
208 e->match.daddr || e->match.proto || e->match.mode))
213 "mode is required.", i);
216 && ((e->mode == XT_POLICY_MODE_TUNNEL && e->invert.mode) ||
217 (e->mode == XT_POLICY_MODE_TRANSPORT && !e->invert.mode)))
220 "is only valid in tunnel mode");
224 static void print_mode(const char *prefix, uint8_t mode, int numeric)
228 switch (mode) {
275 if (e->match.mode) {
276 PRINT_INVERT(e->invert.mode);
277 print_mode(prefix, e->mode, numeric);