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])
84 get_set_byname(optarg, (struct xt_set_info *)info);
85 parse_dirs_v0(argv[optind], info);
112 print_target_v0(const char *prefix, const struct xt_set_info_v0 *info)
117 if (info->index == IPSET_INVALID_ID)
119 get_set_byid(setname, info->index);
122 if (!info->u.flags[i])
126 info->u.flags[i] & IPSET_SRC ? "src" : "dst");
134 const struct xt_set_info_target_v0 *info = (const void *)target->data;
136 print_target_v0("add-set", &info->add_set);
137 print_target_v0("del-set", &info->del_set);
143 const struct xt_set_info_target_v0 *info = (const void *)target->data;
145 print_target_v0("--add-set", &info->add_set);
146 print_target_v0("--del-set", &info->del_set);
156 struct xt_set_info_target_v1 *info =
159 info->add_set.index =
160 info->del_set.index = IPSET_INVALID_ID;
170 parse_target(char **argv, int invert, struct xt_set_info *info,
173 if (info->dim)
191 get_set_byname(optarg, info);
192 parse_dirs(argv[optind], info);
219 print_target(const char *prefix, const struct xt_set_info *info)
224 if (info->index == IPSET_INVALID_ID)
226 get_set_byid(setname, info->index);
228 for (i = 1; i <= info->dim; i++) {
231 info->flags & (1 << i) ? "src" : "dst");
239 const struct xt_set_info_target_v1 *info = (const void *)target->data;
241 print_target("add-set", &info->add_set);
242 print_target("del-set", &info->del_set);
248 const struct xt_set_info_target_v1 *info = (const void *)target->data;
250 print_target("--add-set", &info->add_set);
251 print_target("--del-set", &info->del_set);
297 struct xt_set_info_target_v2 *info =
300 info->add_set.index =
301 info->del_set.index = IPSET_INVALID_ID;
302 info->timeout = UINT32_MAX;
342 const struct xt_set_info_target_v2 *info = (const void *)target->data;
344 print_target("add-set", &info->add_set);
345 if (info->flags & IPSET_FLAG_EXIST)
347 if (info->timeout != UINT32_MAX)
348 printf(" timeout %u", info->timeout);
349 print_target("del-set", &info->del_set);
355 const struct xt_set_info_target_v2 *info = (const void *)target->data;
357 print_target("--add-set", &info->add_set);
358 if (info->flags & IPSET_FLAG_EXIST)
360 if (info->timeout != UINT32_MAX)
361 printf(" --timeout %u", info->timeout);
362 print_target("--del-set", &info->del_set);