Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

54 	struct xt_set_info_target_v0 *info =
57 info->add_set.index =
58 info->del_set.index = IPSET_INVALID_ID;
64 struct xt_set_info_v0 *info, const char *what)
66 if (info->u.flags[0])
80 get_set_byname(optarg, (struct xt_set_info *)info);
81 parse_dirs_v0(argv[optind], info);
108 print_target_v0(const char *prefix, const struct xt_set_info_v0 *info)
113 if (info->index == IPSET_INVALID_ID)
115 get_set_byid(setname, info->index);
118 if (!info->u.flags[i])
122 info->u.flags[i] & IPSET_SRC ? "src" : "dst");
130 const struct xt_set_info_target_v0 *info = (const void *)target->data;
132 print_target_v0("add-set", &info->add_set);
133 print_target_v0("del-set", &info->del_set);
139 const struct xt_set_info_target_v0 *info = (const void *)target->data;
141 print_target_v0("--add-set", &info->add_set);
142 print_target_v0("--del-set", &info->del_set);
149 struct xt_set_info_target_v1 *info =
152 info->add_set.index =
153 info->del_set.index = IPSET_INVALID_ID;
167 parse_target(char **argv, int invert, struct xt_set_info *info,
170 if (info->dim)
183 get_set_byname(optarg, info);
184 parse_dirs(argv[optind], info);
209 print_target(const char *prefix, const struct xt_set_info *info)
214 if (info->index == IPSET_INVALID_ID)
216 get_set_byid(setname, info->index);
218 for (i = 1; i <= info->dim; i++) {
221 info->flags & (1 << i) ? "src" : "dst");
229 const struct xt_set_info_target_v1 *info = (const void *)target->data;
231 print_target("add-set", &info->add_set);
232 print_target("del-set", &info->del_set);
238 const struct xt_set_info_target_v1 *info = (const void *)target->data;
240 print_target("--add-set", &info->add_set);
241 print_target("--del-set", &info->del_set);
285 struct xt_set_info_target_v2 *info =
288 info->add_set.index =
289 info->del_set.index = IPSET_INVALID_ID;
290 info->timeout = UINT32_MAX;
330 const struct xt_set_info_target_v2 *info = (const void *)target->data;
332 print_target("add-set", &info->add_set);
333 if (info->flags & IPSET_FLAG_EXIST)
335 if (info->timeout != UINT32_MAX)
336 printf(" timeout %u", info->timeout);
337 print_target("del-set", &info->del_set);
343 const struct xt_set_info_target_v2 *info = (const void *)target->data;
345 print_target("--add-set", &info->add_set);
346 if (info->flags & IPSET_FLAG_EXIST)
348 if (info->timeout != UINT32_MAX)
349 printf(" --timeout %u", info->timeout);
350 print_target("--del-set", &info->del_set);
418 struct xt_set_info_target_v3 *info =
421 info->add_set.index =
422 info->del_set.index =
423 info->map_set.index = IPSET_INVALID_ID;
424 info->timeout = UINT32_MAX;
480 const struct xt_set_info_target_v3 *info = (const void *)target->data;
482 print_target("add-set", &info->add_set);
483 if (info->flags & IPSET_FLAG_EXIST)
485 if (info->timeout != UINT32_MAX)
486 printf(" timeout %u", info->timeout);
487 print_target("del-set", &info->del_set);
488 print_target("map-set", &info->map_set);
489 if (info->flags & IPSET_FLAG_MAP_SKBMARK)
491 if (info->flags & IPSET_FLAG_MAP_SKBPRIO)
493 if (info->flags & IPSET_FLAG_MAP_SKBQUEUE)
500 const struct xt_set_info_target_v3 *info = (const void *)target->data;
502 print_target("--add-set", &info->add_set);
503 if (info->flags & IPSET_FLAG_EXIST)
505 if (info->timeout != UINT32_MAX)
506 printf(" --timeout %u", info->timeout);
507 print_target("--del-set", &info->del_set);
508 print_target("--map-set", &info->map_set);
509 if (info->flags & IPSET_FLAG_MAP_SKBMARK)
511 if (info->flags & IPSET_FLAG_MAP_SKBPRIO)
513 if (info->flags & IPSET_FLAG_MAP_SKBQUEUE)