Lines Matching full:flags
30 " --add-set name flags\n" in set_target_help_v0()
31 " --del-set name flags\n" in set_target_help_v0()
33 " where flags are the comma separated list of\n" in set_target_help_v0()
44 set_target_check_v0(unsigned int flags) in set_target_check_v0() argument
46 if (!flags) in set_target_check_v0()
63 parse_target_v0(char **argv, int invert, unsigned int *flags, in parse_target_v0() argument
66 if (info->u.flags[0]) in parse_target_v0()
84 *flags = 1; in parse_target_v0()
88 set_target_parse_v0(int c, char **argv, int invert, unsigned int *flags, in set_target_parse_v0() argument
95 case '1': /* --add-set <set> <flags> */ in set_target_parse_v0()
96 parse_target_v0(argv, invert, flags, in set_target_parse_v0()
99 case '2': /* --del-set <set>[:<flags>] <flags> */ in set_target_parse_v0()
100 parse_target_v0(argv, invert, flags, in set_target_parse_v0()
118 if (!info->u.flags[i]) in print_target_v0()
122 info->u.flags[i] & IPSET_SRC ? "src" : "dst"); in print_target_v0()
189 set_target_parse_v1(int c, char **argv, int invert, unsigned int *flags, in set_target_parse_v1() argument
196 case '1': /* --add-set <set> <flags> */ in set_target_parse_v1()
198 *flags |= SET_TARGET_ADD; in set_target_parse_v1()
200 case '2': /* --del-set <set>[:<flags>] <flags> */ in set_target_parse_v1()
202 *flags |= SET_TARGET_DEL; in set_target_parse_v1()
221 info->flags & (1 << i) ? "src" : "dst"); in print_target()
250 " --add-set name flags [--exist] [--timeout n]\n" in set_target_help_v2()
251 " --del-set name flags\n" in set_target_help_v2()
253 " where flags are the comma separated list of\n" in set_target_help_v2()
266 set_target_check_v2(unsigned int flags) in set_target_check_v2() argument
268 if (!(flags & (SET_TARGET_ADD|SET_TARGET_DEL))) in set_target_check_v2()
271 if (!(flags & SET_TARGET_ADD)) { in set_target_check_v2()
272 if (flags & SET_TARGET_EXIST) in set_target_check_v2()
275 if (flags & SET_TARGET_TIMEOUT) in set_target_check_v2()
294 set_target_parse_v2(int c, char **argv, int invert, unsigned int *flags, in set_target_parse_v2() argument
302 case '1': /* --add-set <set> <flags> */ in set_target_parse_v2()
304 *flags |= SET_TARGET_ADD; in set_target_parse_v2()
306 case '2': /* --del-set <set>[:<flags>] <flags> */ in set_target_parse_v2()
308 *flags |= SET_TARGET_DEL; in set_target_parse_v2()
311 myinfo->flags |= IPSET_FLAG_EXIST; in set_target_parse_v2()
312 *flags |= SET_TARGET_EXIST; in set_target_parse_v2()
320 *flags |= SET_TARGET_TIMEOUT; in set_target_parse_v2()
333 if (info->flags & IPSET_FLAG_EXIST) in set_target_print_v2()
346 if (info->flags & IPSET_FLAG_EXIST) in set_target_save_v2()
360 " --add-set name flags [--exist] [--timeout n]\n" in set_target_help_v3()
361 " --del-set name flags\n" in set_target_help_v3()
362 " --map-set name flags" in set_target_help_v3()
365 " where flags are the comma separated list of\n" in set_target_help_v3()
382 set_target_check_v3(unsigned int flags) in set_target_check_v3() argument
384 if (!(flags & (SET_TARGET_ADD|SET_TARGET_DEL|SET_TARGET_MAP))) in set_target_check_v3()
388 if (!(flags & SET_TARGET_ADD)) { in set_target_check_v3()
389 if (flags & SET_TARGET_EXIST) in set_target_check_v3()
392 if (flags & SET_TARGET_TIMEOUT) in set_target_check_v3()
396 if (!(flags & SET_TARGET_MAP)) { in set_target_check_v3()
397 if (flags & SET_TARGET_MAP_MARK) in set_target_check_v3()
400 if (flags & SET_TARGET_MAP_PRIO) in set_target_check_v3()
403 if (flags & SET_TARGET_MAP_QUEUE) in set_target_check_v3()
407 if ((flags & SET_TARGET_MAP) && !(flags & (SET_TARGET_MAP_MARK | in set_target_check_v3()
411 "You must specify flags `--map-mark' or " in set_target_check_v3()
428 set_target_parse_v3(int c, char **argv, int invert, unsigned int *flags, in set_target_parse_v3() argument
436 case '1': /* --add-set <set> <flags> */ in set_target_parse_v3()
438 *flags |= SET_TARGET_ADD; in set_target_parse_v3()
440 case '2': /* --del-set <set>[:<flags>] <flags> */ in set_target_parse_v3()
442 *flags |= SET_TARGET_DEL; in set_target_parse_v3()
445 myinfo->flags |= IPSET_FLAG_EXIST; in set_target_parse_v3()
446 *flags |= SET_TARGET_EXIST; in set_target_parse_v3()
454 *flags |= SET_TARGET_TIMEOUT; in set_target_parse_v3()
456 case '5': /* --map-set <set> <flags> */ in set_target_parse_v3()
458 *flags |= SET_TARGET_MAP; in set_target_parse_v3()
461 myinfo->flags |= IPSET_FLAG_MAP_SKBMARK; in set_target_parse_v3()
462 *flags |= SET_TARGET_MAP_MARK; in set_target_parse_v3()
465 myinfo->flags |= IPSET_FLAG_MAP_SKBPRIO; in set_target_parse_v3()
466 *flags |= SET_TARGET_MAP_PRIO; in set_target_parse_v3()
469 myinfo->flags |= IPSET_FLAG_MAP_SKBQUEUE; in set_target_parse_v3()
470 *flags |= SET_TARGET_MAP_QUEUE; in set_target_parse_v3()
483 if (info->flags & IPSET_FLAG_EXIST) in set_target_print_v3()
489 if (info->flags & IPSET_FLAG_MAP_SKBMARK) in set_target_print_v3()
491 if (info->flags & IPSET_FLAG_MAP_SKBPRIO) in set_target_print_v3()
493 if (info->flags & IPSET_FLAG_MAP_SKBQUEUE) in set_target_print_v3()
503 if (info->flags & IPSET_FLAG_EXIST) in set_target_save_v3()
509 if (info->flags & IPSET_FLAG_MAP_SKBMARK) in set_target_save_v3()
511 if (info->flags & IPSET_FLAG_MAP_SKBPRIO) in set_target_save_v3()
513 if (info->flags & IPSET_FLAG_MAP_SKBQUEUE) in set_target_save_v3()