Lines Matching defs:mode
36 "[!] --mode mode match mode (transport/tunnel)\n"
85 .name = "mode",
125 exit_error(PARAMETER_PROBLEM, "policy match: invalid mode `%s'", s);
137 int mode;
232 if (e->match.mode)
234 "policy match: double --mode option");
236 mode = parse_mode(argv[optind-1]);
237 e->match.mode = 1;
238 e->invert.mode = invert;
239 e->mode = mode;
292 e->match.daddr || e->match.proto || e->match.mode))
297 && ((e->mode == IPT_POLICY_MODE_TUNNEL && e->invert.mode) ||
298 (e->mode == IPT_POLICY_MODE_TRANSPORT && !e->invert.mode)))
301 "is only valid in tunnel mode");
305 static void print_mode(char *prefix, u_int8_t mode, int numeric)
309 switch (mode) {
356 if (e->match.mode) {
357 PRINT_INVERT(e->invert.mode);
358 print_mode(prefix, e->mode, numeric);